Having some major issues with our Tomcat 7 installation. It used to run fine for over a year, but now the CPU is mainly at 400% - 700% (8 core machine) and in the logs I see tones of these:
2015-04-01T23:05:13.046+0200: 5177.229: [GC2015-04-01T23:05:13.046+0200: 5177.229: [ParNew: 1398632K->345K(1747648K), 0.0062240 secs] 3439622K->2041335K(5941952K) icms_dc=0 , 0.0063310 secs] [Times: user=0.04 sys=0.00, real=0.00 secs]
My setting for Tomcat startup (in setenv.sh) are:
CATALINA_OPTS="$CATALINA_OPTS -server -Xms6G -Xmx6G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:NewRatio=2 -XX:SurvivorRatio=4 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Djava.awt.headless=true -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Djava.security.egd=file:/dev/./urandom"
The behavior is usually as such that the machine runs for an hour or so, I see it consuming memory and then it starts trying to GC and I get those log entries every second.
I've tried with different GC's setting and have had no success. As this just happened recently I wonder what could be the cause of this or if anyone has a solution here?
My server has 32GB RAM with Ubuntu LTS 14.04.2 and Oracle Java 7.