Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt


Code Block
-Djava.awt.headless=true
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-Xloggc:C:\tomcat9tomcat\logs\gc-%t.log
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=10
-XX:GCLogFileSize=10m


Java 11

Excerpt


Code Block
-Djava.awt.headless=true
-Xlog:gc=debug:file=C:\tomcat9tomcat\logs\gc-%t.log:time,level,tags:filecount=10,filesize=10muptimemillis,tid


  • Add the required memory sizes to Initial Memory Pool and Maximum Memory Pool.
  • Switch to the General tab to set the Startup Type. If you want to start/stop Tomcat:
    • manually, set Manual 
    • automatically when Windows starts, set Automatic.

...