Help Center/ Application Performance Management/ FAQs(2.0)/ JavaAgent Connection FAQs/ What Operation Do I Need to Take When Deploying a WAR Package?
Updated on 2026-07-29 GMT+08:00
What Operation Do I Need to Take When Deploying a WAR Package?
Linux/Unix Environment
Add the following content to catalina.sh. The -javaagent parameter specifies the path of your JavaAgent JAR file:
JAVA_OPTS="$JAVA_OPTS -javaagent:/root/my-dir/apm-javaagent/apm-javaagent.jar=appName=my-service,env=dev, business=dev"
Windows Environment
Add the following content to catalina.bat. The -javaagent parameter specifies the path of your JavaAgent JAR file:
set JAVA_OPTS="%JAVA_OPTS% -javaagent:/root/my-dir/apm-javaagent/apm-javaagent.jar=appName=my-service,env=dev, business=dev"
Parent topic: JavaAgent Connection FAQs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot