JMeter中的OutOfMemoryError [英] OutOfMemoryError in JMeter
本文介绍了JMeter中的OutOfMemoryError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在JMeter中,我遇到此错误.
In JMeter I am getting this error.
jmeter.JMeter: Uncaught exception: java.lang.OutOfMemoryError: Java heap space
请让我知道如何解决.
推荐答案
增加JMeter堆内存
Increase the JMeter heap memory
- 在资源管理器中找到JMeter的安装位置
- 打开bin目录.
- 找到
JMeter.bat
文件,然后使用文本编辑器将其打开 - 找到以下
set HEAP
- Within your explorer find where you installed JMeter
- Open up the bin directory.
- Find the
JMeter.bat
file and open it with a text editor - Find the following
set HEAP
您可以将此
HEAP
值设置为任意值,在本示例中,我说过从头开始并在整个测试过程中分配2 GB的内存:set HEAP=-Xms2048m -Xmx2048m
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
这篇关于JMeter中的OutOfMemoryError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文