Troubleshooting
Problem
It is often useful to be able to monitor the CPU usage of a Java application, or indeed for the machine on which the Java application is running, to be able to determine performance problems.
Resolving The Problem
The information below will allow you to monitor and log information on CPU usage.
Monitoring CPU usage on Linux can be achieved using the top utility:
top -d delaytime -C -c -b > top.log
where:
delaytime is the number of seconds to delay.
This must be 60 seconds or greater, depending on how soon the failure is expected.
[{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Debugging Tools","Platform":[{"code":"PF016","label":"Linux"}],"Version":"5.0","Edition":"J2SE","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21222440