simpleweb-support Mailing List for Simple (Page 14)
Brought to you by:
niallg
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
(14) |
May
(22) |
Jun
(15) |
Jul
(9) |
Aug
(2) |
Sep
(7) |
Oct
(4) |
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(7) |
Feb
(16) |
Mar
(17) |
Apr
|
May
(12) |
Jun
(4) |
Jul
(22) |
Aug
(50) |
Sep
(8) |
Oct
(23) |
Nov
(9) |
Dec
(50) |
2006 |
Jan
(6) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
(13) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(7) |
2007 |
Jan
(11) |
Feb
(3) |
Mar
(17) |
Apr
(21) |
May
(9) |
Jun
(4) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(14) |
Dec
(3) |
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
(15) |
Oct
(9) |
Nov
(6) |
Dec
(2) |
2009 |
Jan
(29) |
Feb
(2) |
Mar
(8) |
Apr
(14) |
May
(4) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(7) |
2010 |
Jan
|
Feb
(2) |
Mar
(61) |
Apr
(9) |
May
(10) |
Jun
(9) |
Jul
(10) |
Aug
(7) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(9) |
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(5) |
2013 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(12) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2014 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
(20) |
Jul
(12) |
Aug
(4) |
Sep
(3) |
Oct
(5) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Niall G. <gal...@ya...> - 2009-04-10 17:56:58
|
Hi, I no longer support the demo because in 4.0 I changed the framework quite a bit. The reason it was changed was to support NIO. The result is a vastly more scalable server that can out perform just about every other server of this type. Another reason I stopped supporting it was because much of my time was spent on developing an MVC framework, when the focus should really be the core server itself. I would recommend using Simple as the server, and using either Velocity or Freemarker on its own. There is plenty of documentation on Velocity and Freemarker on their own sites. As an alternative, you can use Restlet[1] or Jersey[2] (release 1.0.3 will contain a Simple container shortly, 1.0.3-SNAPSHOT currently supports Simple). They are very lightweight, in particular Restlet is very light an contains modules you can pick and choose. It has a very low footprint and plenty of documentation. [1] http://www.restlet.org [2] http://jersey.dev.java.net Regards, Niall Niall --- On Fri, 4/10/09, Laurent Lauden <lau...@ij...> wrote: > From: Laurent Lauden <lau...@ij...> > Subject: [Simpleweb-Support] demo and velocity > To: sim...@li... > Date: Friday, April 10, 2009, 8:36 AM > I was searching for a lightweight > java web server and the only one i > found was simpleweb. > In fact Jetty and Tomcat are really too heavy for an > "embedded" project. > I try the demo and without any documentation i had a hard > time but now I > think it's ok. > I was thinking of writing some "Quick start doc" but this > project does > not exists in the 4 version of simpleweb. > > So my question is : Do you plan to continue this "demo" > project ? > Which in fact looks like your mamba project (stopped in > 2003) > > Thanks > > Laurent Lauden > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer > Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Laurent L. <lau...@ij...> - 2009-04-10 15:59:38
|
I was searching for a lightweight java web server and the only one i found was simpleweb. In fact Jetty and Tomcat are really too heavy for an "embedded" project. I try the demo and without any documentation i had a hard time but now I think it's ok. I was thinking of writing some "Quick start doc" but this project does not exists in the 4 version of simpleweb. So my question is : Do you plan to continue this "demo" project ? Which in fact looks like your mamba project (stopped in 2003) Thanks Laurent Lauden |
From: <Nia...@ub...> - 2009-04-08 08:13:38
|
Hi, Thanks for the feedback, in particular the stack trace is interesting "java.net.SocketException: Transport endpoint is not connected". This looks like the client has shutdown the connection before the server has. I think your suggestion of a try catch makes sense here, however I do not think the socket will be left in an open state resulting in a leak. For the transport cursor error you report, this is fine. This happens with tools like apache bench, or other clients that choose to close the input before they fully read the response. It will have no effect on the processing of the request. Thanks, Niall -----Original Message----- From: Christophe Roudet [mailto:cr...@ac...] Sent: 07 April 2009 16:52 To: 'Simple support and user issues' Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles I think I have found something. First my environment: - rehel5 - java version "1.6.0_13" I have just added exception.printStackTrace() where exceptions were ignored or silently processed. The I got this exception: java.net.SocketException: Transport endpoint is not connected at sun.nio.ch.SocketChannelImpl.shutdown(Native Method) at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:651) at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368) at org.simpleframework.transport.SocketWriter.close(SocketWriter.java:185) at org.simpleframework.transport.SocketController.close(SocketController.java:1 01) at org.simpleframework.transport.SocketTransport.close(SocketTransport.java:241 ) at org.simpleframework.http.core.TransportCursor.close(TransportCursor.java:238 ) So I simply surrounded this call with a try catch: public synchronized void close() throws IOException { if(!closed) { closed = true; builder.close(); try { channel.socket().shutdownOutput(); // send FIN ACK } catch (IOException ioex) { } channel.close(); } } I still got an Exception but it looks it does nothing wrong: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236) at org.simpleframework.transport.SocketTransport.read(SocketTransport.java:184) at org.simpleframework.http.core.TransportCursor.peek(TransportCursor.java:195) at org.simpleframework.http.core.TransportCursor.ready(TransportCursor.java:177 ) at org.simpleframework.http.core.TransportCursor.isReady(TransportCursor.java:1 14) I think there is a typo in BufferAllocator.getInputStream() public InputStream getInputStream() throws IOException { if (buffer == null) { //if(buffer != null) { <--- HERE allocate(); } return buffer.getInputStream(); } > -----Original Message----- > From: Niall Gallagher [mailto:gal...@ya...] > Sent: Friday, April 03, 2009 5:01 PM > To: Simple support and user issues > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > > Hi, > > If you do not pipe lsof through wc -l you will see the file handles > point to libraries loaded by the JVM. These are not open sockets. I > ran your test on Mac OS X and it stops at 58. These are the various > shared libraries. It will not grow or leak. Thanks for the feedback > though, its appreciated. > > Thanks, > Niall > > --- On Fri, 4/3/09, Christophe Roudet <cr...@ac...> wrote: > > > From: Christophe Roudet <cr...@ac...> > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file > > handles > > To: "'Simple support and user issues'" <simpleweb- > su...@li...> > > Date: Friday, April 3, 2009, 12:44 PM I don't see any problem when > > watching netstat but lsof reports ever growing number of file > > handles. > > > > I have attached a small example > > java -cp bin:lib/simple-4.1.9.jar > > org.simpleframework.ServerTest > > will launch the server on port 900 > > > > java -cp bin org.simpleframework.ClientTest <host> will run a client > > > > initially for the server, I have: > > >lsof -p 3040 | wc -l > > 42 > > > > Then each time I run the client test > > >lsof -p 3040 | wc -l > > 49 > > next > > >lsof -p 3040 | wc -l > > 55 > > > > And so on. > > > > It doesn't look like a connection problem. > > > > > > > -----Original Message----- > > > From: Niall Gallagher [mailto:gal...@ya...] > > > Sent: Friday, April 03, 2009 2:16 PM > > > To: Simple support and user issues > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking file handles > > > > > > > > > Hi, > > > > > > I really don't think there is a file leak here. I have > > just performed > > > 10,000,000 requests with apache bench using HTTP/1.0 > > (non persistent) > > > connections. and 100,000,000 persistent connections > > with apache bench. > > > Everything was fine. On both Linux and Windows. > > > > > > I think you are either not closing the connection or > > not expecting > > > "Transfer-Encoding: chunked" responses which will be > > maintained. Such > > > connections should be closed from the client side. > > Also, Simple will close > > > all dormant connections after two minutes. Regardless, > > so all resources > > > will be cleaned up eventually. > > > > > > If you can prove me wrong, by means of a unit test. I > > would be very > > > grateful. However, I really doubt there is a > > connection leak. In > > > particular the changes between 4.1.9 and 4.1.10 do not > > really deal with > > > connections. > > > > > > Niall > > > > > > --- On Fri, 4/3/09, Nia...@ub... > > <Nia...@ub...> > > > wrote: > > > > > > > From: Nia...@ub... > > <Nia...@ub...> > > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking file handles > > > > To: sim...@li... > > > > Date: Friday, April 3, 2009, 10:14 AM Hi, > > > > > > > > Can you try "netstat -P tcp" to get the actual > > TCP > > > > settings, perhaps > > > > grep for the server port to match the > > connections. I have > > > > just run a > > > > test with a couple of thousand connections and it > > worked > > > > fine. However, > > > > I am not doubting there is a problem. Also I have > > just > > > > introduced a new > > > > test to 4.1.10 that uses the java.net.URL (which > > delegates > > > > to > > > > java.net.HttpUrlConnection) and it runs through a > > couple of > > > > hundred > > > > connectiosn per sec without issue. > > > > > > > > I'll run some more substantial tests shortly. I > > would > > > > really need to see > > > > the TCP state of the leaking connections to know > > what is > > > > happening. > > > > > > > > Thanks, > > > > Niall > > > > > > > > > > > > -----Original Message----- > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > > > > Sent: 03 April 2009 18:03 > > > > To: 'Simple support and user issues' > > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking > > > > file handles > > > > > > > > The connections are closed. > > > > I am using HttpUrlConnection to connect to the > > server. > > > > In the lsof command output I see a lot of: > > > > > > > > java 12776 root 53u > > > > sock 0,5 > > > > 214006695 can't > > > > identify > > > > protocol > > > > java 12776 root 54u > > > > sock 0,5 > > > > 214007226 can't > > > > identify > > > > protocol > > > > java 12776 root 55u > > > > sock 0,5 > > > > 214006688 can't > > > > identify > > > > protocol > > > > java 12776 root 56u > > > > sock 0,5 > > > > 214005947 can't > > > > identify > > > > protocol > > > > java 12776 root 57u > > > > sock 0,5 > > > > 214005790 can't > > > > identify > > > > protocol > > > > java 12776 root 58u > > > > sock 0,5 > > > > 214010186 can't > > > > identify > > > > protocol > > > > java 12776 root 59u > > > > sock 0,5 > > > > 214016384 can't > > > > identify > > > > protocol > > > > java 12776 root 60u > > > > sock 0,5 > > > > 214007875 can't > > > > identify > > > > protocol > > > > java 12776 root 61u > > > > sock 0,5 > > > > 214006161 can't > > > > identify > > > > protocol > > > > java 12776 root 62u > > > > sock 0,5 > > > > 214016081 can't > > > > identify > > > > protocol > > > > java 12776 root 63u > > > > sock 0,5 > > > > 214007880 can't > > > > identify > > > > protocol > > > > java 12776 root 64u > > > > sock 0,5 > > > > 214015056 can't > > > > identify > > > > protocol > > > > java 12776 root 65u > > > > sock 0,5 > > > > 214007332 can't > > > > identify > > > > protocol > > > > > > > > > -----Original Message----- > > > > > From: Nia...@ub... > > > > [mailto:Nia...@ub...] > > > > > Sent: Friday, April 03, 2009 12:50 PM > > > > > To: sim...@li... > > > > > Subject: Re: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file handles > > > > > > > > > > Hi, > > > > > > > > > > What is connecting to the server, are you > > using a load > > > > tester such as > > > > > ApacheBench. Also, are you closing the > > connections? > > > > For example > > > > > > > > > > Response.close(); > > > > > > > > > > Or > > > > > > > > > > OutputStream.close(); > > > > > > > > > > Within the resource or container. Just > > looking at the > > > > code for the > > > > > change and it does not seem likely that a > > file leak > > > > could occur, but > > > > > I'd like to know exactly what you see. > > > > > > > > > > If you could I would appreciate any > > information on the > > > > TCP state of > > > > > the connections. Are they CLOSE_WAIT, > > TIME_WAIT or > > > > something like > > > > FIN_WAIT1? > > > > > > > > > > Thanks, > > > > > Niall > > > > > > > > > > -----Original Message----- > > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > Sent: 03 April 2009 17:46 > > > > > To: 'Simple support and user issues' > > > > > Subject: Re: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file handles > > > > > > > > > > I have just seen my server crashed with 'too > > many open > > > > files' > > > > messages. > > > > > I monitored with lsof -p <pid> and I > > saw the > > > > number of file handles > > > > > growing. > > > > > > > > > > Chrisotphe > > > > > > > > > > > -----Original Message----- > > > > > > From: Nia...@ub... > > > > [mailto:Nia...@ub...] > > > > > > Sent: Friday, April 03, 2009 12:42 PM > > > > > > To: sim...@li... > > > > > > Subject: Re: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file > > > > > > handles > > > > > > > > > > > > Hi, > > > > > > > > > > > > How do you mean leaking file handles? > > In what > > > > scenario and under > > > > > > what conditions? Are you using netstat > > or > > > > something? > > > > > > > > > > > > Thanks, > > > > > > Niall > > > > > > > > > > > > -----Original Message----- > > > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > > Sent: 03 April 2009 17:13 > > > > > > To: sim...@li... > > > > > > Subject: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file handles > > > > > > > > > > > > Hi, > > > > > > > > > > > > It looks like simple-4.1.10.jar is > > leaking file > > > > handles, using > > > > > > simple-4.1.9.jar turns things back to > > normal. > > > > > > > > > > > > Christophe > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > > -- > > > > > > -- > > > > > > ------ > > > > > > > > _______________________________________________ > > > > > > Simpleweb-Support mailing list > > > > > > Sim...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-suppo > > > > > > rt Visit our website at http://www.ubs.com > > > > > > > > > > > > This message contains confidential > > information > > > > and is intended only > > > > > > for the individual named. If you are > > not > > > > the named addressee you > > > > > > should not disseminate, distribute or > > copy this > > > > e-mail. Please > > > > > > notify > > > > > > > > > > > the sender immediately by e-mail if you > > have > > > > received this e-mail by > > > > > > > > > > mistake and delete this e-mail from > > your system. > > > > > > > > > > > > E-mails are not encrypted and cannot > > be > > > > guaranteed to be secure or > > > > > > error-free as information could be > > intercepted, > > > > corrupted, lost, > > > > > > destroyed, arrive late or incomplete, > > or contain > > > > viruses. The > > > > > > sender therefore does not accept > > liability for > > > > any errors or > > > > > > omissions in the > > > > > > > > > > > contents of this message which arise as > > a result > > > > of e-mail > > > > > transmission. > > > > > > If verification is required please > > request a > > > > hard-copy version. > > > > > > This message is provided for > > informational > > > > purposes and should not > > > > > > be construed as a solicitation or offer > > to buy or > > > > sell any > > > > > > securities or related financial > > instruments. > > > > > > > > > > > > UBS Limited is a company registered in > > England > > > > & Wales under company > > > > > > > > > > number 2035362, whose registered office > > is at 1 > > > > Finsbury Avenue, > > > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > > > > > UBS AG (London Branch) is registered as > > a branch > > > > of a foreign > > > > > > company under number BR004507, whose > > registered > > > > office is at > > > > > > 1 Finsbury Avenue, London, EC2M 2PP, > > United > > > > Kingdom. > > > > > > > > > > > > UBS Clearing and Execution Services > > Limited is a > > > > company registered > > > > > > in > > > > > > > > > > > England & Wales under company > > number > > > > 03123037, whose registered > > > > > > office > > > > > > > > > > > is at 1 Finsbury Avenue, London, EC2M > > 2PP, United > > > > Kingdom. > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > > -- > > > > > > ---- > > > > > > ---- > > > > > > > > _______________________________________________ > > > > > > Simpleweb-Support mailing list > > > > > > Sim...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-suppo > > > > > > rt > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > -- > > > > > -- > > > > > ------ > > > > > > > _______________________________________________ > > > > > Simpleweb-Support mailing list > > > > > Sim...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > Visit our website at http://www.ubs.com > > > > > > > > > > This message contains confidential > > information and is > > > > intended only > > > > > for the individual named. If you are not > > the > > > > named addressee you > > > > > should not disseminate, distribute or copy > > this > > > > e-mail. Please notify > > > > > > > > > the sender immediately by e-mail if you have > > received > > > > this e-mail by > > > > > mistake and delete this e-mail from your > > system. > > > > > > > > > > E-mails are not encrypted and cannot be > > guaranteed to > > > > be secure or > > > > > error-free as information could be > > intercepted, > > > > corrupted, lost, > > > > > destroyed, arrive late or incomplete, or > > contain > > > > viruses. The sender > > > > > therefore does not accept liability for any > > errors or > > > > omissions in the > > > > > > > > > contents of this message which arise as a > > result of > > > > e-mail > > > > transmission. > > > > > If verification is required please request a > > hard-copy > > > > version. This > > > > > message is provided for informational > > purposes and > > > > should not be > > > > > construed as a solicitation or offer to buy > > or sell > > > > any securities or > > > > > related financial instruments. > > > > > > > > > > UBS Limited is a company registered in > > England & > > > > Wales under company > > > > > number 2035362, whose registered office is > > at 1 > > > > Finsbury Avenue, > > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > > > UBS AG (London Branch) is registered as a > > branch of a > > > > foreign company > > > > > under number BR004507, whose registered > > office is at > > > > > 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > > > > > > > UBS Clearing and Execution Services Limited > > is a > > > > company registered in > > > > > > > > > England & Wales under company number > > 03123037, > > > > whose registered office > > > > > > > > > is at 1 Finsbury Avenue, London, EC2M 2PP, > > United > > > > Kingdom. > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > -- > > > > > ---- > > > > > ---- > > > > > > > _______________________________________________ > > > > > Simpleweb-Support mailing list > > > > > Sim...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > -------------------------------------------------------------------- > > ---- > > > > ------ > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > Visit our website at http://www.ubs.com > > > > > > > > This message contains confidential information > > and is > > > > intended only > > > > for the individual named. If you are not the > > named > > > > addressee you > > > > should not disseminate, distribute or copy this e-mail. Please > > > > notify the sender immediately by e-mail if you > > have > > > > received this > > > > e-mail by mistake and delete this e-mail from > > your system. > > > > > > > > E-mails are not encrypted and cannot be > > guaranteed to be > > > > secure or > > > > error-free as information could be intercepted, > > corrupted, > > > > lost, > > > > destroyed, arrive late or incomplete, or contain viruses. The > > > > sender therefore does not accept liability for any > > errors or > > > > omissions in the > > > > contents of this message which arise as a result > > of e-mail > > > > transmission. > > > > If verification is required please request a > > hard-copy > > > > version. This > > > > message is provided for informational purposes > > and should > > > > not be > > > > construed as a solicitation or offer to buy or > > sell any > > > > securities > > > > or related financial instruments. > > > > > > > > UBS Limited is a company registered in England > > & Wales > > > > under company > > > > number 2035362, whose registered office is at 1 > > Finsbury > > > > Avenue, > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > UBS AG (London Branch) is registered as a branch > > of a > > > > foreign company > > > > under number BR004507, whose registered office is > > at > > > > 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > > > > > UBS Clearing and Execution Services Limited is a > > company > > > > registered > > > > in England & Wales under company number > > 03123037, whose > > > > registered > > > > office is at 1 Finsbury Avenue, London, EC2M 2PP, > > United > > > > Kingdom. > > > > > > > > > > -------------------------------------------------------------------- > > ---- > > > ------ > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > ---- > -- > > > ---- > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > -----Inline Attachment Follows----- > > > > -------------------------------------------------------------------- > > ---- > ------ > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > ---------------------------------------------------------------------- > ---- > ---- > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases. |
From: Christophe R. <cr...@ac...> - 2009-04-07 15:52:20
|
I think I have found something. First my environment: - rehel5 - java version "1.6.0_13" I have just added exception.printStackTrace() where exceptions were ignored or silently processed. The I got this exception: java.net.SocketException: Transport endpoint is not connected at sun.nio.ch.SocketChannelImpl.shutdown(Native Method) at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:651) at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368) at org.simpleframework.transport.SocketWriter.close(SocketWriter.java:185) at org.simpleframework.transport.SocketController.close(SocketController.java:1 01) at org.simpleframework.transport.SocketTransport.close(SocketTransport.java:241 ) at org.simpleframework.http.core.TransportCursor.close(TransportCursor.java:238 ) So I simply surrounded this call with a try catch: public synchronized void close() throws IOException { if(!closed) { closed = true; builder.close(); try { channel.socket().shutdownOutput(); // send FIN ACK } catch (IOException ioex) { } channel.close(); } } I still got an Exception but it looks it does nothing wrong: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236) at org.simpleframework.transport.SocketTransport.read(SocketTransport.java:184) at org.simpleframework.http.core.TransportCursor.peek(TransportCursor.java:195) at org.simpleframework.http.core.TransportCursor.ready(TransportCursor.java:177 ) at org.simpleframework.http.core.TransportCursor.isReady(TransportCursor.java:1 14) I think there is a typo in BufferAllocator.getInputStream() public InputStream getInputStream() throws IOException { if (buffer == null) { //if(buffer != null) { <--- HERE allocate(); } return buffer.getInputStream(); } > -----Original Message----- > From: Niall Gallagher [mailto:gal...@ya...] > Sent: Friday, April 03, 2009 5:01 PM > To: Simple support and user issues > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > > Hi, > > If you do not pipe lsof through wc -l you will see the file handles point > to libraries loaded by the JVM. These are not open sockets. I ran your > test on Mac OS X and it stops at 58. These are the various shared > libraries. It will not grow or leak. Thanks for the feedback though, its > appreciated. > > Thanks, > Niall > > --- On Fri, 4/3/09, Christophe Roudet <cr...@ac...> wrote: > > > From: Christophe Roudet <cr...@ac...> > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > To: "'Simple support and user issues'" <simpleweb- > su...@li...> > > Date: Friday, April 3, 2009, 12:44 PM > > I don't see any problem when watching > > netstat but lsof reports ever growing > > number of file handles. > > > > I have attached a small example > > java -cp bin:lib/simple-4.1.9.jar > > org.simpleframework.ServerTest > > will launch the server on port 900 > > > > java -cp bin org.simpleframework.ClientTest <host> > > will run a client > > > > initially for the server, I have: > > >lsof -p 3040 | wc -l > > 42 > > > > Then each time I run the client test > > >lsof -p 3040 | wc -l > > 49 > > next > > >lsof -p 3040 | wc -l > > 55 > > > > And so on. > > > > It doesn't look like a connection problem. > > > > > > > -----Original Message----- > > > From: Niall Gallagher [mailto:gal...@ya...] > > > Sent: Friday, April 03, 2009 2:16 PM > > > To: Simple support and user issues > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking file handles > > > > > > > > > Hi, > > > > > > I really don't think there is a file leak here. I have > > just performed > > > 10,000,000 requests with apache bench using HTTP/1.0 > > (non persistent) > > > connections. and 100,000,000 persistent connections > > with apache bench. > > > Everything was fine. On both Linux and Windows. > > > > > > I think you are either not closing the connection or > > not expecting > > > "Transfer-Encoding: chunked" responses which will be > > maintained. Such > > > connections should be closed from the client side. > > Also, Simple will close > > > all dormant connections after two minutes. Regardless, > > so all resources > > > will be cleaned up eventually. > > > > > > If you can prove me wrong, by means of a unit test. I > > would be very > > > grateful. However, I really doubt there is a > > connection leak. In > > > particular the changes between 4.1.9 and 4.1.10 do not > > really deal with > > > connections. > > > > > > Niall > > > > > > --- On Fri, 4/3/09, Nia...@ub... > > <Nia...@ub...> > > > wrote: > > > > > > > From: Nia...@ub... > > <Nia...@ub...> > > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking file handles > > > > To: sim...@li... > > > > Date: Friday, April 3, 2009, 10:14 AM > > > > Hi, > > > > > > > > Can you try "netstat -P tcp" to get the actual > > TCP > > > > settings, perhaps > > > > grep for the server port to match the > > connections. I have > > > > just run a > > > > test with a couple of thousand connections and it > > worked > > > > fine. However, > > > > I am not doubting there is a problem. Also I have > > just > > > > introduced a new > > > > test to 4.1.10 that uses the java.net.URL (which > > delegates > > > > to > > > > java.net.HttpUrlConnection) and it runs through a > > couple of > > > > hundred > > > > connectiosn per sec without issue. > > > > > > > > I'll run some more substantial tests shortly. I > > would > > > > really need to see > > > > the TCP state of the leaking connections to know > > what is > > > > happening. > > > > > > > > Thanks, > > > > Niall > > > > > > > > > > > > -----Original Message----- > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > > > > Sent: 03 April 2009 18:03 > > > > To: 'Simple support and user issues' > > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking > > > > file handles > > > > > > > > The connections are closed. > > > > I am using HttpUrlConnection to connect to the > > server. > > > > In the lsof command output I see a lot of: > > > > > > > > java 12776 root 53u > > > > sock 0,5 > > > > 214006695 can't > > > > identify > > > > protocol > > > > java 12776 root 54u > > > > sock 0,5 > > > > 214007226 can't > > > > identify > > > > protocol > > > > java 12776 root 55u > > > > sock 0,5 > > > > 214006688 can't > > > > identify > > > > protocol > > > > java 12776 root 56u > > > > sock 0,5 > > > > 214005947 can't > > > > identify > > > > protocol > > > > java 12776 root 57u > > > > sock 0,5 > > > > 214005790 can't > > > > identify > > > > protocol > > > > java 12776 root 58u > > > > sock 0,5 > > > > 214010186 can't > > > > identify > > > > protocol > > > > java 12776 root 59u > > > > sock 0,5 > > > > 214016384 can't > > > > identify > > > > protocol > > > > java 12776 root 60u > > > > sock 0,5 > > > > 214007875 can't > > > > identify > > > > protocol > > > > java 12776 root 61u > > > > sock 0,5 > > > > 214006161 can't > > > > identify > > > > protocol > > > > java 12776 root 62u > > > > sock 0,5 > > > > 214016081 can't > > > > identify > > > > protocol > > > > java 12776 root 63u > > > > sock 0,5 > > > > 214007880 can't > > > > identify > > > > protocol > > > > java 12776 root 64u > > > > sock 0,5 > > > > 214015056 can't > > > > identify > > > > protocol > > > > java 12776 root 65u > > > > sock 0,5 > > > > 214007332 can't > > > > identify > > > > protocol > > > > > > > > > -----Original Message----- > > > > > From: Nia...@ub... > > > > [mailto:Nia...@ub...] > > > > > Sent: Friday, April 03, 2009 12:50 PM > > > > > To: sim...@li... > > > > > Subject: Re: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file handles > > > > > > > > > > Hi, > > > > > > > > > > What is connecting to the server, are you > > using a load > > > > tester such as > > > > > ApacheBench. Also, are you closing the > > connections? > > > > For example > > > > > > > > > > Response.close(); > > > > > > > > > > Or > > > > > > > > > > OutputStream.close(); > > > > > > > > > > Within the resource or container. Just > > looking at the > > > > code for the > > > > > change and it does not seem likely that a > > file leak > > > > could occur, but > > > > > I'd like to know exactly what you see. > > > > > > > > > > If you could I would appreciate any > > information on the > > > > TCP state of > > > > > the connections. Are they CLOSE_WAIT, > > TIME_WAIT or > > > > something like > > > > FIN_WAIT1? > > > > > > > > > > Thanks, > > > > > Niall > > > > > > > > > > -----Original Message----- > > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > Sent: 03 April 2009 17:46 > > > > > To: 'Simple support and user issues' > > > > > Subject: Re: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file handles > > > > > > > > > > I have just seen my server crashed with 'too > > many open > > > > files' > > > > messages. > > > > > I monitored with lsof -p <pid> and I > > saw the > > > > number of file handles > > > > > growing. > > > > > > > > > > Chrisotphe > > > > > > > > > > > -----Original Message----- > > > > > > From: Nia...@ub... > > > > [mailto:Nia...@ub...] > > > > > > Sent: Friday, April 03, 2009 12:42 PM > > > > > > To: sim...@li... > > > > > > Subject: Re: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file > > > > > > handles > > > > > > > > > > > > Hi, > > > > > > > > > > > > How do you mean leaking file handles? > > In what > > > > scenario and under > > > > > > what conditions? Are you using netstat > > or > > > > something? > > > > > > > > > > > > Thanks, > > > > > > Niall > > > > > > > > > > > > -----Original Message----- > > > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > > Sent: 03 April 2009 17:13 > > > > > > To: sim...@li... > > > > > > Subject: [Simpleweb-Support] > > simple-4.1.10 is > > > > leaking file handles > > > > > > > > > > > > Hi, > > > > > > > > > > > > It looks like simple-4.1.10.jar is > > leaking file > > > > handles, using > > > > > > simple-4.1.9.jar turns things back to > > normal. > > > > > > > > > > > > Christophe > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > > -- > > > > > > -- > > > > > > ------ > > > > > > > > _______________________________________________ > > > > > > Simpleweb-Support mailing list > > > > > > Sim...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > Visit our website at http://www.ubs.com > > > > > > > > > > > > This message contains confidential > > information > > > > and is intended only > > > > > > for the individual named. If you are > > not > > > > the named addressee you > > > > > > should not disseminate, distribute or > > copy this > > > > e-mail. Please > > > > > > notify > > > > > > > > > > > the sender immediately by e-mail if you > > have > > > > received this e-mail by > > > > > > > > > > mistake and delete this e-mail from > > your system. > > > > > > > > > > > > E-mails are not encrypted and cannot > > be > > > > guaranteed to be secure or > > > > > > error-free as information could be > > intercepted, > > > > corrupted, lost, > > > > > > destroyed, arrive late or incomplete, > > or contain > > > > viruses. The > > > > > > sender therefore does not accept > > liability for > > > > any errors or > > > > > > omissions in the > > > > > > > > > > > contents of this message which arise as > > a result > > > > of e-mail > > > > > transmission. > > > > > > If verification is required please > > request a > > > > hard-copy version. > > > > > > This message is provided for > > informational > > > > purposes and should not > > > > > > be construed as a solicitation or offer > > to buy or > > > > sell any > > > > > > securities or related financial > > instruments. > > > > > > > > > > > > UBS Limited is a company registered in > > England > > > > & Wales under company > > > > > > > > > > number 2035362, whose registered office > > is at 1 > > > > Finsbury Avenue, > > > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > > > > > UBS AG (London Branch) is registered as > > a branch > > > > of a foreign > > > > > > company under number BR004507, whose > > registered > > > > office is at > > > > > > 1 Finsbury Avenue, London, EC2M 2PP, > > United > > > > Kingdom. > > > > > > > > > > > > UBS Clearing and Execution Services > > Limited is a > > > > company registered > > > > > > in > > > > > > > > > > > England & Wales under company > > number > > > > 03123037, whose registered > > > > > > office > > > > > > > > > > > is at 1 Finsbury Avenue, London, EC2M > > 2PP, United > > > > Kingdom. > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > > -- > > > > > > ---- > > > > > > ---- > > > > > > > > _______________________________________________ > > > > > > Simpleweb-Support mailing list > > > > > > Sim...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > > -- > > > > > ------ > > > > > > > _______________________________________________ > > > > > Simpleweb-Support mailing list > > > > > Sim...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > Visit our website at http://www.ubs.com > > > > > > > > > > This message contains confidential > > information and is > > > > intended only > > > > > for the individual named. If you are not > > the > > > > named addressee you > > > > > should not disseminate, distribute or copy > > this > > > > e-mail. Please notify > > > > > > > > > the sender immediately by e-mail if you have > > received > > > > this e-mail by > > > > > mistake and delete this e-mail from your > > system. > > > > > > > > > > E-mails are not encrypted and cannot be > > guaranteed to > > > > be secure or > > > > > error-free as information could be > > intercepted, > > > > corrupted, lost, > > > > > destroyed, arrive late or incomplete, or > > contain > > > > viruses. The sender > > > > > therefore does not accept liability for any > > errors or > > > > omissions in the > > > > > > > > > contents of this message which arise as a > > result of > > > > e-mail > > > > transmission. > > > > > If verification is required please request a > > hard-copy > > > > version. This > > > > > message is provided for informational > > purposes and > > > > should not be > > > > > construed as a solicitation or offer to buy > > or sell > > > > any securities or > > > > > related financial instruments. > > > > > > > > > > UBS Limited is a company registered in > > England & > > > > Wales under company > > > > > number 2035362, whose registered office is > > at 1 > > > > Finsbury Avenue, > > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > > > UBS AG (London Branch) is registered as a > > branch of a > > > > foreign company > > > > > under number BR004507, whose registered > > office is at > > > > > 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > > > > > > > UBS Clearing and Execution Services Limited > > is a > > > > company registered in > > > > > > > > > England & Wales under company number > > 03123037, > > > > whose registered office > > > > > > > > > is at 1 Finsbury Avenue, London, EC2M 2PP, > > United > > > > Kingdom. > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > > ---- > > > > > ---- > > > > > > > _______________________________________________ > > > > > Simpleweb-Support mailing list > > > > > Sim...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > ------ > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > Visit our website at http://www.ubs.com > > > > > > > > This message contains confidential information > > and is > > > > intended only > > > > for the individual named. If you are not the > > named > > > > addressee you > > > > should not disseminate, distribute or copy this > > > > e-mail. Please > > > > notify the sender immediately by e-mail if you > > have > > > > received this > > > > e-mail by mistake and delete this e-mail from > > your system. > > > > > > > > E-mails are not encrypted and cannot be > > guaranteed to be > > > > secure or > > > > error-free as information could be intercepted, > > corrupted, > > > > lost, > > > > destroyed, arrive late or incomplete, or contain > > > > viruses. The sender > > > > therefore does not accept liability for any > > errors or > > > > omissions in the > > > > contents of this message which arise as a result > > of e-mail > > > > transmission. > > > > If verification is required please request a > > hard-copy > > > > version. This > > > > message is provided for informational purposes > > and should > > > > not be > > > > construed as a solicitation or offer to buy or > > sell any > > > > securities > > > > or related financial instruments. > > > > > > > > UBS Limited is a company registered in England > > & Wales > > > > under company > > > > number 2035362, whose registered office is at 1 > > Finsbury > > > > Avenue, > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > UBS AG (London Branch) is registered as a branch > > of a > > > > foreign company > > > > under number BR004507, whose registered office is > > at > > > > 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > > > > > UBS Clearing and Execution Services Limited is a > > company > > > > registered > > > > in England & Wales under company number > > 03123037, whose > > > > registered > > > > office is at 1 Finsbury Avenue, London, EC2M 2PP, > > United > > > > Kingdom. > > > > > > > > > > ------------------------------------------------------------------------ > > > ------ > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > -- > > > ---- > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > -----Inline Attachment Follows----- > > > > ------------------------------------------------------------------------ > ------ > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > -------------------------------------------------------------------------- > ---- > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2009-04-03 21:01:12
|
Hi, If you do not pipe lsof through wc -l you will see the file handles point to libraries loaded by the JVM. These are not open sockets. I ran your test on Mac OS X and it stops at 58. These are the various shared libraries. It will not grow or leak. Thanks for the feedback though, its appreciated. Thanks, Niall --- On Fri, 4/3/09, Christophe Roudet <cr...@ac...> wrote: > From: Christophe Roudet <cr...@ac...> > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > To: "'Simple support and user issues'" <sim...@li...> > Date: Friday, April 3, 2009, 12:44 PM > I don't see any problem when watching > netstat but lsof reports ever growing > number of file handles. > > I have attached a small example > java -cp bin:lib/simple-4.1.9.jar > org.simpleframework.ServerTest > will launch the server on port 900 > > java -cp bin org.simpleframework.ClientTest <host> > will run a client > > initially for the server, I have: > >lsof -p 3040 | wc -l > 42 > > Then each time I run the client test > >lsof -p 3040 | wc -l > 49 > next > >lsof -p 3040 | wc -l > 55 > > And so on. > > It doesn't look like a connection problem. > > > > -----Original Message----- > > From: Niall Gallagher [mailto:gal...@ya...] > > Sent: Friday, April 03, 2009 2:16 PM > > To: Simple support and user issues > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > leaking file handles > > > > > > Hi, > > > > I really don't think there is a file leak here. I have > just performed > > 10,000,000 requests with apache bench using HTTP/1.0 > (non persistent) > > connections. and 100,000,000 persistent connections > with apache bench. > > Everything was fine. On both Linux and Windows. > > > > I think you are either not closing the connection or > not expecting > > "Transfer-Encoding: chunked" responses which will be > maintained. Such > > connections should be closed from the client side. > Also, Simple will close > > all dormant connections after two minutes. Regardless, > so all resources > > will be cleaned up eventually. > > > > If you can prove me wrong, by means of a unit test. I > would be very > > grateful. However, I really doubt there is a > connection leak. In > > particular the changes between 4.1.9 and 4.1.10 do not > really deal with > > connections. > > > > Niall > > > > --- On Fri, 4/3/09, Nia...@ub... > <Nia...@ub...> > > wrote: > > > > > From: Nia...@ub... > <Nia...@ub...> > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > leaking file handles > > > To: sim...@li... > > > Date: Friday, April 3, 2009, 10:14 AM > > > Hi, > > > > > > Can you try "netstat -P tcp" to get the actual > TCP > > > settings, perhaps > > > grep for the server port to match the > connections. I have > > > just run a > > > test with a couple of thousand connections and it > worked > > > fine. However, > > > I am not doubting there is a problem. Also I have > just > > > introduced a new > > > test to 4.1.10 that uses the java.net.URL (which > delegates > > > to > > > java.net.HttpUrlConnection) and it runs through a > couple of > > > hundred > > > connectiosn per sec without issue. > > > > > > I'll run some more substantial tests shortly. I > would > > > really need to see > > > the TCP state of the leaking connections to know > what is > > > happening. > > > > > > Thanks, > > > Niall > > > > > > > > > -----Original Message----- > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > > Sent: 03 April 2009 18:03 > > > To: 'Simple support and user issues' > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > leaking > > > file handles > > > > > > The connections are closed. > > > I am using HttpUrlConnection to connect to the > server. > > > In the lsof command output I see a lot of: > > > > > > java 12776 root 53u > > > sock 0,5 > > > 214006695 can't > > > identify > > > protocol > > > java 12776 root 54u > > > sock 0,5 > > > 214007226 can't > > > identify > > > protocol > > > java 12776 root 55u > > > sock 0,5 > > > 214006688 can't > > > identify > > > protocol > > > java 12776 root 56u > > > sock 0,5 > > > 214005947 can't > > > identify > > > protocol > > > java 12776 root 57u > > > sock 0,5 > > > 214005790 can't > > > identify > > > protocol > > > java 12776 root 58u > > > sock 0,5 > > > 214010186 can't > > > identify > > > protocol > > > java 12776 root 59u > > > sock 0,5 > > > 214016384 can't > > > identify > > > protocol > > > java 12776 root 60u > > > sock 0,5 > > > 214007875 can't > > > identify > > > protocol > > > java 12776 root 61u > > > sock 0,5 > > > 214006161 can't > > > identify > > > protocol > > > java 12776 root 62u > > > sock 0,5 > > > 214016081 can't > > > identify > > > protocol > > > java 12776 root 63u > > > sock 0,5 > > > 214007880 can't > > > identify > > > protocol > > > java 12776 root 64u > > > sock 0,5 > > > 214015056 can't > > > identify > > > protocol > > > java 12776 root 65u > > > sock 0,5 > > > 214007332 can't > > > identify > > > protocol > > > > > > > -----Original Message----- > > > > From: Nia...@ub... > > > [mailto:Nia...@ub...] > > > > Sent: Friday, April 03, 2009 12:50 PM > > > > To: sim...@li... > > > > Subject: Re: [Simpleweb-Support] > simple-4.1.10 is > > > leaking file handles > > > > > > > > Hi, > > > > > > > > What is connecting to the server, are you > using a load > > > tester such as > > > > ApacheBench. Also, are you closing the > connections? > > > For example > > > > > > > > Response.close(); > > > > > > > > Or > > > > > > > > OutputStream.close(); > > > > > > > > Within the resource or container. Just > looking at the > > > code for the > > > > change and it does not seem likely that a > file leak > > > could occur, but > > > > I'd like to know exactly what you see. > > > > > > > > If you could I would appreciate any > information on the > > > TCP state of > > > > the connections. Are they CLOSE_WAIT, > TIME_WAIT or > > > something like > > > FIN_WAIT1? > > > > > > > > Thanks, > > > > Niall > > > > > > > > -----Original Message----- > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > Sent: 03 April 2009 17:46 > > > > To: 'Simple support and user issues' > > > > Subject: Re: [Simpleweb-Support] > simple-4.1.10 is > > > leaking file handles > > > > > > > > I have just seen my server crashed with 'too > many open > > > files' > > > messages. > > > > I monitored with lsof -p <pid> and I > saw the > > > number of file handles > > > > growing. > > > > > > > > Chrisotphe > > > > > > > > > -----Original Message----- > > > > > From: Nia...@ub... > > > [mailto:Nia...@ub...] > > > > > Sent: Friday, April 03, 2009 12:42 PM > > > > > To: sim...@li... > > > > > Subject: Re: [Simpleweb-Support] > simple-4.1.10 is > > > leaking file > > > > > handles > > > > > > > > > > Hi, > > > > > > > > > > How do you mean leaking file handles? > In what > > > scenario and under > > > > > what conditions? Are you using netstat > or > > > something? > > > > > > > > > > Thanks, > > > > > Niall > > > > > > > > > > -----Original Message----- > > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > > Sent: 03 April 2009 17:13 > > > > > To: sim...@li... > > > > > Subject: [Simpleweb-Support] > simple-4.1.10 is > > > leaking file handles > > > > > > > > > > Hi, > > > > > > > > > > It looks like simple-4.1.10.jar is > leaking file > > > handles, using > > > > > simple-4.1.9.jar turns things back to > normal. > > > > > > > > > > Christophe > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > -- > > > > > -- > > > > > ------ > > > > > > _______________________________________________ > > > > > Simpleweb-Support mailing list > > > > > Sim...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > Visit our website at http://www.ubs.com > > > > > > > > > > This message contains confidential > information > > > and is intended only > > > > > for the individual named. If you are > not > > > the named addressee you > > > > > should not disseminate, distribute or > copy this > > > e-mail. Please > > > > > notify > > > > > > > > > the sender immediately by e-mail if you > have > > > received this e-mail by > > > > > > > > mistake and delete this e-mail from > your system. > > > > > > > > > > E-mails are not encrypted and cannot > be > > > guaranteed to be secure or > > > > > error-free as information could be > intercepted, > > > corrupted, lost, > > > > > destroyed, arrive late or incomplete, > or contain > > > viruses. The > > > > > sender therefore does not accept > liability for > > > any errors or > > > > > omissions in the > > > > > > > > > contents of this message which arise as > a result > > > of e-mail > > > > transmission. > > > > > If verification is required please > request a > > > hard-copy version. > > > > > This message is provided for > informational > > > purposes and should not > > > > > be construed as a solicitation or offer > to buy or > > > sell any > > > > > securities or related financial > instruments. > > > > > > > > > > UBS Limited is a company registered in > England > > > & Wales under company > > > > > > > > number 2035362, whose registered office > is at 1 > > > Finsbury Avenue, > > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > > > UBS AG (London Branch) is registered as > a branch > > > of a foreign > > > > > company under number BR004507, whose > registered > > > office is at > > > > > 1 Finsbury Avenue, London, EC2M 2PP, > United > > > Kingdom. > > > > > > > > > > UBS Clearing and Execution Services > Limited is a > > > company registered > > > > > in > > > > > > > > > England & Wales under company > number > > > 03123037, whose registered > > > > > office > > > > > > > > > is at 1 Finsbury Avenue, London, EC2M > 2PP, United > > > Kingdom. > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > -- > > > > > ---- > > > > > ---- > > > > > > _______________________________________________ > > > > > Simpleweb-Support mailing list > > > > > Sim...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > -- > > > > ------ > > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > Visit our website at http://www.ubs.com > > > > > > > > This message contains confidential > information and is > > > intended only > > > > for the individual named. If you are not > the > > > named addressee you > > > > should not disseminate, distribute or copy > this > > > e-mail. Please notify > > > > > > > the sender immediately by e-mail if you have > received > > > this e-mail by > > > > mistake and delete this e-mail from your > system. > > > > > > > > E-mails are not encrypted and cannot be > guaranteed to > > > be secure or > > > > error-free as information could be > intercepted, > > > corrupted, lost, > > > > destroyed, arrive late or incomplete, or > contain > > > viruses. The sender > > > > therefore does not accept liability for any > errors or > > > omissions in the > > > > > > > contents of this message which arise as a > result of > > > e-mail > > > transmission. > > > > If verification is required please request a > hard-copy > > > version. This > > > > message is provided for informational > purposes and > > > should not be > > > > construed as a solicitation or offer to buy > or sell > > > any securities or > > > > related financial instruments. > > > > > > > > UBS Limited is a company registered in > England & > > > Wales under company > > > > number 2035362, whose registered office is > at 1 > > > Finsbury Avenue, > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > UBS AG (London Branch) is registered as a > branch of a > > > foreign company > > > > under number BR004507, whose registered > office is at > > > > 1 Finsbury Avenue, London, EC2M 2PP, United > Kingdom. > > > > > > > > UBS Clearing and Execution Services Limited > is a > > > company registered in > > > > > > > England & Wales under company number > 03123037, > > > whose registered office > > > > > > > is at 1 Finsbury Avenue, London, EC2M 2PP, > United > > > Kingdom. > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > ---- > > > > ---- > > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > ------------------------------------------------------------------------ > > > ------ > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > Visit our website at http://www.ubs.com > > > > > > This message contains confidential information > and is > > > intended only > > > for the individual named. If you are not the > named > > > addressee you > > > should not disseminate, distribute or copy this > > > e-mail. Please > > > notify the sender immediately by e-mail if you > have > > > received this > > > e-mail by mistake and delete this e-mail from > your system. > > > > > > E-mails are not encrypted and cannot be > guaranteed to be > > > secure or > > > error-free as information could be intercepted, > corrupted, > > > lost, > > > destroyed, arrive late or incomplete, or contain > > > viruses. The sender > > > therefore does not accept liability for any > errors or > > > omissions in the > > > contents of this message which arise as a result > of e-mail > > > transmission. > > > If verification is required please request a > hard-copy > > > version. This > > > message is provided for informational purposes > and should > > > not be > > > construed as a solicitation or offer to buy or > sell any > > > securities > > > or related financial instruments. > > > > > > UBS Limited is a company registered in England > & Wales > > > under company > > > number 2035362, whose registered office is at 1 > Finsbury > > > Avenue, > > > London, EC2M 2PP, United Kingdom. > > > > > > UBS AG (London Branch) is registered as a branch > of a > > > foreign company > > > under number BR004507, whose registered office is > at > > > 1 Finsbury Avenue, London, EC2M 2PP, United > Kingdom. > > > > > > UBS Clearing and Execution Services Limited is a > company > > > registered > > > in England & Wales under company number > 03123037, whose > > > registered > > > office is at 1 Finsbury Avenue, London, EC2M 2PP, > United > > > Kingdom. > > > > > > > ------------------------------------------------------------------------ > > ------ > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > -------------------------------------------------------------------------- > > ---- > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Christophe R. <cr...@ac...> - 2009-04-03 19:45:13
|
I don't see any problem when watching netstat but lsof reports ever growing number of file handles. I have attached a small example java -cp bin:lib/simple-4.1.9.jar org.simpleframework.ServerTest will launch the server on port 900 java -cp bin org.simpleframework.ClientTest <host> will run a client initially for the server, I have: >lsof -p 3040 | wc -l 42 Then each time I run the client test >lsof -p 3040 | wc -l 49 next >lsof -p 3040 | wc -l 55 And so on. It doesn't look like a connection problem. > -----Original Message----- > From: Niall Gallagher [mailto:gal...@ya...] > Sent: Friday, April 03, 2009 2:16 PM > To: Simple support and user issues > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > > Hi, > > I really don't think there is a file leak here. I have just performed > 10,000,000 requests with apache bench using HTTP/1.0 (non persistent) > connections. and 100,000,000 persistent connections with apache bench. > Everything was fine. On both Linux and Windows. > > I think you are either not closing the connection or not expecting > "Transfer-Encoding: chunked" responses which will be maintained. Such > connections should be closed from the client side. Also, Simple will close > all dormant connections after two minutes. Regardless, so all resources > will be cleaned up eventually. > > If you can prove me wrong, by means of a unit test. I would be very > grateful. However, I really doubt there is a connection leak. In > particular the changes between 4.1.9 and 4.1.10 do not really deal with > connections. > > Niall > > --- On Fri, 4/3/09, Nia...@ub... <Nia...@ub...> > wrote: > > > From: Nia...@ub... <Nia...@ub...> > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > To: sim...@li... > > Date: Friday, April 3, 2009, 10:14 AM > > Hi, > > > > Can you try "netstat -P tcp" to get the actual TCP > > settings, perhaps > > grep for the server port to match the connections. I have > > just run a > > test with a couple of thousand connections and it worked > > fine. However, > > I am not doubting there is a problem. Also I have just > > introduced a new > > test to 4.1.10 that uses the java.net.URL (which delegates > > to > > java.net.HttpUrlConnection) and it runs through a couple of > > hundred > > connectiosn per sec without issue. > > > > I'll run some more substantial tests shortly. I would > > really need to see > > the TCP state of the leaking connections to know what is > > happening. > > > > Thanks, > > Niall > > > > > > -----Original Message----- > > From: Christophe Roudet [mailto:cr...@ac...] > > > > Sent: 03 April 2009 18:03 > > To: 'Simple support and user issues' > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking > > file handles > > > > The connections are closed. > > I am using HttpUrlConnection to connect to the server. > > In the lsof command output I see a lot of: > > > > java 12776 root 53u > > sock 0,5 > > 214006695 can't > > identify > > protocol > > java 12776 root 54u > > sock 0,5 > > 214007226 can't > > identify > > protocol > > java 12776 root 55u > > sock 0,5 > > 214006688 can't > > identify > > protocol > > java 12776 root 56u > > sock 0,5 > > 214005947 can't > > identify > > protocol > > java 12776 root 57u > > sock 0,5 > > 214005790 can't > > identify > > protocol > > java 12776 root 58u > > sock 0,5 > > 214010186 can't > > identify > > protocol > > java 12776 root 59u > > sock 0,5 > > 214016384 can't > > identify > > protocol > > java 12776 root 60u > > sock 0,5 > > 214007875 can't > > identify > > protocol > > java 12776 root 61u > > sock 0,5 > > 214006161 can't > > identify > > protocol > > java 12776 root 62u > > sock 0,5 > > 214016081 can't > > identify > > protocol > > java 12776 root 63u > > sock 0,5 > > 214007880 can't > > identify > > protocol > > java 12776 root 64u > > sock 0,5 > > 214015056 can't > > identify > > protocol > > java 12776 root 65u > > sock 0,5 > > 214007332 can't > > identify > > protocol > > > > > -----Original Message----- > > > From: Nia...@ub... > > [mailto:Nia...@ub...] > > > Sent: Friday, April 03, 2009 12:50 PM > > > To: sim...@li... > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking file handles > > > > > > Hi, > > > > > > What is connecting to the server, are you using a load > > tester such as > > > ApacheBench. Also, are you closing the connections? > > For example > > > > > > Response.close(); > > > > > > Or > > > > > > OutputStream.close(); > > > > > > Within the resource or container. Just looking at the > > code for the > > > change and it does not seem likely that a file leak > > could occur, but > > > I'd like to know exactly what you see. > > > > > > If you could I would appreciate any information on the > > TCP state of > > > the connections. Are they CLOSE_WAIT, TIME_WAIT or > > something like > > FIN_WAIT1? > > > > > > Thanks, > > > Niall > > > > > > -----Original Message----- > > > From: Christophe Roudet [mailto:cr...@ac...] > > > Sent: 03 April 2009 17:46 > > > To: 'Simple support and user issues' > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking file handles > > > > > > I have just seen my server crashed with 'too many open > > files' > > messages. > > > I monitored with lsof -p <pid> and I saw the > > number of file handles > > > growing. > > > > > > Chrisotphe > > > > > > > -----Original Message----- > > > > From: Nia...@ub... > > [mailto:Nia...@ub...] > > > > Sent: Friday, April 03, 2009 12:42 PM > > > > To: sim...@li... > > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > > leaking file > > > > handles > > > > > > > > Hi, > > > > > > > > How do you mean leaking file handles? In what > > scenario and under > > > > what conditions? Are you using netstat or > > something? > > > > > > > > Thanks, > > > > Niall > > > > > > > > -----Original Message----- > > > > From: Christophe Roudet [mailto:cr...@ac...] > > > > Sent: 03 April 2009 17:13 > > > > To: sim...@li... > > > > Subject: [Simpleweb-Support] simple-4.1.10 is > > leaking file handles > > > > > > > > Hi, > > > > > > > > It looks like simple-4.1.10.jar is leaking file > > handles, using > > > > simple-4.1.9.jar turns things back to normal. > > > > > > > > Christophe > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > -- > > > > -- > > > > ------ > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > Visit our website at http://www.ubs.com > > > > > > > > This message contains confidential information > > and is intended only > > > > for the individual named. If you are not > > the named addressee you > > > > should not disseminate, distribute or copy this > > e-mail. Please > > > > notify > > > > > > > the sender immediately by e-mail if you have > > received this e-mail by > > > > > > mistake and delete this e-mail from your system. > > > > > > > > E-mails are not encrypted and cannot be > > guaranteed to be secure or > > > > error-free as information could be intercepted, > > corrupted, lost, > > > > destroyed, arrive late or incomplete, or contain > > viruses. The > > > > sender therefore does not accept liability for > > any errors or > > > > omissions in the > > > > > > > contents of this message which arise as a result > > of e-mail > > > transmission. > > > > If verification is required please request a > > hard-copy version. > > > > This message is provided for informational > > purposes and should not > > > > be construed as a solicitation or offer to buy or > > sell any > > > > securities or related financial instruments. > > > > > > > > UBS Limited is a company registered in England > > & Wales under company > > > > > > number 2035362, whose registered office is at 1 > > Finsbury Avenue, > > > > London, EC2M 2PP, United Kingdom. > > > > > > > > UBS AG (London Branch) is registered as a branch > > of a foreign > > > > company under number BR004507, whose registered > > office is at > > > > 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > > > > > UBS Clearing and Execution Services Limited is a > > company registered > > > > in > > > > > > > England & Wales under company number > > 03123037, whose registered > > > > office > > > > > > > is at 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > > > > > > > -------------------------------------------------------------------- > > > > -- > > > > ---- > > > > ---- > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > ---------------------------------------------------------------------- > > > -- > > > ------ > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > Visit our website at http://www.ubs.com > > > > > > This message contains confidential information and is > > intended only > > > for the individual named. If you are not the > > named addressee you > > > should not disseminate, distribute or copy this > > e-mail. Please notify > > > > > the sender immediately by e-mail if you have received > > this e-mail by > > > mistake and delete this e-mail from your system. > > > > > > E-mails are not encrypted and cannot be guaranteed to > > be secure or > > > error-free as information could be intercepted, > > corrupted, lost, > > > destroyed, arrive late or incomplete, or contain > > viruses. The sender > > > therefore does not accept liability for any errors or > > omissions in the > > > > > contents of this message which arise as a result of > > e-mail > > transmission. > > > If verification is required please request a hard-copy > > version. This > > > message is provided for informational purposes and > > should not be > > > construed as a solicitation or offer to buy or sell > > any securities or > > > related financial instruments. > > > > > > UBS Limited is a company registered in England & > > Wales under company > > > number 2035362, whose registered office is at 1 > > Finsbury Avenue, > > > London, EC2M 2PP, United Kingdom. > > > > > > UBS AG (London Branch) is registered as a branch of a > > foreign company > > > under number BR004507, whose registered office is at > > > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > > > > > UBS Clearing and Execution Services Limited is a > > company registered in > > > > > England & Wales under company number 03123037, > > whose registered office > > > > > is at 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > > > > > ---------------------------------------------------------------------- > > > ---- > > > ---- > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > ------------------------------------------------------------------------ > > ------ > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > Visit our website at http://www.ubs.com > > > > This message contains confidential information and is > > intended only > > for the individual named. If you are not the named > > addressee you > > should not disseminate, distribute or copy this > > e-mail. Please > > notify the sender immediately by e-mail if you have > > received this > > e-mail by mistake and delete this e-mail from your system. > > > > E-mails are not encrypted and cannot be guaranteed to be > > secure or > > error-free as information could be intercepted, corrupted, > > lost, > > destroyed, arrive late or incomplete, or contain > > viruses. The sender > > therefore does not accept liability for any errors or > > omissions in the > > contents of this message which arise as a result of e-mail > > transmission. > > If verification is required please request a hard-copy > > version. This > > message is provided for informational purposes and should > > not be > > construed as a solicitation or offer to buy or sell any > > securities > > or related financial instruments. > > > > UBS Limited is a company registered in England & Wales > > under company > > number 2035362, whose registered office is at 1 Finsbury > > Avenue, > > London, EC2M 2PP, United Kingdom. > > > > UBS AG (London Branch) is registered as a branch of a > > foreign company > > under number BR004507, whose registered office is at > > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > > > UBS Clearing and Execution Services Limited is a company > > registered > > in England & Wales under company number 03123037, whose > > registered > > office is at 1 Finsbury Avenue, London, EC2M 2PP, United > > Kingdom. > > > > ------------------------------------------------------------------------ > ------ > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > -------------------------------------------------------------------------- > ---- > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2009-04-03 18:16:28
|
Hi, I really don't think there is a file leak here. I have just performed 10,000,000 requests with apache bench using HTTP/1.0 (non persistent) connections. and 100,000,000 persistent connections with apache bench. Everything was fine. On both Linux and Windows. I think you are either not closing the connection or not expecting "Transfer-Encoding: chunked" responses which will be maintained. Such connections should be closed from the client side. Also, Simple will close all dormant connections after two minutes. Regardless, so all resources will be cleaned up eventually. If you can prove me wrong, by means of a unit test. I would be very grateful. However, I really doubt there is a connection leak. In particular the changes between 4.1.9 and 4.1.10 do not really deal with connections. Niall --- On Fri, 4/3/09, Nia...@ub... <Nia...@ub...> wrote: > From: Nia...@ub... <Nia...@ub...> > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > To: sim...@li... > Date: Friday, April 3, 2009, 10:14 AM > Hi, > > Can you try "netstat -P tcp" to get the actual TCP > settings, perhaps > grep for the server port to match the connections. I have > just run a > test with a couple of thousand connections and it worked > fine. However, > I am not doubting there is a problem. Also I have just > introduced a new > test to 4.1.10 that uses the java.net.URL (which delegates > to > java.net.HttpUrlConnection) and it runs through a couple of > hundred > connectiosn per sec without issue. > > I'll run some more substantial tests shortly. I would > really need to see > the TCP state of the leaking connections to know what is > happening. > > Thanks, > Niall > > > -----Original Message----- > From: Christophe Roudet [mailto:cr...@ac...] > > Sent: 03 April 2009 18:03 > To: 'Simple support and user issues' > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking > file handles > > The connections are closed. > I am using HttpUrlConnection to connect to the server. > In the lsof command output I see a lot of: > > java 12776 root 53u > sock 0,5 > 214006695 can't > identify > protocol > java 12776 root 54u > sock 0,5 > 214007226 can't > identify > protocol > java 12776 root 55u > sock 0,5 > 214006688 can't > identify > protocol > java 12776 root 56u > sock 0,5 > 214005947 can't > identify > protocol > java 12776 root 57u > sock 0,5 > 214005790 can't > identify > protocol > java 12776 root 58u > sock 0,5 > 214010186 can't > identify > protocol > java 12776 root 59u > sock 0,5 > 214016384 can't > identify > protocol > java 12776 root 60u > sock 0,5 > 214007875 can't > identify > protocol > java 12776 root 61u > sock 0,5 > 214006161 can't > identify > protocol > java 12776 root 62u > sock 0,5 > 214016081 can't > identify > protocol > java 12776 root 63u > sock 0,5 > 214007880 can't > identify > protocol > java 12776 root 64u > sock 0,5 > 214015056 can't > identify > protocol > java 12776 root 65u > sock 0,5 > 214007332 can't > identify > protocol > > > -----Original Message----- > > From: Nia...@ub... > [mailto:Nia...@ub...] > > Sent: Friday, April 03, 2009 12:50 PM > > To: sim...@li... > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > leaking file handles > > > > Hi, > > > > What is connecting to the server, are you using a load > tester such as > > ApacheBench. Also, are you closing the connections? > For example > > > > Response.close(); > > > > Or > > > > OutputStream.close(); > > > > Within the resource or container. Just looking at the > code for the > > change and it does not seem likely that a file leak > could occur, but > > I'd like to know exactly what you see. > > > > If you could I would appreciate any information on the > TCP state of > > the connections. Are they CLOSE_WAIT, TIME_WAIT or > something like > FIN_WAIT1? > > > > Thanks, > > Niall > > > > -----Original Message----- > > From: Christophe Roudet [mailto:cr...@ac...] > > Sent: 03 April 2009 17:46 > > To: 'Simple support and user issues' > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > leaking file handles > > > > I have just seen my server crashed with 'too many open > files' > messages. > > I monitored with lsof -p <pid> and I saw the > number of file handles > > growing. > > > > Chrisotphe > > > > > -----Original Message----- > > > From: Nia...@ub... > [mailto:Nia...@ub...] > > > Sent: Friday, April 03, 2009 12:42 PM > > > To: sim...@li... > > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is > leaking file > > > handles > > > > > > Hi, > > > > > > How do you mean leaking file handles? In what > scenario and under > > > what conditions? Are you using netstat or > something? > > > > > > Thanks, > > > Niall > > > > > > -----Original Message----- > > > From: Christophe Roudet [mailto:cr...@ac...] > > > Sent: 03 April 2009 17:13 > > > To: sim...@li... > > > Subject: [Simpleweb-Support] simple-4.1.10 is > leaking file handles > > > > > > Hi, > > > > > > It looks like simple-4.1.10.jar is leaking file > handles, using > > > simple-4.1.9.jar turns things back to normal. > > > > > > Christophe > > > > > > > > > > -------------------------------------------------------------------- > > > -- > > > -- > > > ------ > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > Visit our website at http://www.ubs.com > > > > > > This message contains confidential information > and is intended only > > > for the individual named. If you are not > the named addressee you > > > should not disseminate, distribute or copy this > e-mail. Please > > > notify > > > > > the sender immediately by e-mail if you have > received this e-mail by > > > > mistake and delete this e-mail from your system. > > > > > > E-mails are not encrypted and cannot be > guaranteed to be secure or > > > error-free as information could be intercepted, > corrupted, lost, > > > destroyed, arrive late or incomplete, or contain > viruses. The > > > sender therefore does not accept liability for > any errors or > > > omissions in the > > > > > contents of this message which arise as a result > of e-mail > > transmission. > > > If verification is required please request a > hard-copy version. > > > This message is provided for informational > purposes and should not > > > be construed as a solicitation or offer to buy or > sell any > > > securities or related financial instruments. > > > > > > UBS Limited is a company registered in England > & Wales under company > > > > number 2035362, whose registered office is at 1 > Finsbury Avenue, > > > London, EC2M 2PP, United Kingdom. > > > > > > UBS AG (London Branch) is registered as a branch > of a foreign > > > company under number BR004507, whose registered > office is at > > > 1 Finsbury Avenue, London, EC2M 2PP, United > Kingdom. > > > > > > UBS Clearing and Execution Services Limited is a > company registered > > > in > > > > > England & Wales under company number > 03123037, whose registered > > > office > > > > > is at 1 Finsbury Avenue, London, EC2M 2PP, United > Kingdom. > > > > > > > -------------------------------------------------------------------- > > > -- > > > ---- > > > ---- > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > ---------------------------------------------------------------------- > > -- > > ------ > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > Visit our website at http://www.ubs.com > > > > This message contains confidential information and is > intended only > > for the individual named. If you are not the > named addressee you > > should not disseminate, distribute or copy this > e-mail. Please notify > > > the sender immediately by e-mail if you have received > this e-mail by > > mistake and delete this e-mail from your system. > > > > E-mails are not encrypted and cannot be guaranteed to > be secure or > > error-free as information could be intercepted, > corrupted, lost, > > destroyed, arrive late or incomplete, or contain > viruses. The sender > > therefore does not accept liability for any errors or > omissions in the > > > contents of this message which arise as a result of > e-mail > transmission. > > If verification is required please request a hard-copy > version. This > > message is provided for informational purposes and > should not be > > construed as a solicitation or offer to buy or sell > any securities or > > related financial instruments. > > > > UBS Limited is a company registered in England & > Wales under company > > number 2035362, whose registered office is at 1 > Finsbury Avenue, > > London, EC2M 2PP, United Kingdom. > > > > UBS AG (London Branch) is registered as a branch of a > foreign company > > under number BR004507, whose registered office is at > > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > > > UBS Clearing and Execution Services Limited is a > company registered in > > > England & Wales under company number 03123037, > whose registered office > > > is at 1 Finsbury Avenue, London, EC2M 2PP, United > Kingdom. > > > > > ---------------------------------------------------------------------- > > ---- > > ---- > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > ------------------------------------------------------------------------ > ------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Visit our website at http://www.ubs.com > > This message contains confidential information and is > intended only > for the individual named. If you are not the named > addressee you > should not disseminate, distribute or copy this > e-mail. Please > notify the sender immediately by e-mail if you have > received this > e-mail by mistake and delete this e-mail from your system. > > E-mails are not encrypted and cannot be guaranteed to be > secure or > error-free as information could be intercepted, corrupted, > lost, > destroyed, arrive late or incomplete, or contain > viruses. The sender > therefore does not accept liability for any errors or > omissions in the > contents of this message which arise as a result of e-mail > transmission. > If verification is required please request a hard-copy > version. This > message is provided for informational purposes and should > not be > construed as a solicitation or offer to buy or sell any > securities > or related financial instruments. > > UBS Limited is a company registered in England & Wales > under company > number 2035362, whose registered office is at 1 Finsbury > Avenue, > London, EC2M 2PP, United Kingdom. > > UBS AG (London Branch) is registered as a branch of a > foreign company > under number BR004507, whose registered office is at > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > UBS Clearing and Execution Services Limited is a company > registered > in England & Wales under company number 03123037, whose > registered > office is at 1 Finsbury Avenue, London, EC2M 2PP, United > Kingdom. > > ------------------------------------------------------------------------------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: <Nia...@ub...> - 2009-04-03 17:14:54
|
Hi, Can you try "netstat -P tcp" to get the actual TCP settings, perhaps grep for the server port to match the connections. I have just run a test with a couple of thousand connections and it worked fine. However, I am not doubting there is a problem. Also I have just introduced a new test to 4.1.10 that uses the java.net.URL (which delegates to java.net.HttpUrlConnection) and it runs through a couple of hundred connectiosn per sec without issue. I'll run some more substantial tests shortly. I would really need to see the TCP state of the leaking connections to know what is happening. Thanks, Niall -----Original Message----- From: Christophe Roudet [mailto:cr...@ac...] Sent: 03 April 2009 18:03 To: 'Simple support and user issues' Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles The connections are closed. I am using HttpUrlConnection to connect to the server. In the lsof command output I see a lot of: java 12776 root 53u sock 0,5 214006695 can't identify protocol java 12776 root 54u sock 0,5 214007226 can't identify protocol java 12776 root 55u sock 0,5 214006688 can't identify protocol java 12776 root 56u sock 0,5 214005947 can't identify protocol java 12776 root 57u sock 0,5 214005790 can't identify protocol java 12776 root 58u sock 0,5 214010186 can't identify protocol java 12776 root 59u sock 0,5 214016384 can't identify protocol java 12776 root 60u sock 0,5 214007875 can't identify protocol java 12776 root 61u sock 0,5 214006161 can't identify protocol java 12776 root 62u sock 0,5 214016081 can't identify protocol java 12776 root 63u sock 0,5 214007880 can't identify protocol java 12776 root 64u sock 0,5 214015056 can't identify protocol java 12776 root 65u sock 0,5 214007332 can't identify protocol > -----Original Message----- > From: Nia...@ub... [mailto:Nia...@ub...] > Sent: Friday, April 03, 2009 12:50 PM > To: sim...@li... > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > Hi, > > What is connecting to the server, are you using a load tester such as > ApacheBench. Also, are you closing the connections? For example > > Response.close(); > > Or > > OutputStream.close(); > > Within the resource or container. Just looking at the code for the > change and it does not seem likely that a file leak could occur, but > I'd like to know exactly what you see. > > If you could I would appreciate any information on the TCP state of > the connections. Are they CLOSE_WAIT, TIME_WAIT or something like FIN_WAIT1? > > Thanks, > Niall > > -----Original Message----- > From: Christophe Roudet [mailto:cr...@ac...] > Sent: 03 April 2009 17:46 > To: 'Simple support and user issues' > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > I have just seen my server crashed with 'too many open files' messages. > I monitored with lsof -p <pid> and I saw the number of file handles > growing. > > Chrisotphe > > > -----Original Message----- > > From: Nia...@ub... [mailto:Nia...@ub...] > > Sent: Friday, April 03, 2009 12:42 PM > > To: sim...@li... > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file > > handles > > > > Hi, > > > > How do you mean leaking file handles? In what scenario and under > > what conditions? Are you using netstat or something? > > > > Thanks, > > Niall > > > > -----Original Message----- > > From: Christophe Roudet [mailto:cr...@ac...] > > Sent: 03 April 2009 17:13 > > To: sim...@li... > > Subject: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > > > Hi, > > > > It looks like simple-4.1.10.jar is leaking file handles, using > > simple-4.1.9.jar turns things back to normal. > > > > Christophe > > > > > > -------------------------------------------------------------------- > > -- > > -- > > ------ > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > Visit our website at http://www.ubs.com > > > > This message contains confidential information and is intended only > > for the individual named. If you are not the named addressee you > > should not disseminate, distribute or copy this e-mail. Please > > notify > > > the sender immediately by e-mail if you have received this e-mail by > > mistake and delete this e-mail from your system. > > > > E-mails are not encrypted and cannot be guaranteed to be secure or > > error-free as information could be intercepted, corrupted, lost, > > destroyed, arrive late or incomplete, or contain viruses. The > > sender therefore does not accept liability for any errors or > > omissions in the > > > contents of this message which arise as a result of e-mail > transmission. > > If verification is required please request a hard-copy version. > > This message is provided for informational purposes and should not > > be construed as a solicitation or offer to buy or sell any > > securities or related financial instruments. > > > > UBS Limited is a company registered in England & Wales under company > > number 2035362, whose registered office is at 1 Finsbury Avenue, > > London, EC2M 2PP, United Kingdom. > > > > UBS AG (London Branch) is registered as a branch of a foreign > > company under number BR004507, whose registered office is at > > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > > > UBS Clearing and Execution Services Limited is a company registered > > in > > > England & Wales under company number 03123037, whose registered > > office > > > is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > > > -------------------------------------------------------------------- > > -- > > ---- > > ---- > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > ---------------------------------------------------------------------- > -- > ------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please notify > the sender immediately by e-mail if you have received this e-mail by > mistake and delete this e-mail from your system. > > E-mails are not encrypted and cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message which arise as a result of e-mail transmission. > If verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > UBS Limited is a company registered in England & Wales under company > number 2035362, whose registered office is at 1 Finsbury Avenue, > London, EC2M 2PP, United Kingdom. > > UBS AG (London Branch) is registered as a branch of a foreign company > under number BR004507, whose registered office is at > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > UBS Clearing and Execution Services Limited is a company registered in > England & Wales under company number 03123037, whose registered office > is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > ---------------------------------------------------------------------- > ---- > ---- > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support ------------------------------------------------------------------------ ------ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |
From: Christophe R. <cr...@ac...> - 2009-04-03 17:03:46
|
The connections are closed. I am using HttpUrlConnection to connect to the server. In the lsof command output I see a lot of: java 12776 root 53u sock 0,5 214006695 can't identify protocol java 12776 root 54u sock 0,5 214007226 can't identify protocol java 12776 root 55u sock 0,5 214006688 can't identify protocol java 12776 root 56u sock 0,5 214005947 can't identify protocol java 12776 root 57u sock 0,5 214005790 can't identify protocol java 12776 root 58u sock 0,5 214010186 can't identify protocol java 12776 root 59u sock 0,5 214016384 can't identify protocol java 12776 root 60u sock 0,5 214007875 can't identify protocol java 12776 root 61u sock 0,5 214006161 can't identify protocol java 12776 root 62u sock 0,5 214016081 can't identify protocol java 12776 root 63u sock 0,5 214007880 can't identify protocol java 12776 root 64u sock 0,5 214015056 can't identify protocol java 12776 root 65u sock 0,5 214007332 can't identify protocol > -----Original Message----- > From: Nia...@ub... [mailto:Nia...@ub...] > Sent: Friday, April 03, 2009 12:50 PM > To: sim...@li... > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > Hi, > > What is connecting to the server, are you using a load tester such as > ApacheBench. Also, are you closing the connections? For example > > Response.close(); > > Or > > OutputStream.close(); > > Within the resource or container. Just looking at the code for the > change and it does not seem likely that a file leak could occur, but I'd > like to know exactly what you see. > > If you could I would appreciate any information on the TCP state of the > connections. Are they CLOSE_WAIT, TIME_WAIT or something like FIN_WAIT1? > > Thanks, > Niall > > -----Original Message----- > From: Christophe Roudet [mailto:cr...@ac...] > Sent: 03 April 2009 17:46 > To: 'Simple support and user issues' > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > I have just seen my server crashed with 'too many open files' messages. > I monitored with lsof -p <pid> and I saw the number of file handles > growing. > > Chrisotphe > > > -----Original Message----- > > From: Nia...@ub... [mailto:Nia...@ub...] > > Sent: Friday, April 03, 2009 12:42 PM > > To: sim...@li... > > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > > > Hi, > > > > How do you mean leaking file handles? In what scenario and under what > > conditions? Are you using netstat or something? > > > > Thanks, > > Niall > > > > -----Original Message----- > > From: Christophe Roudet [mailto:cr...@ac...] > > Sent: 03 April 2009 17:13 > > To: sim...@li... > > Subject: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > > > Hi, > > > > It looks like simple-4.1.10.jar is leaking file handles, using > > simple-4.1.9.jar turns things back to normal. > > > > Christophe > > > > > > ---------------------------------------------------------------------- > > -- > > ------ > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > Visit our website at http://www.ubs.com > > > > This message contains confidential information and is intended only > > for the individual named. If you are not the named addressee you > > should not disseminate, distribute or copy this e-mail. Please notify > > > the sender immediately by e-mail if you have received this e-mail by > > mistake and delete this e-mail from your system. > > > > E-mails are not encrypted and cannot be guaranteed to be secure or > > error-free as information could be intercepted, corrupted, lost, > > destroyed, arrive late or incomplete, or contain viruses. The sender > > therefore does not accept liability for any errors or omissions in the > > > contents of this message which arise as a result of e-mail > transmission. > > If verification is required please request a hard-copy version. This > > message is provided for informational purposes and should not be > > construed as a solicitation or offer to buy or sell any securities or > > related financial instruments. > > > > UBS Limited is a company registered in England & Wales under company > > number 2035362, whose registered office is at 1 Finsbury Avenue, > > London, EC2M 2PP, United Kingdom. > > > > UBS AG (London Branch) is registered as a branch of a foreign company > > under number BR004507, whose registered office is at > > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > > > UBS Clearing and Execution Services Limited is a company registered in > > > England & Wales under company number 03123037, whose registered office > > > is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > > > ---------------------------------------------------------------------- > > ---- > > ---- > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > ------------------------------------------------------------------------ > ------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please > notify the sender immediately by e-mail if you have received this > e-mail by mistake and delete this e-mail from your system. > > E-mails are not encrypted and cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message which arise as a result of e-mail transmission. > If verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities > or related financial instruments. > > UBS Limited is a company registered in England & Wales under company > number 2035362, whose registered office is at 1 Finsbury Avenue, > London, EC2M 2PP, United Kingdom. > > UBS AG (London Branch) is registered as a branch of a foreign company > under number BR004507, whose registered office is at > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > UBS Clearing and Execution Services Limited is a company registered > in England & Wales under company number 03123037, whose registered > office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > -------------------------------------------------------------------------- > ---- > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: <Nia...@ub...> - 2009-04-03 16:51:06
|
Hi, What is connecting to the server, are you using a load tester such as ApacheBench. Also, are you closing the connections? For example Response.close(); Or OutputStream.close(); Within the resource or container. Just looking at the code for the change and it does not seem likely that a file leak could occur, but I'd like to know exactly what you see. If you could I would appreciate any information on the TCP state of the connections. Are they CLOSE_WAIT, TIME_WAIT or something like FIN_WAIT1? Thanks, Niall -----Original Message----- From: Christophe Roudet [mailto:cr...@ac...] Sent: 03 April 2009 17:46 To: 'Simple support and user issues' Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles I have just seen my server crashed with 'too many open files' messages. I monitored with lsof -p <pid> and I saw the number of file handles growing. Chrisotphe > -----Original Message----- > From: Nia...@ub... [mailto:Nia...@ub...] > Sent: Friday, April 03, 2009 12:42 PM > To: sim...@li... > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > Hi, > > How do you mean leaking file handles? In what scenario and under what > conditions? Are you using netstat or something? > > Thanks, > Niall > > -----Original Message----- > From: Christophe Roudet [mailto:cr...@ac...] > Sent: 03 April 2009 17:13 > To: sim...@li... > Subject: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > Hi, > > It looks like simple-4.1.10.jar is leaking file handles, using > simple-4.1.9.jar turns things back to normal. > > Christophe > > > ---------------------------------------------------------------------- > -- > ------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please notify > the sender immediately by e-mail if you have received this e-mail by > mistake and delete this e-mail from your system. > > E-mails are not encrypted and cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message which arise as a result of e-mail transmission. > If verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > UBS Limited is a company registered in England & Wales under company > number 2035362, whose registered office is at 1 Finsbury Avenue, > London, EC2M 2PP, United Kingdom. > > UBS AG (London Branch) is registered as a branch of a foreign company > under number BR004507, whose registered office is at > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > UBS Clearing and Execution Services Limited is a company registered in > England & Wales under company number 03123037, whose registered office > is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > ---------------------------------------------------------------------- > ---- > ---- > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support ------------------------------------------------------------------------ ------ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |
From: Christophe R. <cr...@ac...> - 2009-04-03 16:46:06
|
I have just seen my server crashed with 'too many open files' messages. I monitored with lsof -p <pid> and I saw the number of file handles growing. Chrisotphe > -----Original Message----- > From: Nia...@ub... [mailto:Nia...@ub...] > Sent: Friday, April 03, 2009 12:42 PM > To: sim...@li... > Subject: Re: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > Hi, > > How do you mean leaking file handles? In what scenario and under what > conditions? Are you using netstat or something? > > Thanks, > Niall > > -----Original Message----- > From: Christophe Roudet [mailto:cr...@ac...] > Sent: 03 April 2009 17:13 > To: sim...@li... > Subject: [Simpleweb-Support] simple-4.1.10 is leaking file handles > > Hi, > > It looks like simple-4.1.10.jar is leaking file handles, using > simple-4.1.9.jar turns things back to normal. > > Christophe > > > ------------------------------------------------------------------------ > ------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please > notify the sender immediately by e-mail if you have received this > e-mail by mistake and delete this e-mail from your system. > > E-mails are not encrypted and cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message which arise as a result of e-mail transmission. > If verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities > or related financial instruments. > > UBS Limited is a company registered in England & Wales under company > number 2035362, whose registered office is at 1 Finsbury Avenue, > London, EC2M 2PP, United Kingdom. > > UBS AG (London Branch) is registered as a branch of a foreign company > under number BR004507, whose registered office is at > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > UBS Clearing and Execution Services Limited is a company registered > in England & Wales under company number 03123037, whose registered > office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > -------------------------------------------------------------------------- > ---- > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: <Nia...@ub...> - 2009-04-03 16:43:14
|
Hi, How do you mean leaking file handles? In what scenario and under what conditions? Are you using netstat or something? Thanks, Niall -----Original Message----- From: Christophe Roudet [mailto:cr...@ac...] Sent: 03 April 2009 17:13 To: sim...@li... Subject: [Simpleweb-Support] simple-4.1.10 is leaking file handles Hi, It looks like simple-4.1.10.jar is leaking file handles, using simple-4.1.9.jar turns things back to normal. Christophe ------------------------------------------------------------------------ ------ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |
From: Christophe R. <cr...@ac...> - 2009-04-03 16:26:08
|
Hi, It looks like simple-4.1.10.jar is leaking file handles, using simple-4.1.9.jar turns things back to normal. Christophe |
From: <Nia...@ub...> - 2009-04-01 09:03:27
|
Hi, I have uploaded the 4.1.10 archive. It contains the fix for streaming. Niall -----Original Message----- From: Tom Robinson [mailto:tlr...@gm...] Sent: 30 March 2009 22:53 To: sim...@li... Subject: Re: [Simpleweb-Support] Streaming? After my previous post I noticed 4.1.10 might fix this: Fix made to the response output stream so that the flush method works However, I can't seem to find the 4.1.10 download anywhere, only up to 4.1.9. Is it available anywhere? Thanks. Tom ------------------------------------------------------------------------ ------ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |
From: <Nia...@ub...> - 2009-03-31 08:48:37
|
Hi, Strangely enough it looks as if its not showing up on the download page. Ill take a look shortly. If you like, you can get the jar from maven. Its there for sure. Thanks, Niall -----Original Message----- From: Tom Robinson [mailto:tlr...@gm...] Sent: 30 March 2009 22:53 To: sim...@li... Subject: Re: [Simpleweb-Support] Streaming? After my previous post I noticed 4.1.10 might fix this: Fix made to the response output stream so that the flush method works However, I can't seem to find the 4.1.10 download anywhere, only up to 4.1.9. Is it available anywhere? Thanks. Tom ------------------------------------------------------------------------ ------ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |
From: Tom R. <tlr...@gm...> - 2009-03-30 21:53:38
|
After my previous post I noticed 4.1.10 might fix this: Fix made to the response output stream so that the flush method works However, I can't seem to find the 4.1.10 download anywhere, only up to 4.1.9. Is it available anywhere? Thanks. Tom |
From: Kai S. <sch...@gm...> - 2009-03-30 01:47:33
|
<3 Niall Seriously, any of you think IIS, or even Apache would give you this level of support? =D -k On Sun, Mar 29, 2009 at 2:20 PM, Niall Gallagher <gal...@ya...>wrote: > > Hi, > > Streaming was broken recently. I have fixed the issue and 4.1.10 has been > released with a fix for streaming. > > 4.1.10 should be available for download shortly. > > Niall > > --- On Sat, 3/28/09, Niall Gallagher <gal...@ya...> wrote: > > > From: Niall Gallagher <gal...@ya...> > > Subject: Re: [Simpleweb-Support] Streaming? > > To: "Simple support and user issues" < > sim...@li...> > > Date: Saturday, March 28, 2009, 4:58 AM > > > > Hi, > > > > Yes you should be able to stream the response. There have > > been changes recently but streaming should still be fully > > supported. I'll run a couple of tests and let you know. If > > streaming is broken ill release an update with a fix. > > > > Regards, > > Niall > > > > --- On Fri, 3/27/09, Tom Robinson <tlr...@gm...> > > wrote: > > > > > From: Tom Robinson <tlr...@gm...> > > > Subject: [Simpleweb-Support] Streaming? > > > To: sim...@li... > > > Date: Friday, March 27, 2009, 7:16 PM > > > Is it possible to stream a response? > > > The Response documentation says > > > "A buffer size can be specified when acquiring the > > output > > > stream which > > > allows data to be buffered until it over flows or is > > > flushed explicitly" > > > > > > I tried setting the "Transfer-Encoding" header to > > "chunked" > > > and > > > flushing the output stream at the end of each "chunk", > > but > > > it didn't > > > seem to do anything, the client didn't receive any > > chunks > > > until the > > > whole response was complete. Doing this works in > > Jetty, for > > > example. > > > > > > Am I just missing something, or is this just not > > possible? > > > > > > Nice project, btw. I'm just using it as a basic > > webserver > > > with Rhino > > > in "jack" (jackjs.org, like Ruby's Rack but for > > > JavaScript), but I > > > prefer it over Jetty anyway due to it's small size > > and > > > simplicity, and > > > it seems little faster too. > > > > > > Thanks. > > > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Niall G. <gal...@ya...> - 2009-03-29 12:20:33
|
Hi, Streaming was broken recently. I have fixed the issue and 4.1.10 has been released with a fix for streaming. 4.1.10 should be available for download shortly. Niall --- On Sat, 3/28/09, Niall Gallagher <gal...@ya...> wrote: > From: Niall Gallagher <gal...@ya...> > Subject: Re: [Simpleweb-Support] Streaming? > To: "Simple support and user issues" <sim...@li...> > Date: Saturday, March 28, 2009, 4:58 AM > > Hi, > > Yes you should be able to stream the response. There have > been changes recently but streaming should still be fully > supported. I'll run a couple of tests and let you know. If > streaming is broken ill release an update with a fix. > > Regards, > Niall > > --- On Fri, 3/27/09, Tom Robinson <tlr...@gm...> > wrote: > > > From: Tom Robinson <tlr...@gm...> > > Subject: [Simpleweb-Support] Streaming? > > To: sim...@li... > > Date: Friday, March 27, 2009, 7:16 PM > > Is it possible to stream a response? > > The Response documentation says > > "A buffer size can be specified when acquiring the > output > > stream which > > allows data to be buffered until it over flows or is > > flushed explicitly" > > > > I tried setting the "Transfer-Encoding" header to > "chunked" > > and > > flushing the output stream at the end of each "chunk", > but > > it didn't > > seem to do anything, the client didn't receive any > chunks > > until the > > whole response was complete. Doing this works in > Jetty, for > > example. > > > > Am I just missing something, or is this just not > possible? > > > > Nice project, btw. I'm just using it as a basic > webserver > > with Rhino > > in "jack" (jackjs.org, like Ruby's Rack but for > > JavaScript), but I > > prefer it over Jetty anyway due to it's small size > and > > simplicity, and > > it seems little faster too. > > > > Thanks. > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Niall G. <gal...@ya...> - 2009-03-28 11:58:50
|
Hi, Yes you should be able to stream the response. There have been changes recently but streaming should still be fully supported. I'll run a couple of tests and let you know. If streaming is broken ill release an update with a fix. Regards, Niall --- On Fri, 3/27/09, Tom Robinson <tlr...@gm...> wrote: > From: Tom Robinson <tlr...@gm...> > Subject: [Simpleweb-Support] Streaming? > To: sim...@li... > Date: Friday, March 27, 2009, 7:16 PM > Is it possible to stream a response? > The Response documentation says > "A buffer size can be specified when acquiring the output > stream which > allows data to be buffered until it over flows or is > flushed explicitly" > > I tried setting the "Transfer-Encoding" header to "chunked" > and > flushing the output stream at the end of each "chunk", but > it didn't > seem to do anything, the client didn't receive any chunks > until the > whole response was complete. Doing this works in Jetty, for > example. > > Am I just missing something, or is this just not possible? > > Nice project, btw. I'm just using it as a basic webserver > with Rhino > in "jack" (jackjs.org, like Ruby's Rack but for > JavaScript), but I > prefer it over Jetty anyway due to it's small size and > simplicity, and > it seems little faster too. > > Thanks. > > ------------------------------------------------------------------------------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Tom R. <tlr...@gm...> - 2009-03-28 02:16:25
|
Is it possible to stream a response? The Response documentation says "A buffer size can be specified when acquiring the output stream which allows data to be buffered until it over flows or is flushed explicitly" I tried setting the "Transfer-Encoding" header to "chunked" and flushing the output stream at the end of each "chunk", but it didn't seem to do anything, the client didn't receive any chunks until the whole response was complete. Doing this works in Jetty, for example. Am I just missing something, or is this just not possible? Nice project, btw. I'm just using it as a basic webserver with Rhino in "jack" (jackjs.org, like Ruby's Rack but for JavaScript), but I prefer it over Jetty anyway due to it's small size and simplicity, and it seems little faster too. Thanks. |
From: Niall G. <gal...@ya...> - 2009-03-15 09:34:47
|
Hi, Either is fine, Request.getTarget provides you with the unparsed URI. So it will contain the path, the fragment, and the query, which will be URL encoded. The getAddress method allows you to extract everything in a normalized fashion. I think getAddress().getPath().toString() is the best option. Then extract the fragment from that. Niall --- On Sat, 3/14/09, Ty Newton <ty....@co...> wrote: > From: Ty Newton <ty....@co...> > Subject: [Simpleweb-Support] uri fragment component processing?? > To: sim...@li... > Date: Saturday, March 14, 2009, 9:48 PM > Hi,I'm having some trouble getting access to the > fragment identifier component of a URI. Is this possible in > SimpleFramework? > I'd like to be able to access the 'fragment' in > this URI: http://server/page?query#fragment > At the moment all I get is up to the end of the query when > I do a: > request.getAddress().toString()or arequest.getTarget() > Any help is appreciated. > Thanks,T > here's the full code that I'm using to test this: > import org.simpleframework.http.core.Container;import > org.simpleframework.transport.connect.Connection;import > org.simpleframework.transport.connect.SocketConnection;import > org.simpleframework.http.Response;import > org.simpleframework.http.Request;import > java.net.InetSocketAddress;import > java.net.SocketAddress;import java.io.PrintStream; > public class HelloWorld implements Container { public > void handle(Request request, Response response) > { PrintStream body; try { body = > response.getPrintStream(); } catch (Exception e) { // > TODO Auto-generated catch > block e.printStackTrace(); return; } long time = > System.currentTimeMillis(); > response.set("Content-Type", > "text/plain"); response.set("Server", > "HelloWorld/1.0 (Simple > 4.0)"); response.setDate("Date", > time); response.setDate("Last-Modified", time); > body.println("Hello World" + > "\nGetAddress = " + > request.getAddress().toString() + "\nGetTarget = > " + request.getTarget()); body.close(); } /** * > @param args */ public static void main(String[] list) > throws Exception { // TODO Auto-generated method stub > Container container = new HelloWorld(); Connection > connection = new SocketConnection(container); > SocketAddress address = new InetSocketAddress(8000); > connection.connect(address); } > } > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex > Builder(TM) are > powering Web 2.0 with engaging, cross-platform > capabilities. Quickly and > easily build your RIAs with Flex Builder, the > Eclipse(TM)based development > software that enables intelligent coding and step-through > debugging. > Download the free 60 day trial. > http://p.sf.net/sfu/www-adobe-com_______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Ty N. <ty....@co...> - 2009-03-15 05:35:31
|
Hi,I'm having some trouble getting access to the fragment identifier component of a URI. Is this possible in SimpleFramework? I'd like to be able to access the 'fragment' in this URI: http://server/page?query#fragment At the moment all I get is up to the end of the query when I do a: request.getAddress().toString()or arequest.getTarget() Any help is appreciated. Thanks,T here's the full code that I'm using to test this: import org.simpleframework.http.core.Container;import org.simpleframework.transport.connect.Connection;import org.simpleframework.transport.connect.SocketConnection;import org.simpleframework.http.Response;import org.simpleframework.http.Request;import java.net.InetSocketAddress;import java.net.SocketAddress;import java.io.PrintStream; public class HelloWorld implements Container { public void handle(Request request, Response response) { PrintStream body; try { body = response.getPrintStream(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); return; } long time = System.currentTimeMillis(); response.set("Content-Type", "text/plain"); response.set("Server", "HelloWorld/1.0 (Simple 4.0)"); response.setDate("Date", time); response.setDate("Last-Modified", time); body.println("Hello World" + "\nGetAddress = " + request.getAddress().toString() + "\nGetTarget = " + request.getTarget()); body.close(); } /** * @param args */ public static void main(String[] list) throws Exception { // TODO Auto-generated method stub Container container = new HelloWorld(); Connection connection = new SocketConnection(container); SocketAddress address = new InetSocketAddress(8000); connection.connect(address); } } |
From: <Nia...@ub...> - 2009-02-04 17:40:20
|
Hi, Thanks, I will make sure to include this fix. Niall -----Original Message----- From: Christophe Roudet [mailto:cr...@ac...] Sent: 04 February 2009 16:42 To: sim...@li... Subject: [Simpleweb-Support] Typo in FileAllocator Hi, There is a type in one of the FileAllocator's constructor 84 public FileAllocator(String prefix) throws IOException { 85 this(PREFIX, 1048576); 86 } Should be 84 public FileAllocator(String prefix) throws IOException { 85 this(prefix, 1048576); 86 } Christophe ------------------------------------------------------------------------ ------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |
From: Christophe R. <cr...@ac...> - 2009-02-04 16:42:14
|
Hi, There is a type in one of the FileAllocator's constructor 84 public FileAllocator(String prefix) throws IOException { 85 this(PREFIX, 1048576); 86 } Should be 84 public FileAllocator(String prefix) throws IOException { 85 this(prefix, 1048576); 86 } Christophe |
From: <Nia...@ub...> - 2009-01-30 17:29:18
|
Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |