I need to run a thread test with over 10000 threads but at about 2000, I get the error:
Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread.
My machine has 8GB ram. I tried
set JVM_ARGS="-Xms1024m -Xmx6144m" jmeter.sh
I didnt change anything in the jmeter.sh file though. Do I need to change anything? What else could I do to run such a large test? How do I run a jmx file without the jmeter gui also? (using mac osx)
确保您使用的是64位jre环境,错误应消失。
Make sure that your JVM heap tuning parameters are really applied. The best place to put them is locating the following line
for Windows: in jmeter.bat file
set HEAP=-Xms512m -Xmx512m
for Linux/Unix/MacOSX: in jmeter file
HEAP="-Xms512m -Xmx512m"
and amending it according to your needs
See JMeter Performance and Tuning Tips for explanation on above and few more recommendations.
Actually the number of threads JMeter can kick off strongly dependent on what your test is doing, if it is something very "lignt" - it may be enough to use just one machine with 8Gb RAM, however if your test assumes massive postprocessing, sending, receiving and parsing large amounts of data, if you exhaust one machine resources and aren't able to reach the desired load - consider Remote Testing when one JMeter node orchestrates a number of slaves executing the same test scenario - it allows producing almost unlimited load.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.