We recently started stress testing our application (XMPP-based chat server) using YJP 11.0.9. During our test, we noticed the following strange behavior.
- The sample shows sun.misc.Unsafe.unpark (Object) takes up 60% of the CPU.
- For the same application, Tracing shows that LockSupport.park (Object) occupies 52% of the CPU.
I did some tests to confirm the results, and every time I got similar results.
I cannot understand why unpark should take 60% of the time and why the trace shows exactly the opposite results.
Can someone help me understand these results. Did I miss something?
Wednesday:
java -version
java version "1.6.0_31"
Java (TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot (TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
source share