Modify jmeter heap memory under Windows

When using jmeter on this machine (windows environment), it will appear that the interface always reports an error when the thread ends at the end. This is caused by insufficient memory given to jmeter by your computer.


The following is to teach you how to modify jmeter memory

 Right click to enter edit mode


Change this line to

set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=1024m

It is recommended to modify it to 1024, and set it according to your needs

then save it


Restart jmeter after modification

 

After startup in D:\Program Files\Java\jdk1.8.0_211\bin\jconsole.exe

Run as an administrator, there is no ApacheJMeter.jar option without starting jmeter

 

Observe whether the number here is the modified number, if yes, it means success, if not, reopen the edit mode to check if there is any error, restart jmeter, and then check the vm parameters of jmeter monitoring and management console

 

Guess you like

Origin blog.csdn.net/lovedingd/article/details/130954337