微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

java – JRMP连接建立时出错

我正在跟踪异常跟踪:
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
    java.net.socketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:293)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:190)

在这方面阅读了一些论坛,但没有弄清楚这个例外的根本原因.这是由于以下原因之一吗?

>内存不足.
>由于对服务器的请求数量增加导致RMI调用失败,导致其中一个请求等待并导致此请求处理超时.
>不兼容的jre版本或与JRE版本相关的任何内容.
>任何与网络相关的问题.
>防火墙相关.

解决方法

  1. Insufficient memory.

不是在客户端.可能在服务器上,如果它导致例如分配线程失败.

  1. RMI calls getting Failed due to increased number of requests to the server causing one of them to wait and causing time outs for this request to process.

否.错误发生在连接建立阶段,早在调用服务器端方法实现之前.

  1. incompatible jre version or anything related to JRE version.

没有.

  1. Any networking related issue.

是.

  1. Firewall related.

不会.这会导致连接超时,或者在某些过时的情况下会导致连接拒绝,而不是读取超时.

原文地址:https://www.jb51.cc/java/129048.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐