Forums Register Login

Problem with JMX

+Pie Number of slices to send: Send
Hello Everybody,
I have written a very simple jmx program. The code is as under.

HelloMBean


Hello


SimpleAgent


The code compiles fine and I run the program SimpleAgent with the commandline option java -Dcom.sun.management.jmxremote SimpleAgent. But when I connect to jmx agent using jconsole tool, it dosen't display any local processes to be monitored.


Why is this happening ?. Please tell me where I am going wrong.
+Pie Number of slices to send: Send
That's odd. Are you starting jconsole after SimpleAgent, or at least trying to connect after it's been started? If jconsole is already running, and showing the "Connect to agent" dialog, then it won't pick up newly started processes.
+Pie Number of slices to send: Send
Yeah I am starting JConsole after running SimpleAgent program. Do I have to start jconsole before running the simpleagent program. Please guide me.
+Pie Number of slices to send: Send
No, if jconsole is started after SimpleAgent, then it should list it right away.
+Pie Number of slices to send: Send
 


No, if jconsole is started after SimpleAgent, then it should list it right away.



Yeah I am doing that only .... starting jconsole after starting simpleagent.. but jconsole isn't showing up anything ....
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 899 times.
Similar Threads
why JMX can not stop
read message from Topic
MBean not visible in Jconsole - Help needed
mail send
overriding JDBCRealm
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:18:36.