Closed GoogleCodeExporter closed 9 years ago
Okay, so being in epollWait is not an issue per se, because its waiting there
to get notification. We expect the IO thread to be alive, but it shouldnt
consume 100% cpu.
Can you do a profile of the system while running and give us a dump on what
actually causes 100% cpu? Just because the thread is alive doesnt mean its
consuming it completely.
Let me know,
thanks
Michael
Original comment by michael....@gmail.com
on 7 Jun 2013 at 1:31
With which tool could I do that easiest?
Right now I just peek into the vm with jstatd and jvisualvm (no concole output,
but in the table the memcached threads
Thread run sleeping wait monitor
Memcached IO over {MemcachedConnection to /xxx.xxx.xxx.xxx:11211} 3:34.215
(100.0%) 0.0 (0.0%) 0.0 (0.0%) 0.0 (0.0%) 3:34.215
Memcached IO over {MemcachedConnection to /xxx.xxx.xxx.xxx:11211} 3:34.215
(100.0%) 0.0 (0.0%) 0.0 (0.0%) 0.0 (0.0%) 3:34.215
never sleep or wait.
Original comment by phoe...@gmail.com
on 7 Jun 2013 at 2:45
One more thing:
When I switch the webapplication to the standard session manager (no memcached
access), cpu load is as expected almost zero when the application is idle.
And I do not observe the behavior on my windows machine, so the bug seem to
depend on the oracle os specific native code of the vm.
Original comment by phoe...@gmail.com
on 10 Jun 2013 at 7:47
Ok, I could solve the problem.
The cpu load is caused by the vm itself. After further profiling I found out
that epollwait caused the high cpu load due to a "bad" to garbage collection
setting for the vm. -XX:CMSInitiatingOccupancyFraction was set to 50 which lead
to many gc calls which in fact caused a high cpu load on epoolwait. (Why this
happens I don't know - this could have many causes). Setting the value to 80
made the high cpu load disappear. I was mislead due to the fact that when I
disabled memcacheclient cpu load dropped too.
Please close the issue.
Original comment by phoe...@gmail.com
on 17 Jun 2013 at 1:36
Original comment by ingen...@gmail.com
on 17 Jun 2013 at 1:58
Original issue reported on code.google.com by
phoe...@gmail.com
on 7 Jun 2013 at 1:25