CPU usage rises to 100% in a few minutes on Tomcat web sever-Collection of common programming errors

mysql tomcat cpu-usage View the original question URL
discoverer: user189176

I have an web app running on Tomcat 7 server. The rest of the configuration is:

  • Intel i7 3930
  • 32GB RAM
  • 2x2TB HDD
  • 20TB Bandwidth
  • Debian 6
  • mysql 5.5.9

I’m using Ganglia for monitoring the load. Every few days following scenario happens:

  • everything is working fine, CPU load is about 3-5%
  • in just a few minutes CPU load rises to 100% and server gets stuck.
  • After 10-15 minutes it crashes I can’t establish ssh connection and server needs manual reboot.

What could be the reason? How to deal with it?