OIM, OAM performance monitroing and matrics Java Flight Recorder
In this post I will cover the steps that are required to monitor and record a running jvm process using java flight recorder.
The flight recorder can be used to monitor the running jvm processes and giving us the statistics on cpu utilization, ram usage etc for the its running duration.
here are the commands
step 1 list java processes
user 23639 23615 3 Jul 24 ? 12083:48 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
user 23614 23590 3 Jul 24 ? 9422:12 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
user 23664 23640 4 Jul 24 ? 4463:27 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
step 2 confirm the java processes with jcmd command
So above command will monitor the existing java processes with PID=23614 for 15 minutes and then stop.
.jfr can be opened with out-of-the-box java mission control tool to analyze the process statistics during that process run.
The flight recorder can be used to monitor the running jvm processes and giving us the statistics on cpu utilization, ram usage etc for the its running duration.
here are the commands
step 1 list java processes
ps -ef | grep java
user 23639 23615 3 Jul 24 ? 12083:48 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
user 23614 23590 3 Jul 24 ? 9422:12 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
user 23664 23640 4 Jul 24 ? 4463:27 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
step 2 confirm the java processes with jcmd command
cd /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9
./jcmd
23614 weblogic.Server
23664 weblogic.Server
23639 weblogic.Server
Step 3 record the running process performance for time duration that you wish to analyze later
./jcmd 23614 JFR.start name=23614 duration=900s filename=/tmp/23614.jfr settings=default
So above command will monitor the existing java processes with PID=23614 for 15 minutes and then stop.
.jfr can be opened with out-of-the-box java mission control tool to analyze the process statistics during that process run.
Comments
Post a Comment