We're using JDK 8 and some of our processes are giving OOM with "compressed class space". We're logging GC and our jvm statistics.log file currently gives the following type of log entries
2017-06-30 03:57:07,944 INFO - HEAP - [USAGE: 1678.7, FREE: 986.7, TOTAL: 2665.5, MAX: 2665.5]; PERM - [USAGE: N/A, FREE: N/A, MAX: N/A]; CLASSES - [Loaded: 1832624, Unloaded: 637, Left: 1831987]; THREADS - [Count: 92]
We're wondering if adding the flags "-XX:+TraceClassUnloading -XX:+TraceClassLoading" would let us know what value we should set for the "Compressed Class space" ( -XX: CompressedClassSpaceSize) ? If yes, how do we determine the size from the Trace logs ?