Can't get a connection

1,121 views
Skip to first unread message

CJ22

unread,
Mar 14, 2012, 12:45:23 AM3/14/12
to jmeter-plugins
Hi guys,

I'm strictly a software guy, so forgive me if I post a dumb problem (I
also know very little about Linux). Getting this plugin working would
save me so much trouble, but I'm struggling to get anything out of it.

I've put the serverAgent folder onto the Linux server and run the
startAgent.sh script:

# ./startAgent.sh --tcp-port 9801 --udp-port 9801
INFO <date> [kg.apc.p] (): Binding UDP to 9801
INFO <date> [kg.apc.p] (): Binding TCP to 9801

(note the console doesn't revert to the command line, is this supposed
to happen?)

Q1. Can the UDP and TCP ports be the same? What is UDP used for?

When I run my jMeter script on my client machine, jMeter is unable to
establish a connection to the listener:

<time> - ERROR: java.net.ConnectException: Connection timed out:
connect
(multiple instances).

My server entry in PerfMon plugin is:

Port: 9801

Q2. Can anybody see what I'm doing wrong? I can definitely see the
server from the client machine, so that's not the issue.

Andrey Pohilko

unread,
Mar 14, 2012, 4:42:09 AM3/14/12
to jmeter-...@googlegroups.com
It is OK that serverAgent stays working after start.

UDP and TCP ports can be the same. UDP is just another way to get network messaging.

To check that you can connect to agent, type in command prompt:
telnet <server IP> 9801

If you can't connect to your server with telnet, then you have some firewall blocking access.

среда, 14 марта 2012 г. 8:45:23 UTC+4 пользователь CJ22 написал:

среда, 14 марта 2012 г. 8:45:23 UTC+4 пользователь CJ22 написал:

CJ22

unread,
Mar 14, 2012, 8:10:36 PM3/14/12
to jmeter-plugins
Hi Andrey, thanks for the quick reply. You were correct, there was an
unexpected firewall issue. Many thanks.

karthick sugumaran

unread,
Dec 13, 2012, 12:28:49 AM12/13/12
to jmeter-...@googlegroups.com



Hi Andrey,

I have installed apache-Jmeter 2.8 in my Windows 7 64-bit machine.I have to check the server metrics so I downloaded the JMeterPlugins-0.5.5.server and installed the server-agent plugin in Windows server Enterprise without Hyper-V 64 bit. I have uploaded the JMeterPlugins.jar file from JMeterPlugins-VERSION.zip inside JMETER_INSTALL_DIR/lib/ext. After I
restarted the Jmeter I got jp@gc-prefixesd plugins.

I installed jdk1.7.0_07 in my machine and in server I have installed jdk1.7.0_03. I have set the environment variabes for the both.
Windows machine :  C:\Program Files\Java\jre7\bin
Windows server  :  C:\Program Files\Java\jdk1.7.0_03\bin

Now, When I check the Server metrics using jp@gc-PerfMon Metrics Collector after adding the server in the row I got this error.

C:\JMeterPlugins-0.5.5\serverAgent>startAgent.bat
INFO    2012-12-12 12:53:52.714 [kg.apc.p] (): Binding UDP to 4444
INFO    2012-12-12 12:53:52.790 [kg.apc.p] (): Binding TCP to 4444
INFO    2012-12-12 12:53:52.795 [kg.apc.p] (): JP@GC Agent v2.1.2 started
INFO    2012-12-12 12:54:05.574 [kg.apc.p] (): Connecting new UDP client
INFO    2012-12-12 12:54:05.579 [kg.apc.p] (): Yep, we received the 'test' command
INFO    2012-12-12 12:54:05.580 [kg.apc.p] (): Starting measures: cpu:
INFO    2012-12-12 12:54:05.662 [kg.apc.p] (): Client disconnected

And in Jmeter I am getting ERROR: java.net.ConnectException: Connection refused: connect


Please help on this. I facing this issue past two days.




Thanks & Regards,
Karthick

Andrey Pohilko

unread,
Dec 13, 2012, 7:42:03 AM12/13/12
to jmeter-...@googlegroups.com
You have already asked the same question in different topic. Please, don't be annoying...

четверг, 13 декабря 2012 г., 9:28:49 UTC+4 пользователь karthick sugumaran написал:
Reply all
Reply to author
Forward
0 new messages