FW: Question about RMI, TCP/IP KeepAlive, and socket reset except ions...
"Wong, Seck {PBSG}" <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <5A44E1DD042A894DBA16C80B4DDBBC0D024A26DC@pepwmu00153.corp.pep.pvt> |
We had a (short interval polls on slave server)loaded server at our installation. The symptom is sporadic broken pipes and connection reset and has since been resolved after applying said parm. You can give it a try in your installation. See, in addition: http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html Seck Wong 972 963 1711 -----Original Message----- From: Robert DiFalco [mailto:[email protected]] Sent: Wednesday, October 05, 2005 10:35 AM To: [email protected] Subject: Re: Question about RMI, TCP/IP KeepAlive, and socket reset except ions... Why do you think this will help with connection reset or broken pipe issues due to server or client load? R. -----Original Message----- From: Wong, Seck {PBSG} [mailto:[email protected]] Sent: Monday, October 03, 2005 7:01 AM To: [email protected] Subject: FW: Question about RMI, TCP/IP KeepAlive, and socket reset except ions... Try this run time option: -Dsun.net.inetaddr.ttl=10 http://forum.java.sun.com/thread.jspa?forumID=4&threadID=140761 Seck Wong 972 963 1711 -----Original Message----- From: Robert DiFalco [mailto:[email protected]] Sent: Saturday, October 01, 2005 12:28 PM To: [email protected] Subject: Question about RMI, TCP/IP KeepAlive, and socket reset exceptions... So, I am not a network communications pro -- too much to keep up on, but we intermittently receive Marshalling or Unmarshalling exceptions usually due to socket resets or broken pipes when we have say a couple of hundreds clients communicating with our server. Note that we use RMI SSL Socket Factories. I understand that connections are unreliable and that I cannot completely fix this. However, I am wondering what steps I can take (tuning or otherwise) to help make this a more rare occurrence. One thing I noticed is that RMI will use TCP KeepAlive if it is available. I also know that problems with KeepAlive messages "could" result in unnecessary socket resets. What would happen if in my socket factory a made #getKeepAlive always return false and #setKeepAlive always call super.setKeepAlive( false ). Would this help mitigate seemingly unnecessary reset connection exceptions? Anything else I should try? Reducing the value of RMI connection expiration to say 10 seconds so the server is not managing as many connections? (and hopefully will not choose to reset existing connections?) Other things I am missing? Thanks! ======================================================================== === To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html ======================================================================== === To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html ======================================================================== === To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html