Sounds to me like you need to tell the jvm to use more memory so that it gc's less often?
The
option should be helpful.
On my system, 16GB RAM, 16 cpu's, Linux 64bit:
IBM's java:
Code:
/usr/lib/jvm/java-ibm-x86_64-80/jre/bin/java -XshowSettings:vm -version 2>&1 | head --lines=6
Here's the output:
Code:
VM settings:
Max. Heap Size (Estimated): 512.00M
Ergonomics Machine Class: client
Using VM: IBM J9 VM
java version "1.8.0_241"
and for openjdk/jre:
Code:
/usr/lib/jvm/java-11-openjdk-amd64/bin/java -XshowSettings:vm -version 2>&1 | head --lines=6
Here's the output:
Code:
VM settings:
Max. Heap Size (Estimated): 3.90G
Using VM: OpenJDK 64-Bit Server VM
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
So it *might* even matter which jvm you are using.