What are the parameters to be checked in JMeter and in a Linux VM before proceeding with a 10K VUser JMeter test?

Viewed 28

Tried to run a test in Non-GUI mode with 10K VUsers on a single Linux VM. Found the following error :

Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread (12116 threads running, rlimit (soft/hard)

The Heap Argument in JMeter has been set to 32GB. Yet there has been no improvement. I would like to know the arguments or the parameters to be checked in the Linux VM as well as JMeter before proceeding with the 10K VUser test. RAM of the machine = 65GB. Could someone help me with this please?

Thank You.

1 Answers

Most probably the error means that JMeter is trying to create a new native (Linux) thread and Linux doesn't allow the thread creation as you reached the maximum number of threads.

If you have a superuser-level access to the Linux box you can ramp-up the maximum number of threads, see ulimit command to determine the limits and /proc/sys/kernel documentation with regards to how to increase them.

If you don't have possibility to log in as root - the only solution would be getting one more machine (you may need more than one) and run JMeter in distributed mode

Related