Tuesday, August 3, 2010

VisualGC: Performance Monitoring tool for Oracle SOA Suite

Oracle Fusion Middleware supports various performance monitoring tools for helping us debug performance issues with SOA Suite. Performance bottlenecks can happen at many places in an integration solution. It can either take place at DB level, or the BPEL/ESB code level or the JVM/Middleware level. Identifying these bottlenecks is a daunting task and often requires analysis from multiple aspects. 

VisualGC tool from Sun which comes with jvmstat 3.0 (for JDK 1.5.0 and higher) is an excellent tool for monitoring JVM memory usage. This tool helps in investigating issues where the applications tends to slow down after a while/sees degraded performance over a period of time.

Links for downloading and using this tool on Linux environments is provided below:

VisualGC download link
Description of the tool 
Installation instructions on Linux/Solaris

Once the tool has been installed you can use the below commands to run it and monitor the performance:

I have unzipped the jvmstat3.0 zip file at /opt/apps/Java/ on my linux server and using JDK6.

$ export JVMSTAT_HOME=/opt/apps/Java/jvmstat 
$ export JAVA_HOME=/opt/apps/Java/jdk1.6.0_18 
$ export PATH=$JVMSTAT_HOME/bin:$JAVA_HOME/bin:$PATH 

$ jps 
5755 Server 
2885 Jps 
5930 Server 

jps command gives you the JVM ids which are required as input parameter for the visualgc command.

$ visualgc 5755
As can be seen from the adjacent image, the memory usage of different parts of the JVM are shown graphically. The PermGen, OldGen and YoungGen (Eden Space, Survivor0 and Survivor1) usage can be monitored. When you observe a flat line in the Eden Space (right hand graph window) then its a cause of concern and indicates memory leaks/deadlock scenarios and requires immediate investigation.





There are other performance monitoring tools which can be used with Oracle SOA Suite. The EM Console in SOA 11G has a nice Summary screen which shows several important performance tracking statistics. For details on few of these tools please check the below link.
Overview of Performance Tuning Tools in Oracle Fusion Middleware

No comments:

Post a Comment