Jmeter 'View Results In Table' logging only partial requests - jmeter

I am running a test on Jmeter (Version 4.0) using Throughput Shaping Timer in order to achieve constant rate of hits per second.
I am logging all the data of 'view Results in table' to a file and using it to track all the requests.
The functionality of my application is such that When jmeter hits API , it creates a database entry for each of the hit.
After test execution is finished, I can see that number of results in log of 'View Results in Table' is less than the number of database entries created by jmeter test run. Also, I am able to arrive at the requests which are not present in logs, but are present in database.
Does 'View Results in Table' not save all the requests ? How can this be changes to obtain data of all the requests ?

As per View Results Tree listener documentation:
Starting with version 3.2 the number of entries in the View is restricted to the value of the property view.results.tree.max_results which defaults to 500 entries. The old behaviour can be restored by setting the property to 0. Beware, that this might consume a lot of memory.
You can disable the limitation by adding the next line to user.properties file:
view.results.tree.max_results=0
JMeter restart will be required to pick the property up.
Be aware that according to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.1 (or whatever is the latest version at JMeter Downloads page) as soon as possible

Related

Cannot see all results in Jmeter results tree and report

I'm facing a weird situation with Jmeter 5.4.1
When running a suite, in my results tree all I can see are the results from first 7 (of 30) tests, and in the report, 20 of 30 tests.
All calls are simple and have just a status code and body response assert, and nothing more.
Anyone aware about this issue?
I don't think it's "weird", it's "by design".
By default JMeter stores/shows 500 last results in the View Results Tree listener
If you want to remove this limitation you can add the next line to user.properties file:
view.results.tree.max_results=0
JMeter restart will be required to pick the property up. Then you will be able to see all the results (given they will fit into memory)
More information:
Configuring JMeter
Apache JMeter Properties Customization Guide

Jmeter + Jenkins Performace plugin

I have set thread properties as
${__P(threads,)}
for Number of user and
${__P(rampup,)}
for rampup period in jmeter GUI.
Then created a job in jenkins, chosen 'This project is parameterized' and included String parameter 'THREADS' & 'RAMPUP'. I have mentioned the right path for the execution, included -Jthreads=%THREADS% and -Jrampup=%RAMPUP% under Execute Windows batch command.
The right path was set for generating the performance report.
After choosing 'Build with parameters', assume the 'THREADS' as 10 and 'RAMPUP' as 0, the build is successful.
The issue is with the 'Performance report' as every time the 'HTTP Request' count is displayed as 20 by default irrespective of whatever value is provided at the time of build. The thread count of 10 is not being considered as a parameter. By default the HTTP Request count shows as '20' requests instead of the actual '10' requests in reports.
Performance Plugin doesn't know anything about Jenkins parameters, most probably you configured it badly so it consumes the same .jtl results file all the time and doesn't load any updates.
Further assistance is not possible without seeing the screenshot of the freestyle project or the code of your Jenkins JMeter pipeline.

Scheduler execution gets over/stopped before specified time

We are running Jmeter scripts in Scheduler mode for 1 hour (Master - 4 Slave machines), however the execution gets over/stopped before 1 hour time (ex: it stops in 40 mints).
Below is the setup: Jmeter version 5.1
Thread Group: Scheduler checked with Duration 1 hour, Forever is selected.
CSV config: Recycle EOF is set to True, Stop thread on EOF is set to False. The CSV is having 20 rows and these rows data has been used/fetched multiple times during 40 mints.
--HTTP Sampler
Tried multiple times with different duration, still the same issue. No errors logged in jmeter.log file.
Referred below resource as well:
JMeter ignore Duration time when using Scheduler
Please suggest to make it to work for complete specified duration.
Unfortunately we're not telepathic enough to guess what's wrong without seeing jmeter.log file from the master machine and jmeter-server.log files from the slaves, the answer should be either in these or in the .jtl results file.
Your test configuration looks very good, just check 3 points:
make sure that the OS time is synchronised on all the slaves and the master
Copy your CSV file to all the slaves
None of Stop Thread/Stop Test/Stop Test Now radiobuttons in the Thread Group are checked
Also be informed that according to 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure article you should always be using the latest version of JMeter so consider upgrading to JMeter 5.2.1 (or whatever is the latest stable JMeter version available at JMeter Downloads page) on next available opportunity as it might be the case you're suffering from a form of a bug which has been already fixed.

View result file in Jmeter

Need a help in jmeter. When we run jmeter from GUI mode, we can see the instant results in UI and that gets auto refreshed in milliseconds or lesser.
But when I run jmeter from command line , in non GUI mode it still creates the result file and I can view it by another jmeter and with the adding an aggregate report listener to it. It opens the results with a pop up alert message but does not refresh it. For getting the updated results , need to browse and open it again .
So is there any way/plugin to open the file to view with auto refreshed as we can view while running in GUI mode.
Thanks
It is not recommended to use listeners during test run, even if it is done via another instance of JMeter. Wait for the test to finish and then perform the analysis.
If for some reason looking into interim stats is absolutely required I would recommend running your JMeter test using Taurus tool as a wrapper, you'll be able to see some statistics and graphs this way:

Fetch response times in JMeter running remotely

Ok so I set up my JMeter to run remotely using one slave computer (possibly more to come), and it's working out for the most part EXCEPT that I can't fetch the response time over time-graphs function using the JMeter plugin. I'm still able to use the "PerfMon Metrics" tool to get the CPU/Memory values from the slave computer, so I don't understand how I'm not able to get the response time results.
Does anyone have any experience using that function?
I would check the master- slave configuration: be sure that
the same Jmeter release is used
same directory tree structure is used
Jmeter-plugins are installed on both systems
...
If you use a standard "Summary report" listener, and save data to a file in the master, then you can reload and analyse the data off line with any listener.
HTH

Resources