Configure Tomcat as a service (no catalina.bat)

前端 未结 3 1416
借酒劲吻你
借酒劲吻你 2021-01-18 06:06

I install Tomcat as a service using the installer from Apache website. I don\'t have catalina.bat in my bin folder. How can I set the permgem memory size? Any recommended si

3条回答
  •  爱一瞬间的悲伤
    2021-01-18 06:34

    To Configure Tomcat's Java_OPT in catalina,
    First of all in Installer adaddition of tomcat, you never find out catalina file in bin Folder.

    To set parameters you have to use tomcate property(use tomcatXw.exe to open that)
    Giving little idea how to set param in property file.

    In catalina file:(write something like this)

    JAVA_OPTS="-Djava.awt.headless=true -Xms2048m -Xmx4048m -XX:NewSize=1024m -XX:MaxNewSize=2048m -XX:PermSize=1024m -XX:MaxPermSize=2048m -XX:+DisableExplicitGC"
    

    In Tomcate Property file:(add your parameter in Java options: same as in picture)

    enter image description here

提交回复
热议问题