How to analyze snapshots with many sleeps?

Questions about YourKit Java Profiler
Post Reply
ayelet
Posts: 3
Joined: Thu Jun 30, 2005 6:47 am

How to analyze snapshots with many sleeps?

Post by ayelet »

This is probably a newbie's question.

I profiled an application's CPU and saw that a lot of the time being spent in the Thread.sleep and Selector.select (non blocking) calls.

It happens both is tracing and in smapling.

The application took ~50% of the machine's CPU at the time, so I figure it's not only sleeping and waiting for connections.

How can I remove these calls from the tree so the 100% run time will not include them and I can see the real places the application is wasting its time?

Thanks in advance for any idea
Vladimir Kondratyev
Posts: 1625
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Code: Select all

How can I remove these calls from the tree so the 100% run time will not include them
Try to use early access version (http://www.yourkit.com/eap/) of profiler. CPU profiling quality is already greatly improved in EAP version (in Windows and Solaris)
Post Reply