Recent Changes - Search:

Softwares

.

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

Main.Collecting-system-CPU-usage-information-on-Linux History

Hide minor edits - Show changes to output

August 15, 2012, at 05:42 PM by 115.242.228.192 -
Added line 2:
(:Googletxt:)
Deleted line 34:
(:Google1:)
August 15, 2012, at 05:30 PM by 115.242.228.192 -
Deleted line 1:
(:Googlemm:)
November 20, 2011, at 02:33 PM by 117.202.26.32 -
Added lines 1-36:
(:Google1:)
(:Googlemm:)
----
!!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:

(:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :)
(:cellnr:)
top -b > top.out
(:tableend:)

'''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:

(:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :)
(:cellnr:)
top -H -b -c > top_threads.out
(:tableend:)

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:

(:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :)
(:cellnr:)
vmstat {time_between_samples_in_seconds} {number_of_samples} > vmstat.out
(:tableend:)

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.
----
(:Google1:)
(:Googlemm:)
Edit - History - Print - Recent Changes - Search
Page last modified on August 15, 2012, at 05:42 PM