分享

jmeter.bat启动报错

 weiz108 2011-03-03
今天,在用Jmeter2.4的时候,启动Jmeter.bat的程序时,出现以下出错信息:
Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
 
Could not create the Java virtual machine.

errorlevel=1

请按任意键继续. . .

 

上网查了一下,可以用以下方法解决:

编辑jmeter.bat文件,将set DUMP=-XX:+HeapDumpOnOutOfMemoryError注释掉。

 

另外,还查了一下原因。

是因为机器用的是1.5的jdk环境,网上的大牛们说:

 

Well, this is an unexpected one. Apparently the HeapDumpOnOutOfMemoryError option was added in JDK 1.6, and then back-ported into 1.4.2_12, 1.5.0_07. We'll document this, and discuss what to do to fix it.

 

所以呢,还有一个方法是可以解决的,就是升级你的jdk环境到1.6罗。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多