在 JMeter 中我遇到了这个错误。
jmeter.JMeter: Uncaught exception: java.lang.OutOfMemoryError: Java heap space
请告诉我如何解决。
最佳答案
增加JMeter堆内存
- 在资源管理器中找到 JMeter 的安装位置
- 打开bin目录。
- 找到
JMeter.bat
文件,用文本编辑器打开 - 找到下面的
set HEAP
You can set this
HEAP
value to whatever you like, in this example I've said allocate 2 GB of memory from the start and throughout the test run:set HEAP=-Xms2048m -Xmx2048m
关于java - JMeter 中的 OutOfMemoryError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26751940/