![]() The different operating system has different default time to keep sockets in TIME_WAIT state, in Linux it's 60 seconds, while in Windows is 4 minutes. ![]() One of the reasons to keep the closed socket in the TIME_WAIT state is to ensure that delayed packets reached the corresponding socket. Since Socket connection internally uses TCP protocol, which says that a socket can remain in TIME_WAIT state for some time, even after they are closed. One of the common reasons for : Too many files open in Tomcat, Weblogic, or an y Java application server is, too many clients connecting and disconnecting frequently a very short span of time. The different operating system has different limits on the number of file handles they can manage. Not many Java programmers know that socket connections are treated like files and they use file descriptors, which is a limited resource.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |