jMeter 服务器模式 - Windows 找不到“rmiregistry”
当我尝试在服务器模式下执行 jMeter 时,出现以下异常:
“Windows 找不到 'rmiregistry'”
。 我不知道如何解决这个问题,我用谷歌搜索了一下,但没有找到与我的问题相关的任何内容。
When I try to execute jMeter in server mode, I get this exception:
"Windows can not find 'rmiregistry'"
. I don't know how to solve this, I googled about it, but I didn't find anything related to my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您的路径中没有 rmiregistry。 确保 java\bin 目录位于您的路径中。
完成后,检查其是否正常工作:
如果不起作用,请再次检查您的路径。
在运行 jmeter-server.bat 之前,您可能需要自己启动注册表。 此外,编辑批处理文件以确保它使用正确的服务器设置运行。
It sounds like you don't have the rmiregistry in your path. Make sure the java\bin directory is in your path.
Once that's done, to check it's working:
If that doesn't work, check your path again.
You may need to start the registry yourself, before running the jmeter-server.bat. Additionally, edit the batch file to make sure it's running with the correct server settings.
Dylan 的答案是最有可能的,但只是为了补充说明,您的路径在 Windows 中存储为环境变量。 从命令行,您可以运行:
查看变量的值。 您应该看到各个目录路径的分号分隔输出。
要附加到变量(如果 java\bin 不在其中),请使用以下命令:
要检查 RMI 注册表是否已正确启动,您可以检查它是否正在侦听其标准端口(1099,除非您另有指定)使用 TCP View 等工具。
Dylan's answer is the most likely, but just to add clarification, your path is stored as an environment variable in Windows. From the command line, you can run:
To see the value of the variable. You should see a semi-colon delimited output of various directory paths.
To append to the variable (if java\bin isn't in there) use the following:
To check that the RMI registry has started correctly, you can check that it is listening on its standard port (1099 unless you've specified otherwise) with a tool such as TCP View.