Specify a preloaded JVMTI agent
If you are using a preloaded JVMTI agent, you must specify the agent in a runtime parameter of the target Java™ job. The agent is loaded using the Java -agentpath: runtime parameter. Specify the full path name of either the 31-bit JVMTI agent (libCAZJTA11.so) or the 64-bit JVMTI agent (libCAZJTA14.so) depending on whether your target Java job is 31-bit or 64-bit.
The format of the -agentpath runtime parameter is:
–agentpath:/dir/agent=stcid,n
- dir
- The path to the Application Performance Analyzer JVMTI agent.
- agent
- The name of the Application Performance Analyzer JVMTI agent you are preloading. Use libCAZJTA11.so for 31-bit. Use libCAZJTA14.so for 64-bit.
- stcid
- The Application Performance Analyzer started task ID. This is needed only when you have more than one Application Performance Analyzer started task operating on your system.
- n
- The number of minutes to wait for the Application Performance Analyzer started task to become active.
To measure Java activity in WebSphere, the JVMTI agent must be preloaded in the WebSphere Servant region. This is accomplished by specifying the -agentpath runtime parameter in the 'Generic JVM arguments'.
//STEP EXEC PGM=BPXBATCH,
//PARM='sh java –agentpath:/usr/lpp/apa/v13r1/libCAZJTA14.so prog’
//STEP EXEC PGM=BPXBATCH,
//PARM='sh java –agentpath:/usr/lpp/apa/v13r1/libCAZJTA14.so=CAZ1 prog’
//STEP EXEC PGM=BPXBATCH,
//PARM='sh java –agentpath:/usr/lpp/apa/v13r1/libCAZJTA14.so=CAZ1,9 prog’
If the Application Performance Analyzer configuration setting DiagLevel is set to 7 or higher, Application Performance Analyzer creates a diagnostic file for each observation request in the directory /tmp/CAZ. The diagnostic file is named sysid.nnnn.pppppppp.JVMTI.txt, where sysid is the Application Performance Analyzer started task identifier, nnnn is the observation request number, and pppppppp is the process id of the target application.