Cannot display headless Perfmon Metrics Collector results

657 views
Skip to first unread message

Owen Lynch

unread,
Dec 6, 2011, 6:58:39 PM12/6/11
to jmeter-...@googlegroups.com
Hi,

I have a test plan that I run headless and save the results to a .jtl file. I have another 'View Results' test plan that I use to examine the results by using the 'Read from file' facility of listeners such as Aggregate Report etc. I added a Perfmon Metrics Collector to the headless test plan and verified it works by running it via the GUI. But when I run it headless and look for results in the 'View Results' test plan (by adding a a Perfmon Metrics Collector and using the 'Read from file' facility) it fails with the following error:

2011/12/07 11:42:34 WARN - jmeter.reporters.ResultCollector: Failed to load /Users/owenl/IMG/jmeter_failover/load_tests/Results/users10.jtl using XStream. Error was: com.thoughtworks.xstream.converters.ConversionException: org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult : org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult
---- Debugging information ----
message : org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult
cause-exception : java.lang.ClassCastException
cause-message : org.apache.jmeter.protocol.http.sampler.HTTPSampleResult cannot be cast to kg.apc.jmeter.perfmon.PerfMonSampleResult
class : org.apache.jmeter.save.TestResultWrapper
required-type : org.apache.jmeter.save.TestResultWrapper
line number : 3
-------------------------------

Any idea on how I can display Perfmon results from a headless run?

Details:

JMeterPlugins version: 0.4.2

Thanks,
Owen Lynch

Andrey Pohilko

unread,
Dec 7, 2011, 2:36:53 AM12/7/11
to jmeter-...@googlegroups.com

Owen Lynch

unread,
Dec 7, 2011, 5:23:48 PM12/7/11
to jmeter-...@googlegroups.com
Hi Andrey,

thanks for your prompt response. The snapshot fixes the exception, so now the Perfmon Metrics Collector can read the .csv file without error, but the displayed graph has no data. This seems to be a fundamental JMeter issue, which does not support saving response data in csv files, per the jmeter.properties comment:
# response_data is not currently supported for CSV output

I have the Perfmon Metrics Collector in the headless test plan saving to csv file, with the following configuration (note that the read fails if 'Save Idle Time' is selected):

The following columns are created in the .csv file:
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,grpThreads,allThreads,URL,Filename,Latency,Encoding,SampleCount,ErrorCount,Hostname

It seems that the only way I can save perfmon samples in a headless test plan for later display by a  Perfmon Metrics Collector is to save to a .csv file and then read from the .csv file, but I cannot save any data this way. Is there anyway around this impasse?

Thanks,
Owen Lynch

Andrey Pohilko

unread,
Dec 8, 2011, 4:50:56 AM12/8/11
to jmeter-...@googlegroups.com
Make sure you collect data with the same plugins version where you load file.

Owen Lynch

unread,
Dec 8, 2011, 2:47:39 PM12/8/11
to jmeter-plugins
The same plugin version is used to collect data and load from file.
The problem is that the response data is not saved to file, so cannot
be displayed. It seems that the only way I can save perfmon samples in

a headless test plan for later display by a Perfmon Metrics Collector
is to save to a .csv file and then read from the .csv file. But jmeter
prohibits response data from being saved to a .csv file. How can I
save Perfmon Metrics Collector responses to file so that they can be
displayed by reading the file?

Andrey Pohilko

unread,
Dec 9, 2011, 4:15:29 AM12/9/11
to jmeter-...@googlegroups.com
Huh, just set up saving in PerfMon GUI. There is field for file name. Perfmon values are stored in responseTime, not in responseData
Reply all
Reply to author
Forward
0 new messages