JMeter throughput value in grafana - jmeter

I refer to the "http://www.testautomationguru.com/jmeter-real-time-results-influxdb-grafana/" article,
through grafana + infludx but there is a jmeter tps (throughput) value I do not know how get?
I tried "jmeter.all.h.count" but it did not seem to be the value I wanted:

I wrote the blog you were referring to!
We can not expect the backend listener metrics to give you an accurate result as you expect in the aggregate report - (specially percentiles, avg etc)
BackEndListener basically gives the metrics over time. You should plot the graph using the data over time. If you try to use single stat metric of Grafana with that data , then you will see a complete mismatch.
In the blog - I was using the modified apache_core.jar library to get the results as you are actually expecting. However I stopped sharing (after jmeter 2.13, jmeter 3.0) the modified lib.

You are referring to wrong component for values.
For GraphiteBackendListenerClient, sent values are described here:
http://jmeter.apache.org/usermanual/realtime-results.html
For InfluxdbBackendListenerClient, sent values can be found here:
https://github.com/apache/jmeter/blob/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java
Both components don't send throughput as it can be computed using Grafana and other metrics.

Found your answer in influxdb grafana tutorial,
Use jmeter.all.a.count:
If I query the “jmeter.all.a.count” which has the no of requests processed for every second by the server, I get below output. [No of requests processed / unit time = Throughput]

Related

Is there any time shift between jmeter and influxdb?

Just starting with jmeter and making some experiments I found something that looks kind of odd to me. I connected jmeter with influxdb and measured the avg. time response of one single request in a infinite loop. When I stopped the test I realized that the last time in the results csv created by jmeter is not the same as the one taken by influxdb. Specifically jmeter last measure is 13s higher than the one registered by influxdb. Any ideas on what could be happening?
I've tried to google it but haven't found any documentation or problem related
JMeter sends aggregated metrics, to wit it doesn't send each and every SampleResult but collects the results within some "window", default value is 5 seconds, controllable via backend_influxdb.send_interval JMeter Property
And metrics which are being sent are described here
You can try decreasing the 5 seconds window by amending the aforementioned backend_influxdb.send_interval JMeter property and setting it i.e. to 1000 ms so JMeter would send the data more often but it will create extra overhead so make sure that JMeter has enough headroom to operate and increasing metrics sending rate doesn't affect the overall throughput.

Summary report contain misleaded statistics jmeter

after running my performance script , the statistic report generated is quite confusing.
Response Time :6s minimum
90th pct:4.53s
95th pct:4.9s
How come minimum response time is greater then 90th and 95th percentile , am I doing something wrong here ?
It should not be the case, the relevant code lives under StatCalculator.java class
If you do believe that this is a JMeter bug - you should raise an issue in JMeter Bugzilla
The first thing they will ask you is your .jtl results file so if it doesn't contain top-secret information you can update your question with the .jtl file contents so we would be able to look into the issue as well.
P.S. Any chance you're using a Transaction Controller with non-default naming policy? If yes, it might have an impact on results
P.P.S. Any change you're using JMeter Plugins or amending sample results on the fly via Groovy scripting? If yes, it also may influence the test metrics

JMeter - How do I get latency in the aggregate report?

I just want to get the aggregate report include a column for latency.
I have already tried uncommenting jmeter.save.saveservice.latency=true in bin/jmeter.properties.
I am currently using JMeter 3.3
Any help would be greatly appreciated. Thanks!
UPDATE:
A little hack I tried that kind of worked was adding a JSR223 PostProcessor with the following 3 lines of code:
long startTime = prev.getStartTime();
long latency = prev.getLatency();
prev.setEndTime(startTime + latency);
I say kind of worked because it is a hack and even though it was able to correctly reset the average column from load time to latency, it started throwing off the throughput values.
The end goal in my case is just to get the latency along with the other values by running the CMDRunner.jar on the JTL file to output the summary results CSV file.
You can't .
Alternatively why not use the Web Report that exists since 3.0 and that provides a lot of rich information much better than all existing listeners.
See:
https://jmeter.apache.org/usermanual/generating-dashboard.html

JMeter - How to obtain error rate per page on a specific timeframe

I have been looking on the site and I don't see anything related to this topic, so I decided to ask.
Basically, I would like to know if there is a way to extract the error rate per page using a period of time. The reason is because we run a test in different stages, with different levels of throughput. Therefore, I am interested in obtain the degradation on page health. I already got the hits and response times. However, the error rate I don't see a way to get it.
If someone knows a way, please share!
Thank you in advance guys!
You can use the jp#gc - Hits per Second - listener. Just click on Errors check box to show only the failed requests which is the Error rate you are looking for!
For page level Error rate, you can jp#gc - Transactions per Second
You have the following options:
Response Codes Per Second chart available via HTML Reporting Dashboard
Response Codes Per Second chart available via JMeter Plugins
Use 3-rd party analysis solution like BM.Sense

Plotting same results in JMeter as ApacheBench

We are benchmarking our server and therefor we are using multiple benchmark tools. We already used ApacheBench giving us some great results and were also easy to plot in a graph.
Example plot AB results
Now we are using JMeter but having a hard time to get a good plot. We would love to have almost (completely) the same plo as the one from AB. So response time vs. requests. We tried already every listener but haven't found any satisfactory result.
We are using JMeter 2.10.
You can use:
Core Response time graph
Jmeter plugins : http://jmeter-plugins.org which has a lot of nice and very useful graphs which will meet your needs ( response time, percentiles, distribution, response codes per second ...)
Option 1: Isn't Response Time Graph what you're looking for?
Option 2: It's possible to build any graph from JMeter .jtl CSV or XML results file using Excel or equivalent, Google Charts API, JFreeChart, Javascript, etc.
Option 3: There is a JMeter Listener which automatically builds pretty and professional looking graphs for your performance test and have results comparison killer-feature

Resources