How to collect performance data on Windows

Collect the following information when high CPU consumption is with IBM Java process:
  1. From the Start menu, select Programs > Administrative Tools > Performance Monitor. (Alternatively, you might find Start > Settings > Control Panel, double-click Administrative Tools, and double-click Performance to open the Performance Monitor tool). A new performance monitor window titled Performance will be opened.

  2. Performance data can be captured to a log file. The log file can be forwarded to a location for analysis and rerun through the performance monitor. From the performance monitor window, expand Performance logs and alerts, right-click Counter Logs, New Log Settings.

  3. Type a log setting name, then click OK. A new window titled with the name you provided will now be opened.

  4. Click Add to add counters on the window opened in the above step. A new window titled Add Counters will now be opened.

  5. In the Performance Object drop down, select Thread as Object.

  6. Click Select counter from List (default), then select the following counters:
    % Processor Time
    ID Process
    ID Thread

  7. Click Select instances from list and select all Java threads as shown in this example:

    Counters

  8. Select Add

  9. Select the Process performance object
  10. Select Virtual Bytes from the counters list
  11. Select the instance for the Java process to monitor

    Counters

  12. Select Add

  13. Select the Memory performance object
  14. Select the Pages/sec counter

    Counters

  15. Click Add to add new properties, then click Close.

  16. Adjust sample data interval. For example, if high CPU usage does not last longer than 1 second, it would be best to sample data every 1 second.

  17. Click Log Files tab and change Log file type to Text File(Comma delimited), then click Apply.

  18. If you want to keep binary log file type, you can run relog command to convert binary log file type to Text File(Comma delimited),
    For example, relog logfile.blg -f csv -o logfile.csv

    Type

  19. Logging starts immediately.The log file icon turns green.

  20. While the performance data is being logged, gather relevant Performance Degradation documentation. You can get instructions for gathering performance degradation by selecting the appropriate link for your Application Server Version:

  21. Generate three javacore files, taken two minutes apart during high CPU consumption period.

  22. Collect the following files

If you want to analyze the Java thread dumps, download the IBM Thread and Monitor Dump Analyzer for Java (TMDA). TMDA is one of top alphaWorks technologies that can analyze thread dumps from Java virtual machine. It is useful for identifying deadlocks, contention, bottlenecks, and to summarize the state of threads within Java virtual machine.

If garbage collection activity seems to be causing performance degradation or high processor time consumption, Verbose GC logging can be enabled. Enabling the generation of Verbose GC logging is done using the command line option: -verbose:gc. This causes the Verbose GC logging to be written to stderr or stdout.

If you want to analyze the Java Verbose GC log, download the IBM Pattern Modeling and Analysis Tool for Java Garbage Collector (PMAT). PMAT is one of top alphaWorks technologies that can parses verbose GC trace, analyzes Java heap usage, and recommends key configurations based on pattern modeling of Java heap usage.