Example of Tomcat Access
- Unzip MOF under the directory of {MOFLocation}
- Tomcat would read the environment vairant CATALINA_OPTS during startup and add it into the startup command. Therefore, MOF can be accessed to Tomcat with the startup script left unmodified. Add the information below into the environment variants:
export CATALINA_OPTS="$CATALINA_OPTS -javaagent: {MOFLocation}/uavmof/com.creditease.uav.agent/com.creditease.uav.monitorframework.agent-1.0-agent.jar"
- Start Tomcat to check the logs.
Example of Jetty Access
Unzip MOF under the directory of {MOFLocation}.
Start Jetty with the command below to check the logs.
java -javaagent: {MOFLocation}/uavmof/com.creditease.uav.agent/com.creditease.uav.monitorframework.agent-1.0-agent.jar -jar start.jar
Example of Springboot Access
Unzip MOF under the directory of {MOFLocation}.
Start Springboot with the command below to check the logs.
java -javaagent: {MOFLocation}/uavmof/com.creditease.uav.agent/com.creditease.uav.monitorframework.agent-1.0-agent.jar -jar app.jar
-javaagent:../uavmof/com.creditease.uav.agent/com.creditease.uav.monitorframework.agent-1.0-agent.jar
Example of MSCP Program Access
MOF supports monitoring over MSCP programs. Below is the default script for MOF javaagent probe that exists in the startup script of MA and HM:
-javaagent:../uavmof/com.creditease.uav.agent/com.creditease.uav.monitorframework.agent-1.0-agent.jar
Start MOF directly if it is installed under the directory of same level as that of MA or HM. If not, change the directory into the correct one.