Doing some performance testing I
keep running out of connections while repeatedly invoking the pipeline
API via Java (providing a http URL to the XPL file).
How are HTTP connections opened by the URLGenerator closed? The only place I can see HTTPURLConnection.disconnect() being called is from XFormsSubmissionUtils, which obviously isn't related. Adrian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
HTTPURLConnection.disconnect() isn't directly called, rather the
InputStream is obtained and closed in
URLGenerator.URLResourceHandler.destroy(). This is being called ok, and
adding a check for HTTPURLConnection & calling disconnect() appears
to make no difference.
*scratches head* I'll have to look elsewhere... Adrian Baker wrote: Doing some performance testing I keep running out of connections while repeatedly invoking the pipeline API via Java (providing a http URL to the XPL file). -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
This might just be an artifact of
the large number of requests I'm making, related to my Apache
configuration or an underlying OS limitation (WindowsXP). In about 10
seconds I can make about 2,500 requests using several threads before
connections start being refused.
Adrian Baker wrote: HTTPURLConnection.disconnect() isn't directly called, rather the InputStream is obtained and closed in URLGenerator.URLResourceHandler.destroy(). This is being called ok, and adding a check for HTTPURLConnection & calling disconnect() appears to make no difference. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Adrian,
I think that you are hitting the "famous" Windows port recycling issue. I can't find a reference on this at the moment, but I am hoping that Alex should know more about it. -Erik Adrian Baker wrote: > This might just be an artifact of the large number of requests I'm > making, related to my Apache configuration or an underlying OS > limitation (WindowsXP). In about 10 seconds I can make about 2,500 > requests using several threads before connections start being refused. > > Adrian Baker wrote: >> HTTPURLConnection.disconnect() isn't directly called, rather the >> InputStream is obtained and closed in >> URLGenerator.URLResourceHandler.destroy(). This is being called ok, >> and adding a check for HTTPURLConnection & calling disconnect() >> appears to make no difference. >> >> *scratches head* I'll have to look elsewhere... >> >> Adrian Baker wrote: >>> Doing some performance testing I keep running out of connections >>> while repeatedly invoking the pipeline API via Java (providing a http >>> URL to the XPL file). >>> >>> How are HTTP connections opened by the URLGenerator closed? The only >>> place I can see HTTPURLConnection.disconnect() being called is from >>> XFormsSubmissionUtils, which obviously isn't related. >>> >>> Adrian Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
From the XForms Everywhere Blog: http://support.microsoft.com/kb/Q196271 -Hank ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Friday, January 12, 2007 6:18 AM Subject: Re: [ops-users] Re: Is URLGenerator closing http connections? > Adrian, > > I think that you are hitting the "famous" Windows port recycling issue. > I can't find a reference on this at the moment, but I am hoping that > Alex should know more about it. > > -Erik > > Adrian Baker wrote: >> This might just be an artifact of the large number of requests I'm >> making, related to my Apache configuration or an underlying OS >> limitation (WindowsXP). In about 10 seconds I can make about 2,500 >> requests using several threads before connections start being refused. >> >> Adrian Baker wrote: >>> HTTPURLConnection.disconnect() isn't directly called, rather the >>> InputStream is obtained and closed in >>> URLGenerator.URLResourceHandler.destroy(). This is being called ok, >>> and adding a check for HTTPURLConnection & calling disconnect() >>> appears to make no difference. >>> >>> *scratches head* I'll have to look elsewhere... >>> >>> Adrian Baker wrote: >>>> Doing some performance testing I keep running out of connections >>>> while repeatedly invoking the pipeline API via Java (providing a http >>>> URL to the XPL file). >>>> >>>> How are HTTP connections opened by the URLGenerator closed? The only >>>> place I can see HTTPURLConnection.disconnect() being called is from >>>> XFormsSubmissionUtils, which obviously isn't related. >>>> >>>> Adrian > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Thank you Hank. And for reference, here is the relevant blog entry:
http://www.orbeon.com/blog/2006/05/05/tcpip/ In fact, I ran into this issue again a few weeks ago as my code was doing quite a few connections per second to eXist. Alex On 1/12/07, Hank Ratzesberger <[hidden email]> wrote: > > From the XForms Everywhere Blog: > > http://support.microsoft.com/kb/Q196271 > > -Hank > > > ----- Original Message ----- > From: "Erik Bruchez" <[hidden email]> > To: <[hidden email]> > Sent: Friday, January 12, 2007 6:18 AM > Subject: Re: [ops-users] Re: Is URLGenerator closing http connections? > > > > Adrian, > > > > I think that you are hitting the "famous" Windows port recycling issue. > > I can't find a reference on this at the moment, but I am hoping that > > Alex should know more about it. > > > > -Erik > > > > Adrian Baker wrote: > >> This might just be an artifact of the large number of requests I'm > >> making, related to my Apache configuration or an underlying OS > >> limitation (WindowsXP). In about 10 seconds I can make about 2,500 > >> requests using several threads before connections start being refused. > >> > >> Adrian Baker wrote: > >>> HTTPURLConnection.disconnect() isn't directly called, rather the > >>> InputStream is obtained and closed in > >>> URLGenerator.URLResourceHandler.destroy(). This is being called ok, > >>> and adding a check for HTTPURLConnection & calling disconnect() > >>> appears to make no difference. > >>> > >>> *scratches head* I'll have to look elsewhere... > >>> > >>> Adrian Baker wrote: > >>>> Doing some performance testing I keep running out of connections > >>>> while repeatedly invoking the pipeline API via Java (providing a http > >>>> URL to the XPL file). > >>>> > >>>> How are HTTP connections opened by the URLGenerator closed? The only > >>>> place I can see HTTPURLConnection.disconnect() being called is from > >>>> XFormsSubmissionUtils, which obviously isn't related. > >>>> > >>>> Adrian > > > > -- > > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > > http://www.orbeon.com/ > > > > > > > -------------------------------------------------------------------------------- > > > > > > -- > > You receive this message as a subscriber of the [hidden email] mailing list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |