Warm tip: This article is reproduced from serverfault.com, please click

JMETER: JMeter 5.3 java.lang.OutOfMemoryError. During Jmeter execution

发布于 2020-12-02 15:06:20

I have configured a Testplan using Jmeter shown below in the image and have been using the CLI to run my parallel load tests. MAC USER

testpla enter image description here

I have configured a connection with my AWS RedShift database, when I check my queries monitoring, all of the queries get stuck in a Running state.

rds

After some time, on my terminal, i get the following error: JMeter 5.3 java.lang.OutOfMemoryError.

I have gone into my bin/jemeter file and have made the memory changes but I am still facing the same issue.

memory change

When I run the same queries from DBeaver, the queries are run and completed and can be seen on Redshift query monitoring.

How can I solve the memory problem in order for the queries to run without being stuck in a running state?

Below is the Error i am getting even after increasing the heap size to 5 gigabytes.

WARNING: package sun.awt.X11 not in java.desktop
Creating summariser <summary>
Created the tree successfully using //Users/mbyousaf/Desktop/redshit-test/test-redhsift.jmx
Starting standalone test @ Wed Dec 02 14:53:17 GMT 2020 (1606920797442)
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
Warning: Nashorn engine is planned to be removed from a future JDK release
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid35596.hprof ...
Heap dump file created [3071802740 bytes in 3.747 secs]
Questioner
Bilal Yousaf
Viewed
0
Dmitri T 2020-12-02 23:34:33

Which exact OutOfMemoryError? There are several possible reasons:

It's not possible to state what's wrong without seeing your full test plan (at least screenshot) as it might be the case you added tons of Listeners and each of them stores large DB query response in memory and jmeter.log file (definitely not in the form of screenshot) which in the majority of cases contains either the cause of the problem or at least a clue