My favorites | Sign in
Project Home Downloads Wiki Issues
Search
for
HowtoUse  
How to use eclipse-jmx
Featured, Howto
Updated Sep 17, 2008 by jmes...@gmail.com

Introduction

eclipse-jmx comes with its own Eclipse perspective from which you can manage Java applications

Details

After you install eclipse-jmx, in Eclipse:

  • got to Window > Open Perspective > Other...
  • select JMX and click OK

The JMX perspective is composed of a single view:

  • MBean Explorer which list the mbeans

When you double-click on a MBean in the MBean Explorer view, it will open a multi-page editor to manage the MBean.

The MBeanEditor is composed of 3 pages:

  • Attributes to get/set the attributes of the MBean
  • Operations to invoke operations on the MBean
  • Notifications to receive notifications from the MBean
  • Info which displays general information about the MBean

Connection

To connect to a MBean Server:

  • click on the Connect... icon () in the MBean Explorer menu bar
  • set the name Host and port and click on OK
    • the default JMX URL is service:jmx:rmi:///jndi/rmi://localhost:3000/jmxrmi
  • you can alternatively type a complete JMX URL in the Advanced Tab of the JMX Connection window
    • only JMX URL based on RMI are supported

Comment by zkf9...@gmail.com, Nov 30, 2007

which version of eclipse does the plug-in need?

Comment by michal.h...@gmail.com, Dec 3, 2007

hi, im kinda lost when connecting to the server. im using jboss and i dont know which values to fill and how.

could you please be more versatile how to fil-in the dialog box? whether i only need to fill-in simple tab or also advanced?

thanks in advance!

Comment by michal.h...@gmail.com, Dec 3, 2007
Comment by michal.h...@gmail.com, Dec 3, 2007

hi, i figured it out. in run.bat under %JBOSS_HOME%/bin you must near the end add these lines (on Windows, on Linux with $ instead od %%): set JAVA_OPTS=%JAVA_OPTS% -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=3000 set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false

Comment by r_f...@pacbell.net, Jan 17, 2008

Thanks for a good tool. There are 2 enhancements I would like to see:

1) Persist Connect properties between connections. Right now I have to enter a new JMX URL in the Advance section everytime I click on Connect even though only the hostname changes in most cases. 2) Allow connections to be named, saved, and shown in the MBean Explorer. I have multiple servers I need to connect too and I was hoping this plugin would allow me to create a connection profile to each one. The MBean Explorer show the profile names at the high level and the mbeans under that in the tree making this way more useful.

Comment by ichupr...@gmail.com, May 23, 2008

Good day, nice plugin. Saving server list will be nice fiture.

Comment by basil...@gmail.com, May 27, 2008

+1 for saving server list

Also can't find refresh button.. neither F5 worked.. :-( How do you refresh MBean Explorer View?

Comment by o.vivero...@gmail.com, Mar 23, 2010

i have problems with the connection.


Sign in to add a comment
Powered by Google Project Hosting