PerfMon JMX not connecting, but jconsole does

418 views
Skip to first unread message

J G

unread,
Nov 18, 2012, 1:10:50 PM11/18/12
to jmeter-...@googlegroups.com
I everyone,

I am running JMeter 2.7 and JMeter plugins 0.5.5.  I have the server agent running, and have three monitors setup for cpu, memory and network going on 4444.  I have also changed the startup parameters on Tomcat 6 to allow jmx on 5555.

-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=5555
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

I have disabled the firewall on the remote server.  I have run a netstat -a there to make sure I had a listener on 5555.

When I configure the PerfMon for JMX, 10.22.5.237 / 5555 I get the following error:

kg.apc.perfmon.client.TransportFactory: Can't connect TCP transport for host: /10.22.5.237:5555 java.io.IOException: Agent is unreachable via TCP

From the same machine JMeter is running on, I run jconsole, go remote, enter the same parameters and I can connect and collect JVM usage data, etc.

I have tried with the hostname as well, it will resolve but fails to connect as well.  Any ideas?  I really need this metric for my testing! ;-)

Thanks so much, the rest of the tools and plugins have worked without flaw!

Andrey Pohilko

unread,
Nov 20, 2012, 6:39:20 AM11/20/12
to jmeter-...@googlegroups.com
Seems you're trying to connect PerfMon to port 5555, but you have to connect agent to 4444, and have JMX metric in agent configured to connect to 5555. I understand, it sounds a bit tricky. Sorry for this, keep trying!

воскресенье, 18 ноября 2012 г., 22:10:50 UTC+4 пользователь J G написал:

J G

unread,
Nov 24, 2012, 4:56:21 PM11/24/12
to jmeter-...@googlegroups.com
Andrey,

Thank you!! You are correct.  I dug deeper in the docs and set my JMX port to 4711 (in tomcat).  After restarting the serverAgent, it picks up on that port (the default) automatically.  Then in JMeter, I just attached to 4444 and in the metric parameter double clicked in the field, then used the (...) options button and set it all up.   I'm only mentioning all of this in case anyone wanders down the path I did.

Once again, thanks so much for your help, it's working great!
Reply all
Reply to author
Forward
0 new messages