Enabling the WASJVM Test to Collect GC and Thread-related Statistics

You should enable the Java Virtual Machine Tool Interface (JVMTI) to collect data about garbage collection and thread states from the JVM that runs the application server. To enable JVMTI, follow the steps below:

  1. Open the administrative console.
  2. Click Servers > Server Types > WebSphere application servers in the administrative console navigation tree.
  3. Click the application server for the JVM profiler that needs enabling.
  4. In the Server Infrastructure section, click Java and process management > Process definition , click Control , and then click Java virtual machine.
  5. Type -agentlib:pmiJvmtiProfiler in the Generic JVM arguments field. In a 64-bit environment, type -agentlib:pmiJvmtiProfiler64.

    Websphere_JVM_Settings

    Figure 1 : Enabling JVMTI

  6. Click Apply or OK.
  7. Click Save.
  8. Click Servers > Server Types > WebSphere application servers in the administrative console navigation tree.
  9. Click the application server for the JVM profiler that needs enabling.
  10. Click the Configuration tab. When in the Configuration tab, settings apply when the server is restarted. When in the Runtime Tab, settings apply immediately. Performance Monitoring Infrastructure (PMI) can be enabled only in the Configuration tab.
  11. Click Performance Monitoring Infrastructure under Performance.
  12. Select the Enable Performance Monitoring Infrastructure (PMI) check box.
  13. Click Custom and select JVM Runtime on the left-side tree.
  14. Click a JVM profiler group under JVM Runtime and enable or disable the statistic on the right-side table. Go back to the main PMI configuration page, by clicking PMI.
  15. Click Apply or OK.
  16. Click Save.
  17. Start the application server, or restart the application server if it is currently running.