Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Getting

...

your

...

bind

...

variables

...

back

...

  1. Get

...

  1. a

...

  1. heap

...

  1. dump.

...

  1.  
    • For the pipeline:
      1. Hook up jconsole to the instance
      2. select com.sun.management

...

      1. select

...

      1. operations

...

      1. click

...

      1. on

...

      1. dumpHeap.

...

      1. The

...

      1. dump

...

      1. will

...

      1. be

...

      1. local

...

      1. to

...

      1. java

...

      1. instance

...

      1. you

...

      1. connected

...

      1. to,

...

      1. put

...

      1. in

...

      1. a

...

      1. file

...

      1. name,

...

      1. and

...

      1. click

...

      1. true.

...

      1. Transfer

...

      1. that

...

      1. file

...

      1. back

...

      1. to

...

      1. your

...

      1. computer

...

  1. Open

...

  1. up

...

  1. the

...

  1. heap

...

  1. dump

...

  1. in

...

  1. Netbeans

...

    • Go

...

    • to

...

    • Profile

...

    • ->

...

    • Load

...

    • Heap

...

    • Dump

...

    • Select

...

    • your

...

    • heap

...

    • dump

...

  1. Find

...

  1. your

...

  1. statements

...

  1. with

...

  1. OQL:

...

    • For

...

    • prepared

...

    • statements

...

    • use:

...


    • select

...

    • {instance:

...

    • sql,

...

    • content:

...

    • sql.sqlObject.odbc_sql.toString()}

...

    • from

...

    • oracle.jdbc.driver.T2CPreparedStatement

...

    • sql

...

    • For

...

    • callable

...

    • statements

...

    • (i.e.

...

    • stored

...

    • procedures)

...

    • use:

...


    • select

...

    • {instance:

...

    • sql,

...

    • content:

...

    • sql.sqlObject.odbc_sql.toString()}

...

    • from

...

    • oracle.jdbc.driver.T2CCallableStatement

...

    • sql

...

  1. For

...

  1. the

...

  1. prepared

...

  1. statements,

...

  1. take

...

  1. a

...

  1. look

...

  1. at

...

  1. the

...

  1. content.

...

  1. The

...

  1. content

...

  1. should

...

  1. be

...

  1. the

...

  1. sql

...

  1. you

...

  1. are

...

  1. looking

...

  1. for.

...

  1. You're

...

  1. going

...

  1. to

...

  1. have

...

  1. to

...

  1. look

...

  1. through

...

  1. the

...

  1. bind

...

  1. variables

...

  1. in

...

  1. the

...

  1. T2C*Statement.

...

  1.  Usually called lastBound* or boundInt, boundLong, etc...