Tracing commands and options for Jinsight2.1 on AIX

The table below summarizes the available tracing controls for Jinsight2.1 on AIX.  Changes from Jinsight2.0 are shown in   red .

Summary of Jinsight2.1 tracing commands and options for AIX
  Ctrl-\  prompt
  not operational
environment
 variable
java
 argument
Java
 program
servlet HTML
 interface button
enable Jinsight  
  (no longer used)
-XrunjinsightPA
  (arg is required)
   
trace file name   JINSIGHT_TRACEFILE_NAME=
   <filename>

  (no longer used)
   
trace methods tm
  (not operational)
JINSIGHT_TRACE_METHODS=
  anyvalue

  (no longer used)
com.ibm.jinsight.tracing.
JinsightCtrl.startTracingMethods();
Start tracing methods
stop tracing methods sm
  (not operational)
    com.ibm.jinsight.tracing.
JinsightCtrl.stopTracingMethods();
Stop tracing methods
trace population tp
  (not operational)
JINSIGHT_TRACE_POPULATION=
  anyvalue   (not operational)

  (no longer used)
   
stop tracing population sp
  (not operational)
       
stop (all) tracing S
  (not operational)
       
dump population dp
  (not operational)
    com.ibm.jinsight.tracing.
JinsightCtrl.dumpPopulation();
Dump objects
dump population+refs dr
  (not operational)
    com.ibm.jinsight.tracing.
JinsightCtrl.dumpReferences();
Dump objects
& references
exit ctrlbrk handler <RET>        
end all tracing and
  close trace file
q  (new meaning)
  (not operational)
    com.ibm.jinsight.tracing.
JinsightCtrl.quit();
End all tracing
force garbage collection g
  (not operational)
    com.ibm.jinsight.tracing.
JinsightCtrl.forceGc();
Force garbage
collection
user event u <string>
  (not operational)
       
buffer size   JINSIGHT_SEGMENT=
   <decimal_number>
JINSIGHT_SEGMENT_SIZE=
   <hex_number>

  (no longer used)
   
print system state
  (no longer used)

  (no longer used)
       

First you must specify    -XrunjinsightPA   as an argument to the java command, to activate the Jinsight2.1 profiling agent itself and enable Jinsight functions. Then there are three ways on AIX to specify the tracing controls:

  1. In an environment variable.

  2.  
  3. In the program itself, as one of six API calls. For compilations, you must have the file jintrace.jar in the CLASSPATH. Also, the program must execute the line    System.loadLibrary("jinsightPA");    before making Jinsight API calls. Program execution must set PATH and CLASSPATH to include the file jintrace.jar. See the sample shell script jinsight_trace.

  4.  
  5. In the  jintrace.htm HTML interface to the Jinsight trace control servlet under an application server such as WebSphere.

Here's what is meant by each of these tracing controls: