I am comparing a JVM application that is very heavy on both IO and CPU.
Usually I compare it with a heap size of 4G max / min, the whole control suit takes an average of 73 seconds to run.
Today I was curious, and I gave him only 1 GB max / min. Heap size, and surprisingly, the entire test suit takes just 62 seconds to work on average.
So, I wonder why the JVM works better with a smaller heap size?
Additional notes:
Environment:
java version "1.7.0_19" OpenJDK Runtime Environment (fedora-2.3.9.1.fc17-x86_64) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) Linux ____ 3.8.4-102.fc17.x86_64
user972946
source share