Answered question

I had this "java.lang.OutOfMemoryError: unable to create new native thread" error during a load test, Why?

I receive the above out of memory error when I run my load test, even if I set a high amount of memory on my load generators?  My load generators are running under Linux RedHat 6 and had 6GB RAM allocated each.

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

One possible issue is that the maximum thread that a process can create per user has been reached  By default, it is limited and may need to be increased for load testing if it's not large enough.

Simply run  the “ulimit -u” command with the same user that starts the load generator service and see the result.
To increase that limit for a specific user you have to modify the “/etc/security/limits.conf” file and add something like the following :

#<domain> <type> <item> <value>
<user> soft nproc 65534
<user> hard nproc 65534

Where <user> is the user that starts the load generator.

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful