jeudi 11 janvier 2018

Tuning Apache Jmeter for Increased Request Throughput

I currently need to execute a test with apache Jmeter that makes 400 requests per second. To achieve this I have configured a Constant Throughput Timer to 12000 requests per minute (active for all threads in current thread group) and am executing the test from two test servers, each with 32G memory.

The test runs fine at 400tps total for around 15/20 minutes (I am trying to get a run of over an hour) at which point the throughput decreases - sitting at 280 tps when the test finishes.

Are there any tuning parameters or considerations I can take into account when running the test? I have included an example of the heap sizing in my jmeter.bat file.

set HEAP=-Xms1024m -Xmx25600m
set NEW=-XX:NewSize=2048m -XX:MaxNewSize=2048m
set SURVIVOR=-XX:SurvivorRatio=6 -XX:TargetSurvivorRatio=50%
set TENURING=-XX:MaxTenuringThreshold=2
set GC=-XX:+UseConcMarkSweepGC
rem Java 8 remove Permanent generation, don't settings the PermSize
if %current_minor% LEQ "8" (
    rem Increase MaxPermSize if you use a lot of Javascript in your Test Plan :
    set PERM=-XX:PermSize=64m -XX:MaxPermSize=128m
)

I'm using Jmeter ver 3.1. It's worth noting there is a large amount of javascript used to facilitate restrictions to the percentage of threads making certain requests. There is a decent amount of beanshell running and some Groovy also.

Any help is appreciated, a quick google doesn't seem to turn up much around this issue.

Aucun commentaire:

Enregistrer un commentaire