有已知的已知;有些事情咱们本身知道本身知道;java
咱们也知道有已知的未知;这是指咱们知道有些事情本身不知道;node
可是还有未知的未知;有些事情咱们不知道本身不知道;性能
---美国国防部长 唐纳德·拉姆斯菲尔德 2002年2月12日 测试
---读《性能之巅》ui
在技术群里边看到有人会问到启动dos窗口有个警告的提示,WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5。spa
可是并不影响使用。我也在本身本地装的时候遇到过该状况,只是因为不影响任何使用就忽略掉了,那么今天找找该问题的缘由,作一次总结。.net
资料来源:https://blog.csdn.net/zjq001x/article/details/70847483翻译
http://stackoverflow.com/questions/20698493/jmeter-starts-with-warning-messagecode
http://www-01.ibm.com/support/docview.wss?uid=swg21496098orm
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.
翻译:
错误缘由:
java.util.prefs.WindowsPreferences须要保存信息到HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs而不是HKEY_CURRENT_USER\Software\JavaSoft\Prefs。
解决办法:
The work around is to login as the administrator and create the key HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs.
以管理员身份登陆,建立HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs项,
虽然Jmeter不会保存任何东西到该项,仍会将信息保存到HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs。
以上方法能够解决,但通过测试,发现不用建立注册项, “以管理员身份运行一次” jmeter.bat 也可解决。