简体   繁体   English

RMI注册表不可用错误

[英]RMI registry not available error

I am runing JBoss AS 5 on Unix. 我正在Unix上运行JBoss AS 5。 I want to start visualGC remotely from windows 7. 我想从Windows 7远程启动visualGC。

First, I have create an RMI Registry on port 8725 -because the RMI registery default port was busy- using the command rmiregistry 8725 & . 首先,我在端口8725上创建了RMI注册表-因为RMI注册默认端口正忙-使用命令rmiregistry 8725 &

Second, I tried to start a jstatd server using the command jstatd -p 8725 -J-Djava.security.policy=/app/home/user/jstatd.policy 其次,我尝试使用命令jstatd -p 8725 -J-Djava.security.policy=/app/home/user/jstatd.policy启动jstatd服务器。

Third, I started the Jboss Server. 第三,我启动了Jboss服务器。

Fourth, I got the process id of the server which is 8627 . 第四,我得到服务器的进程ID是8627

Last, I returned to windows 7 and I tried to run this command visualgc 8627@XX.XXX.X.XX:8725 .Unfortunately it returned with the following error: 最后,我返回Windows 7,并尝试运行此命令visualgc 8627@XX.XXX.X.XX:8725它返回了以下错误:

RMI Registry not available at XX.XXX.X.XX:8725 Connection refused to host: XX.XXX.X.XX; nested exception is: java.net.ConnectException: Connection timed out: connect

Can you please explain to me what I am doing wrong? 您能告诉我我做错了吗?

Thanks in advance. 提前致谢。

because the RMI registry default port was busy 因为RMI注册表默认端口忙

Why was it busy? 为什么忙呢? Port 1099 has been reserved by the IETF for the RMI Registry since at least 1996. Maybe there was already an RMI Registry running? 至少从1996年开始,IETF就为RMI注册中心保留了1099端口。也许已经有一个RMI注册中心正在运行?

java.net.ConnectException: Connection timed out: connect

That means that that host:port is reachable from your host but did not respond. 这意味着host:port可从您的主机访问,但没有响应。 Maybe there is a firewall in the way? 也许路上有防火墙?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM