Re: [Simpleweb-Support] TCP connections stuck in CLOSE_WAIT
Brought to you by:
niallg
From: saviourcat <sav...@gm...> - 2010-03-11 15:58:59
|
Great! Thanks Niall for your persistence support all the time. I'll wait for the release -- Sent using Telkomsel network Twitter: @md_ray Email/IM: sav...@gm... and md...@ya... -----Original Message----- From: <nia...@rb...> Date: Thu, 11 Mar 2010 14:56:17 To: <sim...@li...> Subject: Re: [Simpleweb-Support] TCP connections stuck in CLOSE_WAIT I will make sure a try/catch wraps the shutdownOutput method and build a new release. Thanks, Niall -----Original Message----- From: Thierry Boileau [mailto:thb...@gm...] Sent: 11 March 2010 14:37 To: Simple support and user issues Subject: Re: [Simpleweb-Support] TCP connections stuck in CLOSE_WAIT Hello, we met the same kind of problems when calling Socket#shutdownOutput, specifically on MacOS. Perhaps because the socket was already closed. However, as this method throws exceptions, and since the socket is aimed to be closed, it should be better to add such try/catch clause. Best regards, Thierry Boileau > What issue were you seeing before you did this? Also what exceptions did you see before this? If there is a problem here ill upload a new release with this as a fix. > Thanks for the feedback. > Niall > > -----Original Message----- > From: Christophe Roudet [mailto:cr...@ac...] > Sent: 11 March 2010 14:04 > To: sim...@li... > Subject: Re: [Simpleweb-Support] TCP connections stuck in CLOSE_WAIT > > I had the same thing, I have patched > org.simpleframework.transport.SocketWriter.close(). > > I have simply added a try/catch around channel.socket().shutdownOutput() and the file descriptor leak disappered: > > public synchronized void close() throws IOException { > if(!closed) { closed = true; > builder.close(); > try { > channel.socket().shutdownOutput(); // send FIN ACK > } catch (IOException ioex) { > } > channel.close(); > } > } > > Christophe > > On 3/10/2010 8:26 PM, saviourcat wrote: >> I experience exactly the same thing. After running out of file descriptor, the http listener won't accept any more connection. >> >> Actually I already posted this problem I encountered sometime ago, and Niall told me to check whether there is still non-closed connection. I don't know whether I'm doing something wrong or not, but then I just create a simple echo web application and still behaves like this. OS issue? Or the http client? >> >> -- >> Sent using Telkomsel network >> Twitter: @md_ray >> Email/IM: sav...@gm... and md...@ya... >> >> -----Original Message----- >> From: Ian Clarke<ian...@gm...> >> Date: Wed, 10 Mar 2010 16:43:37 >> To:<sim...@li...> >> Subject: [Simpleweb-Support] TCP connections stuck in CLOSE_WAIT >> >> I'm using SimpleWeb to power a JSON REST API, which gets hit with >> around 4 requests per second (mainly POST requests). >> >> Occasionally I'm finding that my Linux server runs out of file >> descriptors, and an lsof reveals that its because a bunch of >> connections are stuck in CLOSE_WAIT. >> >> Can anyone suggest what might be causing this? >> >> Ian. >> >> > > > -- > Christophe Roudet > > > ---------------------------------------------------------------------- > -------- Download Intel® Parallel Studio Eval Try the new > software tools for yourself. Speed compiling, find bugs proactively, > and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev >_______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > ********************************************************************** > ************* The Royal Bank of Scotland plc. Registered in Scotland > No 90312. > Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. > Authorised and regulated by the Financial Services Authority. The > Royal Bank of Scotland N.V. is authorised and regulated by the De > Nederlandsche Bank and has its seat at Amsterdam, the Netherlands, and > is registered in the Commercial Register under number 33002587. > Registered Office: Gustav Mahlerlaan 10, Amsterdam, The Netherlands. > The Royal Bank of Scotland N.V. and The Royal Bank of Scotland plc are > authorised to act as agent for each other in certain jurisdictions. > > This e-mail message is confidential and for use by the addressee only. > If the message is received by anyone other than the addressee, please > return the message to the sender by replying to it and then delete the > message from your computer. Internet e-mails are not necessarily > secure. The Royal Bank of Scotland plc and The Royal Bank of Scotland > N.V. including its affiliates ("RBS group") does not accept > responsibility for changes made to this message after it was sent. > > Whilst all reasonable care has been taken to avoid the transmission of > viruses, it is the responsibility of the recipient to ensure that the > onward transmission, opening or use of this message and any > attachments will not adversely affect its systems or data. No > responsibility is accepted by the RBS group in this regard and the > recipient should carry out such virus and other checks as it considers appropriate. > > Visit our website at www.rbs.com > > ********************************************************************** > ************* > > > ---------------------------------------------------------------------- > -------- Download Intel® Parallel Studio Eval Try the new > software tools for yourself. Speed compiling, find bugs proactively, > and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev >_______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |