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
How to analyze snapshots with many sleeps?
-
- Posts: 1626
- Joined: Tue Aug 10, 2004 7:52 pm
Code: Select all
How can I remove these calls from the tree so the 100% run time will not include them