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.bysocket.com 「公众号:泥瓦匠...
摘要: 原创出处 https://www.bysocket.com 「公众号:泥瓦匠...
今天犯了个错:“接口变动,伤筋动骨,除非你确定只有你一个...
Writer :BYSocket(泥沙砖瓦浆木匠)微 博:BYSocket豆 瓣:...
本文目录 线程与多线程 线程的运行与创建 线程的状态 1 线程...