Recent Changes - Search:

Softwares

.

Collecting-system-CPU-usage-information-on-Linux


Collecting system CPU usage information on Linux


If possible, set up system CPU activity monitoring before starting the Java application. You can also gather CPU usage information at the point at which the problem occurrs using the following command:

top -b > top.out

Collecting process CPU usage information on Linux

If possible, gather process and thread-level CPU activity information at the point at which the problem occurrs, using the following command-line utility:

top -H -b -c > top_threads.out

Allow this command to run for a short time. It produces a file called top_threads.out, which is then collected.

Collecting paging activity information on Linux

If possible, set up paging activity monitoring before the Java application starts. You can also gather paging information at the point at which the problem occurrs. To collect paging data, use the following command:

vmstat {time_between_samples_in_seconds} {number_of_samples} > vmstat.out

If you start vmstat when the problem occurs, a value of 10 for time_between_samples_in_seconds and 10 for number_of_samples usually ensures that enough data is collected during the problem.


Edit - History - Print - Recent Changes - Search
Page last modified on August 15, 2012, at 01:42 PM