Daniel Mejia
07/15/2022, 11:12 PM"Error","ajp-nio-127.0.0.1-8014-exec-111","07/15/22","13:35:38","2A6C741F4FCF2B85354682B4B3F82EB2","Metaspace The specific sequence of files included or processed is: E:\api\index.cfm"
Daniel Mejia
07/15/2022, 11:14 PMDaniel Mejia
07/15/2022, 11:23 PMseancorfield
seancorfield
-XX:-OmitStackTraceInFastThrow -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -Xlog:gc,gc+metaspace,gc+cpu:file=/path/to/server-gc.log -Xmx512m
(obvs the -Xmx
heap option should be whatever you need it to be for your server processes)
So the only limit we set is max heap and we let the JVM manage everything else. The OmitStackTraceInFastThrow
is to prevent the JVM optimizing away the stacktrace in repeated exceptions so you don't lose exception details (I can't understand why they made that the default!).Daniel Mejia
07/18/2022, 4:29 PMDaniel Mejia
07/19/2022, 6:32 PMjava 11.0.1 2018-10-16 LTS
seancorfield
Daniel Mejia
07/19/2022, 7:02 PMDaniel Mejia
07/19/2022, 7:06 PMseancorfield
seancorfield
UseG1CGC
option tells the JVM which garbage collector to use -- there are a lot of options! G1 is good for low-pause, high-throughput such as web apps.seancorfield
seancorfield
Daniel Mejia
07/20/2022, 4:25 AM