PerfMon Metrics Collector showing "Waiting for samples..."

2,181 views
Skip to first unread message

andy...@gmail.com

unread,
Sep 17, 2013, 2:38:58 PM9/17/13
to jmeter-...@googlegroups.com
Hi,

I'm running ServerAgent 2.2.1, and I can telnet to it and request and receive metrics. But I can't see any metrics from the JMeter 2.9 GUI.

From the ServerAgent console, I can see the client connects ok and requests the configured metrics, but then the client seems to send an "exit" request.

I'm new to JMeter - do I need a test to be running? I was hoping to just be able to receive statistics...

Thanks,


Andy




(master) $ /usr/local/ServerAgent-2.2.1 ./startAgent.sh --udp-port 0 --loglevel DEBUG
DEBUG   2013-09-17 19:21:17.769 [kg.apc.p] (): Start accepting connections
INFO    2013-09-17 19:21:17.788 [kg.apc.p] (): Binding TCP to 4444
INFO    2013-09-17 19:21:17.795 [kg.apc.p] (): JP@GC Agent v2.2.0 started
INFO    2013-09-17 19:21:26.840 [kg.apc.p] (): Accepting new TCP connection
DEBUG   2013-09-17 19:21:26.842 [kg.apc.p] (): Creating new metric getter
DEBUG   2013-09-17 19:21:26.847 [kg.apc.p] (): Read: java.nio.DirectByteBuffer[pos=0 lim=5 cap=1024]
DEBUG   2013-09-17 19:21:26.847 [kg.apc.p] (): Command line is: test

DEBUG   2013-09-17 19:21:26.848 [kg.apc.p] (): Got command line: test
INFO    2013-09-17 19:21:26.848 [kg.apc.p] (): Yep, we received the 'test' command
DEBUG   2013-09-17 19:21:26.849 [kg.apc.p] (): Done executing command
DEBUG   2013-09-17 19:21:26.849 [kg.apc.p] (): Command line is: 
DEBUG   2013-09-17 19:21:26.851 [kg.apc.p] (): Read: java.nio.DirectByteBuffer[pos=0 lim=14 cap=1024]
DEBUG   2013-09-17 19:21:26.851 [kg.apc.p] (): Command line is: metrics:cpu:

DEBUG   2013-09-17 19:21:26.852 [kg.apc.p] (): Got command line: metrics:cpu:
INFO    2013-09-17 19:21:26.852 [kg.apc.p] (): Starting measures: cpu:
DEBUG   2013-09-17 19:21:26.870 [kg.apc.p] (): Creating metric: cpu with params: 
DEBUG   2013-09-17 19:21:26.877 [kg.apc.p] (): Have metric object: kg.apc.perfmon.metrics.CPUTotalMetric@cabe02e
DEBUG   2013-09-17 19:21:26.877 [kg.apc.p] (): Done executing command
DEBUG   2013-09-17 19:21:26.883 [kg.apc.p] (): Command line is: 
DEBUG   2013-09-17 19:21:27.106 [kg.apc.p] (): Read: java.nio.DirectByteBuffer[pos=0 lim=5 cap=1024]
DEBUG   2013-09-17 19:21:27.106 [kg.apc.p] (): Command line is: exit

DEBUG   2013-09-17 19:21:27.106 [kg.apc.p] (): Got command line: exit
INFO    2013-09-17 19:21:27.106 [kg.apc.p] (): Client disconnected
DEBUG   2013-09-17 19:21:27.134 [kg.apc.p] (): Done executing command
DEBUG   2013-09-17 19:21:27.134 [kg.apc.p] (): Command line is: 



In the JMeter GUI log window, with debug enabled:

2013/09/17 19:21:26 INFO  - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 
2013/09/17 19:21:26 INFO  - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false 
2013/09/17 19:21:26 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2013/09/17 19:21:26 INFO  - kg.apc.jmeter.perfmon.PerfMonCollector: PerfMon metrics will be stored in /var/folders/ky/s29r9121441cvv5ss5qlbgmh0000gp/T/perfmon_9024734366833131421.jtl 
2013/09/17 19:21:26 DEBUG - kg.apc.jmeter.perfmon.PerfMonCollector: PerfMon metrics will be stored in /var/folders/ky/s29r9121441cvv5ss5qlbgmh0000gp/T/perfmon_9024734366833131421.jtl 
2013/09/17 19:21:26 DEBUG - kg.apc.jmeter.perfmon.PerfMonCollector: Trying new connector 
2013/09/17 19:21:26 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 
2013/09/17 19:21:27 INFO  - jmeter.engine.StandardJMeterEngine: No enabled thread groups found 
2013/09/17 19:21:27 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2013/09/17 19:21:27 DEBUG - kg.apc.jmeter.perfmon.PerfMonCollector: Shutting down connectors 
2013/09/17 19:21:27 DEBUG - kg.apc.jmeter.perfmon.PerfMonCollector: Shutting down kg.apc.jmeter.perfmon.NewAgentConnector@757e2379 
2013/09/17 19:21:27 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 
2013/09/17 19:21:27 DEBUG - kg.apc.jmeter.perfmon.PerfMonCollector: Monitoring thread was interrupted java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at kg.apc.jmeter.perfmon.PerfMonCollector.run(PerfMonCollector.java:90)
at java.lang.Thread.run(Thread.java:724)

Andrey Pohilko

unread,
Sep 18, 2013, 7:54:38 AM9/18/13
to jmeter-...@googlegroups.com, andy...@gmail.com
That's easy - your test has no duration, so JMeter has no time to collect any sample. Add some samplers, some loops, and you'll see the graphs.

вторник, 17 сентября 2013 г., 22:38:58 UTC+4 пользователь andy...@gmail.com написал:

Andy Peel

unread,
Sep 19, 2013, 3:06:02 AM9/19/13
to Andrey Pohilko, jmeter-...@googlegroups.com
Thanks Andrey. I don't actually have a JMeter test, I just wanted to see a capture and plot. I need a way to capture statistics, and PerfMon looks like it fits the bill.

Andy

Andrey Pohilko

unread,
Sep 19, 2013, 5:23:08 AM9/19/13
to jmeter-...@googlegroups.com, Andrey Pohilko, andy...@gmail.com
Overcoming this is easy: just add a thread group to your test, set its loop parameter to "forever" and add a Dummy Sampler into thread group. Then you can start and stop your perfmon data collection manually.

четверг, 19 сентября 2013 г., 11:06:02 UTC+4 пользователь Andy Peel написал:

Generalusemail Generaluse

unread,
Nov 1, 2013, 10:30:14 AM11/1/13
to jmeter-...@googlegroups.com, andy...@gmail.com
I am new to jmeter and I have created a test plan for webservice.I have added the perfmon matric collector to my test plan.
The webservices are running on a remote server so I have to be on VPN to run this.
In the Preformon matric collector I have mentioned my server details as below
servername  Port:4444 CPU
After all this setup I have unziped the ServerAgent.zip file on the Server in one tmp directory.
I go to the remote server and start the StartAgent.sh as below
./startAgent.sh
INFO    2013-11-01 09:16:00.996 [kg.apc.p] (): Binding UDP to 4444
INFO    2013-11-01 09:16:02.000 [kg.apc.p] (): Binding TCP to 4444
INFO    2013-11-01 09:16:02.003 [kg.apc.p] (): JP@GC Agent v2.2.0 started
It looks like it is started.Now i go to jmeter and run the test plan i created.
after the jmeter test plan runs i get error in the as below
ERROR: java.io.IOException: Agent is unreachable via UDP
 
Please see the attached doc to see the jmeter test plan I created.
I really want to make this work.Can you please help me.DO i have to make changes in any properties files or in the StartAgent.sh file for my testing?
Do I need to change anything?
jmeter error.docx

Neelima patnaik

unread,
Jan 3, 2022, 8:49:26 AM1/3/22
to jmeter-plugins

Did you find any solouton to this,Myself too facing this issue
Reply all
Reply to author
Forward
0 new messages