我正在跟踪异常跟踪:
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版本相关的任何内容.
>任何与网络相关的问题.
>防火墙相关.
解决方法
- Insufficient memory.
不是在客户端.可能在服务器上,如果它导致例如分配线程失败.
- 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.
- incompatible jre version or anything related to JRE version.
没有.
- Any networking related issue.
是.
- Firewall related.
不会.这会导致连接超时,或者在某些过时的情况下会导致连接拒绝,而不是读取超时.