Service tomcat8 failed to start by using service tomcat8 start

后端 未结 4 1832
粉色の甜心
粉色の甜心 2021-02-14 20:19

I\'m using Vagrant to deploy to Ubuntu Linux and try to start a tomcat8 service.

Tomcat 8 was installed by apt-get install tomcat8.

Wh

4条回答
  •  有刺的猬
    2021-02-14 20:57

    Verify your tomcat8 configuration file in /etc/default/tomcat8. See if there are badly configured variables.

    For me, this error was caused by the following variables in my configuration file:

    -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
    JAVA_OPTS="-Djava.awt.headless=true -Xss4m -Xmx2g -XX:+UseConcMarkSweepGC"
    

    I commented and it worked.

提交回复
热议问题