Cole_McDonald
6 years agoProfessor
TCP Resource Exhaustion fix (?)
We're building out our custom monitoring packages for the ERP systems run by our customers. This is resulting in TCP ephemeral port exhaustion as the connections close they enter a time_wait state. I assume this is done to save reconnect time as the connection will most likely re-establish itself as soon as the next instance fires off. The problem is, they're not getting out of the way for any new requests and my monitoring is failing as a result. Could you shift those to close_wait somehow (not that familiar with JAVA IO, perhaps SOL_SOCKET options to explicitly define timeout) instead so they have a possibility of releasing the ports for use by other requests?
edit: we're on the windows platform.