We are upgrading from Java 6 and Tomcat 6 to Java 1.8.0_45 and Tomcat 8.0.23, Linux servers, 64 bits. I'm comparing memory usage and I'm facing a weird behaviour.
This is how Eden Space looks with Java 8 in Tomcat 8 with no traffic, just started and idle:
And this is how it looks with Java 6, standard to me:
Both JVMs are configured the same way, basically:
XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+DisableExplicitGC -Xms768m -Xmx2048m -Xmn400m
With Java 8 and Tomcat 8 minor GC are almost always running and tomcat log show this:
1301,121: [GC (Allocation Failure) [PSYoungGen: 408960K->352K(409088K)] 1126151K->717559K(1915392K), 0,0093033 secs] [Times: user=0,02 sys=0,00, real=0,01 secs]
Do you know some special configuration for JVM 8 or something I have to do to have the same behaviour than before?
EDIT:
After 30 min, Eden Space is: