Re: CLOSE_WAIT state on sockets during high volume




jois.de.vi...@xxxxxxxxx wrote:
> Hi,
>
> I have a client/server application running and communicating using IP
> sockets. During high volume traffic many of the client sockets are
> stuck in a CLOSE_WAIT state (as determined by lsof). Eventually I
> reach my max open file limit and this causes all sorts of other
> problems forcing me to restart the application. Googling this problem
> revealed that it could be caused if the client is not closing the
> connection after it receives a FIN from the server. However, this does
> not make sense to me since every connection takes the same path through
> the code and the problem only surfaces when there is a high volume of
> connections. My server waits for connections, spawns a thread for each
> request and sends the socket file descriptor as a parameter to the
> thread. This problem does not occur during times of low volume.
>
> Thanks

.



Relevant Pages

  • Re: Banana Republic (was Re: OpenVMS Book Wins award)
    ... client ... No bollocks HTTP, SOAP, XML, Java, Garbage ... receive messages from any number of server processes who in turn could be ... Unlike TCP/IP and/or UDP Sockets with Java that have been around since ...
    (comp.os.vms)
  • Re: .Net Scalability problem
    ... LoadRunner will peak out a server with a few virtual users. ... To get an idea of load, ... Fire off the test client and watch the number of ... > So I think that the MTC generate concurrent connection and per ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)