CATALINA_OPTS vs JAVA_OPTS - What is the difference?

前端 未结 2 1695
情深已故
情深已故 2020-12-02 06:06

I was trying to find out the difference between Apache Tomcat variables - CATALINA_OPTS and JAVA_OPTS in SO and surprised to see that there is no q

2条回答
  •  既然无缘
    2020-12-02 06:27

    Durung shutdown, tomcat launches mutiple vm as explain in comment by @joao. If you are recording some data during tomcat shutdowm, use CATALINA_OPTS not JAVA_OPTS. A great example is when I want save the data during jacoco.exec, I should be using CATALINA_OPTS not JAVA_OPTS.

提交回复
热议问题