JMeter中的OutOfMemoryError [英] OutOfMemoryError in JMeter

查看:96
本文介绍了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

  1. 在资源管理器中找到JMeter的安装位置
  2. 打开bin目录.
  3. 找到JMeter.bat文件,然后使用文本编辑器将其打开
  4. 找到以下set HEAP
  1. Within your explorer find where you installed JMeter
  2. Open up the bin directory.
  3. Find the JMeter.bat file and open it with a text editor
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆