How to enable my process to expose the memory usage tab to jconsole

Solution Unverified - Updated -

Environment

  • Fuse ESB
  • Fuse Message Broker

Issue

Can jconsole be configured to view the memory, threads, classes and VMSummary tabs on a running instance of the Fuse ESB or Fuse Message Broker process?

Resolution

You need to add "-Dcom.sun.management.jmxremote" to your java command line.

If you are using ant and your process starts an embedded instance, add the following to the appropriate ant target in your build.xml file:

    <jvmarg value="-Dcom.sun.management.jmxremote">

if you are using start scripts to start Fuse ESB or Fuse Message Broker instance, then you do not need to add above JVM property at all since the start scripts of Fuse ESB and Fuse Message Broker already have the property configured as default.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

1 Comments

fact:

All Supported Operating Systems