Low heap memory with Sonatype Nexus 3.68.1 Java 11


We are testing the 3.68.1 Java 11 version (OSS, with OrientDB) on linux docker. I have the same heap configuration (-Xms4G -Xmx4G -XX:MaxDirectMemorySize=671M) as with the Java 8 version in a VM with 16GB memory, but now I’m getting “low heap memory” errors. Is it correct that we need more heap memory or should I tune the G1 GC ? From the nexus3 documentation, it is not clear what the new settings should be for the Java 11 version.
My current GC settings are: -XX:+HeapDumpOnOutOfMemoryEr
ror -XX:HeapDumpPath=/nexus-data/log -Xlog:gc=info,safepoint:file=/nexus-data/log/gc.%t.log

Any help is appreciated!

Thanks, Mariska.