Hi @timothy.
I found an alternative to VisualVM to determine the Java settings used in the docker container. From a bash terminal inside the ors-app container, do the following to view the Java settings used:
root@a485cee420ed:/ors-core# java -XX:+PrintFlagsFinal -version | grep 'MetaspaceSize\|HeapSize\|ThreadStackSize'
intx CompilerThreadStackSize = 0 {pd product}
uintx ErgoHeapSizeLimit = 0 {product}
uintx HeapSizePerGCThread = 87241520 {product}
uintx InitialBootClassLoaderMetaspaceSize = 4194304 {product}
uintx InitialHeapSize := 1056964608 {product}
uintx LargePageHeapSizeThreshold = 134217728 {product}
uintx MaxHeapSize := 16884170752 {product}
uintx MaxMetaspaceSize = 18446744073709547520 {product}
uintx MetaspaceSize = 21807104 {pd product}
intx ThreadStackSize = 1024 {pd product}
intx VMThreadStackSize = 1024 {pd product}
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
Next, my JAVA_OPTS settings from the docker-compose.yml file:
- JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms320G -Xmx60G -Xss3G -XX:MetaspaceSize=512 -verbose:gc
I think that my JAVA_OPTS are not being used. Please correct me if I’m wrong, as I’m not well versed in Java .
Any suggestion is always welcomed.
Best regards.