File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Monitoring Tools to Monitor JVM and Oracle Connections and Network. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Monitoring Tools to Monitor JVM and Oracle Connections and Network." Watch "Monitoring Tools to Monitor JVM and Oracle Connections and Network." New topic

Monitoring Tools to Monitor JVM and Oracle Connections and Network.

Mp Ramkumar

Joined: Apr 28, 2009
Posts: 26
We are using Load Runner for the performance Testing of our application. We do not have java heap size monitoring tool, Oracle connections,sqls monitoring tool and also the Netword bandwidth and Latency monitoring tool when the concurrent user test execution is inprogress.

Using Load runner we are capturing the server level resources like available MBytes, Java process utilization, CPU utilization etc., we do not have license for may other counters to monitor.

Can some one please suggest us a free tool which will help us to track the JVM heap size utilization and GC etc., Network idle/usage etc., Oracle


tim fox

Joined: Oct 18, 2009
Posts: 4
One easy thing you can do is to turn on Garbage Collection stats at the JVM. If you are using OC4J, then go in to the JVM you're dealing with and get to the Server Parameters section under Administration. Once there, you can turn on GC stats and have them written to a file. Add this to the JVM parameters:

-verbose:gc -Xloggc:c:\somedirectory\log.txt

This will output heap stats that will tell you the total heap size, memory allocated before a GC, after a GC and how long the GC took. You can then download a GC viewer that will graph this data for you if you find that necessary. For the most part, we use the log file when we think there is something wrong and we just tail it to see real-time stats.

Using this method applies only a minute additional load on the JVM, unlike using a profiler.

Mp Ramkumar

Joined: Apr 28, 2009
Posts: 26
Thanks Tim... Can this be used in our Performance Testing environment. Because if it uses resources considerably then our response times varies. So I am asking?

Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 255

Hi Tim,
can we do the same settings in Apache Tomcat as well? If yes then which file should I update with the line mentioned by you..

Salil Verma
Peter Johnson

Joined: May 14, 2008
Posts: 5852

For Tomcat, you can edit either the startup.bat ( or catalina.bat ( file. Just add a line like this near the beginning:

set JAVA_OPTS=%JAVA_OPTS% -verbose:gc -Xloggc:c:\somedirectory\log.txt

or on Linux:

JAVA_OPTS="$JAVA_OPTS -verbose:gc -Xloggc:c:\somedirectory\log.txt"

JBoss In Action
Kees Jan Koster
JavaMonitor Support

Joined: Mar 31, 2009
Posts: 251
Dear Ram,

Have a look at Java-monitor. It is a free, on-line monitoring service. It will graph your JVM resources, as you can see in the live demo:

Java-monitor does not monitor your network, though. You'd have to use some other tool for that.

Kees Jan

Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Mp Ramkumar

Joined: Apr 28, 2009
Posts: 26
Thanks Kees Jan. I will publish our experiment status once we verify. We need to verify the load on the appserver during performance testing with some no. of users, due to this monitoring work.
Mp Ramkumar

Joined: Apr 28, 2009
Posts: 26
Hi Guys,
We have used Jconsole with Weblogic with our product. When 100 concurrent users accessing the application we have observered the jVM usage and response times of the transactions. (When Jconsole is not used with weblogic), and (When Jconsole is used with weblogic to collect JVM details).

The response times and the server resources consumtion seems normal. No difference. Hence planning to JConsole.

Thanks to all.

Can some one suggest a good tool for Oracle monitoring. We would like to monitor Sessions, SGA, Cursors etc., We need a opensource tool.

Thanks & Regards,
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 862
With jamon you can monitor jdbc connections, exceptions, and query performance times to name a few. - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
evident software

Joined: Feb 21, 2012
Posts: 1
Java monitoring tool – deploy in minutes to analyze and manage real-time performance for critical web apps & NoSQL DBs requiring java monitoring.
For getting more detail about this tool visit:Java monitoring tool
soundar rajan

Joined: May 08, 2013
Posts: 16
you can use jvisualvm and jconsole for monitoring your application. If you need to connect remote machine please refer the following link:
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 163

If you are using the latest version of Oracle JVM (hotspot) , you can also use jrockit mission control to profile your application/JVM

Please, visit me for some cool tech post at
I agree. Here's the link:
subject: Monitoring Tools to Monitor JVM and Oracle Connections and Network.
It's not a secret anymore!