Monitoring JVM Memory and Threads in CPP Applications

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: Monitoring JVM memory and threads in C++ Applications, when troubleshooting application memory and thread consumption.

Overview

In some cases, you might want to monitor the activity of the JVM running as part of your C++ application. The jconsole is a great tool that allows you to troubleshoot the JVM internals.

To view and monitor the JVM loaded into the C++ process memory address using the jconsole:

  1. Have the following settings as part of your application:
    xmog_jvm_loader & loader = xmog_jvm_loader::get_jvm_loader( );
    loader.setDashDOption("com.sun.management.jmxremote.port" , "10099");
    loader.setDashDOption("com.sun.management.jmxremote.authenticate" , "false");
  2. Start the jconsole – make sure %JAVA_HOME%\bin is part your path.
  3. Once the jConsole has started – move to the Local tab:

    This shows you the status of the JVM running in your C# application:
    For more details on JMX and jconsole, refer to:

Wiki Content Tree


Your Feedback Needed!

We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Labels

 
(None)