启动jmeter内存溢出及启动错误提示的解决方法
2015-05-02 17:44:51   来源:   评论:0 点击:

启动jmeter内存溢出的解决方法:提示 An error occurred: PermGen spaceUncaught Exception java.lang.OutOfMemoryError: PermGen...
启动jmeter内存溢出的解决方法:
 
提示 An error occurred: PermGen space
Uncaught Exception java.lang.OutOfMemoryError: PermGen space. See log file for details.
 
linux环境,修改jmeter.sh
下面添加如下配置:
java $JVM_ARGS -Xms1G -Xmx5G -XX:MaxPermSize=512m -Dapple.laf.useScreenMenuBar=true -jar `dirname $0`/ApacheJMeter.jar "$@"
一般根据实际情况修改-Xmx5G,由小改到大。
windows环境,修改jmeter.bat
set HEAP=-Xms256m -Xmx256m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m
改为:
set HEAP=-Xms256m -Xmx1024m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=512m
 
Running clemb in Windows 7 will produce the following error: Windows RegCreateKeyEx(...) returned error code 5
Technote (troubleshooting)
 
Problem(Abstract)
After running a clemb command under Windows 7 with Modeler 14.1 the following error is produced:
 
java.util.prefs.WindowsPreferences <init> 
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs 
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Cause
The error occurs because java.util.prefs.WindowsPreferences is trying to save information in HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs instead of under HKEY_CURRENT_USER\Software\JavaSoft\Prefs.
Environment
Windows 7 64-bit
Resolving the problem
The work around is to login as the administrator and create the key HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs. 

相关热词搜索:

上一篇:selenium异构环境中并行运行多个测试事例
下一篇:Context Switches上下文切换性能详解

分享到: 收藏
评论排行