Last active
March 14, 2023 23:51
-
-
Save jfeilbach/1eb3bf1e53e725572a5c2bf373ec3457 to your computer and use it in GitHub Desktop.
WorldServer systemd tomcat.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Tomcat 8.5 servlet container | |
After=network.target | |
[Service] | |
Type=forking | |
User=ws | |
Group=ws | |
Environment="JAVA_HOME=/usr/java/jdk1.8.0_192-amd64/jre" | |
Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom" | |
Environment="CATALINA_BASE=/opt/tomcat" | |
Environment="CATALINA_HOME=/opt/tomcat" | |
Environment="CATALINA_PID=/opt/tomcat/temp/tomcat.pid" | |
Environment="CATALINA_OPTS=-Djava.awt.headless=true -Xms512M -Xmx8192M -server -XX:+UseG1GC -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=150 -XX:MaxDirectMemorySize=6G -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -javaagent:/opt/glowroot/glowroot.jar -Xloggc:/opt/tomcat/logs/gc.log" | |
ExecStart="/opt/tomcat/bin/catalina.sh start" | |
ExecStop="/opt/tomcat/bin/catalina.sh stop -force" | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment