not able see the Mbean(Simple Agent) while running example
hi,
I am new to JMX.while i am running the example simpeagent in http://java.sun.com/developer/technicalArticles/J2SE/jmx.html.Not able to see the Mbean from jconole.I am using JDK1.5
Please help
Thanks in advance
Ramesh
Message was edited by:
javaguru123456789
Hi,
What do you exactly mean by "I am not able to see the MBean from JConsole":
1) Did you manage to connect JConsole to your application, or did this fail?
2) If yes did you go to the MBean TAB?
3) if yes did you open all the nodes in the tree on the left?
4) if yes to all these questions, are you sure you are connected to your
application that runs SimpleAgent - or are you maybe connected to
another process?
5) When you started the SimpleAgent, did you see any error message?
Hope this help,
-- daniel
JMX, SNMP, Java, etc...
http://blogs.sun.com/jmxetc
Hi ,I am not able to connect simple agent from jconsole.I started the Simple Agent.while i run the jconsole,it is not giving (simple agent)PID in the local tab.Please help,with regards,Ramesh
Hi Ramesh,
This usually happen when you forget to pass the
-Dcom.sun.management.jmxremote
flag on the java command line that starts the SimpleAgent:
java -Dcom.sun.management.jmxremote SimpleAgent
Make sure you didn't make any typo in the property name.
Let me know if that was the cause of the problem.
If that helps, you could also use NetBeans 5.0 and
install the JMX Module from the update center.
Then create a "java project with existing sources" for your
SimpleAgent, and choose to "Run With Management".
This will start both your application & jconsole connected to
it.
http://www.netbeans.org/
See also the NetBeans JMX tutorial
http://www.netbeans.org/kb/articles/jmx-tutorial.html
-- daniel
JMX, SNMP, Java, etc...
http://blogs.sun.com/jmxetc
Message was edited by: dfuchs