Step 1: Install applicare singleagent in the machine where java application is running. Follow the steps for installing Applicare SingleAgent
Step 2: To directly run jar with Applicare SingleAgent.
Step 3: Lets say javaapp.jar is our executable jar application which needs to be monitored and we use below command to run the jar.
To deploy Applicare SingleAgent run the java application with the following arguments:
- -noverify
- -javaagent:<ApplicareAgentDir>\applicare-aspects.jar=verbosity=0,logfile=false,norestart-intellitrace=false
- -Darcturus_home=<ApplicareAgentDir>
- -Dapplicare.agent.host=HOST_NAME
- -Djava.library.path=.;<ApplicareAgentDir>\bin
- -Dlogback.configurationFile=<ApplicareAgentDir>\logback\logback.xml
Example:
java -jar -noverify -javaagent:G:\ApplicareSingleAgent\applicare-aspects.jar=verbosity=0,logfile=false,norestart-intellitrace=false -Dapplicare.agent.host=HOST_NAME -Darcturus_home=G:\ApplicareSingleAgent -Djava.library.path=.;G:\ApplicareSingleAgent\bin -Dlogback.configurationFile=G:\ApplicareSingleAgent\logback\logback.xml javaapp.jar
Note:
Few JVM Arguments
a) To enable Intellitrace add -DenableIntellitraceDaemon=true to startup arguments.
If Java Application is running as a service follow the steps in the below link.
Comments
0 comments
Article is closed for comments.