Ubuntu – Jetty Server High CPU Load

cpu-usagejavajettyUbuntu

Sometimes jetty loads our server for 100% – every thread for 100% of 1 core.

enter image description here

We have jetty 9 and JDK 1.7 (at Jetty 6 and JDK 1.7 – this doesn't appears).
Jetty now running on default settings, previously we run it with JAVA_OPTIONS="-Xms4096m -Xmx4096m -server -XX:+UseConcMarkSweepGC"

I maked the dump of main thread (with jstack -F pid), but this gives me nothing (i just don't understand). DUMP

Is there some way to determine what process/project loading the CPU?

Best Answer

The only thing I see in that thread dump is a few threads doing some copying and archiving looks like. A series of thread dumps taken over a few seconds and minutes would give you an idea of it is those threads behaving badly. Nothing looks immediately out of place jetty wise in that dump.