Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am observing (based on logs) that my (java) process pauses for something during execution. My first guess is a context switch. In order to verify I am trying to find (a) the number of involuntary context-switches that my process incurs, and (b) the amount of time the process spends in the run queue (ready to run but waiting to be scheduled).

Are there any tools to gather this information. I am running kernel 2.6.18 (centos 5) and 2.6.32 (centos6).

share|improve this question
    
Systemtap would do it. Have you used it before? I can try to write a sample stap code for you. –  Soham Chakraborty Jan 8 '13 at 3:25
    
Thanks. Looks fairly powerful. A sample code would help get started. –  Sumit Jan 9 '13 at 7:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.