Tracing commands and options for Jinsight2.1 on OS/390

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

Summary of Jinsight2.1 tracing commands and options for OS/390
  Ctrl-v
  prompt
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 JINSIGHT_TRACE_METHODS=
  anyvalue

  (no longer used)
com.ibm.jinsight.tracing.
JinsightCtrl.startTracingMethods();
Start tracing methods
stop tracing methods sm     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        
dump population dp     com.ibm.jinsight.tracing.
JinsightCtrl.dumpPopulation();
Dump objects
dump population+refs dr     com.ibm.jinsight.tracing.
JinsightCtrl.dumpReferences();
Dump objects
& references
exit ctrlbrk handler x        
end all tracing and
  close trace file
q
  (new meaning)
    com.ibm.jinsight.tracing.
JinsightCtrl.quit();
End all tracing
force garbage collection g     com.ibm.jinsight.tracing.
JinsightCtrl.forceGc();
Force garbage
collection
user event u <string>        
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 four ways on OS/390 to specify the tracing controls:

  1. At the > prompt, obtained by typing Ctrl-v in the window where you ran jinsight_trace.  That lets you issue tracing commands and change tracing options during execution.

  2.  
  3. In an environment variable.

  4.  
  5. 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.

  6.  
  7. 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: