simpleweb-support Mailing List for Simple (Page 13)
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: Björn R. <rau...@go...> - 2009-10-27 13:11:00
|
Hi, has anyone implemented digest access authentication before? I am in the process of implementing this feature and any hints would be highly appreciated. with kind regards Björn |
From: <nia...@rb...> - 2009-10-21 14:47:54
|
Hi, Ya that will work. Although you might want to det the description. response.setText("Not Found"); But thats not really that important. Niall Niall Gallagher RBS Global Banking & Markets Office: +44 7879498724 -----Original Message----- From: [e2n] software | Björn Raupach [mailto:ra...@e2...] Sent: 21 October 2009 15:12 To: sim...@li... Subject: [Simpleweb-Support] Proper way to send a 404 Hi, its a simple question. How to send a proper error code to the client? Just the status code, no body and drop the connection afterwards. response.set("Server", "HelloWorld/1.0 (Simple 4.0)"); response.setDate("Date", System.currentTimeMillis()); response.set("Content-Length", 0); response.setCode(404); response.commit(); response.close(); This way? with kind regards, Björn *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our website at www.rbs.com *********************************************************************************** |
From: [e2n] s. | B. R. <ra...@e2...> - 2009-10-21 14:39:03
|
Hi, its a simple question. How to send a proper error code to the client? Just the status code, no body and drop the connection afterwards. response.set("Server", "HelloWorld/1.0 (Simple 4.0)"); response.setDate("Date", System.currentTimeMillis()); response.set("Content-Length", 0); response.setCode(404); response.commit(); response.close(); This way? with kind regards, Björn |
From: Niall G. <gal...@ya...> - 2009-07-23 22:06:20
|
Hi, The @Attribute on class Item is causing the problem the "id" is stripped for the key to the map. So its considered not existing for the Item class. Remove the String field "id" annotated with @Attribute and it will work. Niall --- On Thu, 7/23/09, Smith, Matthew (BRS) <Mat...@bl...> wrote: > From: Smith, Matthew (BRS) <Mat...@bl...> > Subject: [Simple-support] Help with ElementMap > To: sim...@li... > Date: Thursday, July 23, 2009, 1:42 PM > > > > > > Help with ElementMap > > > > > I'm getting the > following error when trying to unserialize... > > > org.simpleframework.xml.core.ValueRequiredException: > Unable to satisfy > @org.simpleframework.xml.Attribute(required=true, empty=, > name=) on field 'id' private java.lang.String > com.bfm.app.adam.config.Item.id for class > com.bfm.app.adam.config.Item at line 5 > > Can you tell me what > I'm doing wrong? > > > My classes are as > follows: > > > @Root > > > public class TestConfig > { > > > @ElementMap(entry="item", > key="id", attribute=true, inline=true) > > > private Map<String,Item> > items; > > > public void > setItems(Map<String,Item> items) { > > > > this.items = items; > > > } > > > public Map<String,Item> > getItems() { > > > > return items; > > > } > > > } > > > public class Item > { > > > @Attribute > > > private String id; > > > @Element > > > private String label; > > > > > > @Element > > > private String date; > > > > > public void setLabel(String > label) { > > > > this.label = label; > > > } > > > public String getLabel() > { > > > > return label; > > > } > > > public void setDate(String date) > { > > > > this.date = date; > > > } > > > public String getDate() { > > > > return date; > > > } > > > } > > > > > and the XML looks like > this: > > > <?xml > version="1.0" > encoding="UTF-8"?> > > > <testConfig> > > > > <item id="foo"> > > > > > <label>Foo</label> > > > > > <date>12/31/2008</date> > > > > </item> > > > </testConfig> > > > TIA! > > > > > > THE INFORMATION CONTAINED IN THIS MESSAGE AND ANY > ATTACHMENT MAY BE PRIVILEGED, CONFIDENTIAL, PROPRIETARY OR > OTHERWISE PROTECTED FROM DISCLOSURE. If the reader of this > message is not the intended recipient, you are hereby > notified that any dissemination, distribution, copying or > use of this message and any attachment is strictly > prohibited. If you have received this message in error, > please notify us immediately by replying to the message and > permanently delete it from your computer and destroy any > printout thereof. > > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |
From: Niall G. <gal...@ya...> - 2009-07-22 22:17:30
|
Hi, Ya, the whole idea behind the new implementation is that every connection can have something like. public clas MyServer implemenets Server { public MyServer(Server delegate, SocketAddress address) { this.delegte = delegate; this.address = address; } public void process(Socket socket) throws Exception { socket.getAttributes("socket.source", address); delegate.process(socket); } } Hope this makes sense. Niall --- On Wed, 7/22/09, Kasper Jeppe Jeppesen <kj...@so...> wrote: > From: Kasper Jeppe Jeppesen <kj...@so...> > Subject: Re: [Simpleweb-Support] Request server IP > To: "Simple support and user issues" <sim...@li...> > Date: Wednesday, July 22, 2009, 1:17 PM > > Yes there is, just implement the > Server interface. Then for each > > connection do the following. > > Server actualServer = new > ProcessorServer(containerProcessor) > > > > SocketAddress address1 = new InetSocketAddress(8080); > > Server server1 = new MyServer(actualServer, > address1); > > Connection connection1 = new > SocketConnection(server1); > > Cool, will look into this... > > > Alternatively you could just get the "Host" header, it > will contain > > the virtual host. So a URL such as > > > > http://host:9090/path > > > > Will have a "Host" header of "host:9090". Its a > requirement of HTTP/ > > 1.1. In fact it is perfectly legal to reject a request > without a > > "Host" header. > > Yeah, for most requests that will be the way I intend to > resolve it.. > the problem comes with wanting to server up sites with > bigger > flexibility. For example a site could accept multiple > cnames and use > it to separate customers... such as customer1.foo.lan > and > customer2.foo.lan... both being handled by one site that > deals with > all connections to a specific ip:port combination. > > So basically, I want to be able to bind to any number of > ip:port > combinations and have virtual hosts that bind to these... > most of the > times through one or more specific hostnames, but sometimes > also as a > wildcard as described above. > > /Kasper > > ------------------------------------------------------------------------------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Kasper J. J. <kj...@so...> - 2009-07-22 20:17:45
|
> Yes there is, just implement the Server interface. Then for each > connection do the following. > Server actualServer = new ProcessorServer(containerProcessor) > > SocketAddress address1 = new InetSocketAddress(8080); > Server server1 = new MyServer(actualServer, address1); > Connection connection1 = new SocketConnection(server1); Cool, will look into this... > Alternatively you could just get the "Host" header, it will contain > the virtual host. So a URL such as > > http://host:9090/path > > Will have a "Host" header of "host:9090". Its a requirement of HTTP/ > 1.1. In fact it is perfectly legal to reject a request without a > "Host" header. Yeah, for most requests that will be the way I intend to resolve it.. the problem comes with wanting to server up sites with bigger flexibility. For example a site could accept multiple cnames and use it to separate customers... such as customer1.foo.lan and customer2.foo.lan... both being handled by one site that deals with all connections to a specific ip:port combination. So basically, I want to be able to bind to any number of ip:port combinations and have virtual hosts that bind to these... most of the times through one or more specific hostnames, but sometimes also as a wildcard as described above. /Kasper |
From: Niall G. <gal...@ya...> - 2009-07-22 20:07:21
|
Hi, Yes there is, just implement the Server interface. Then for each connection do the following. Server actualServer = new ProcessorServer(containerProcessor) SocketAddress address1 = new InetSocketAddress(8080); Server server1 = new MyServer(actualServer, address1); Connection connection1 = new SocketConnection(server1); SocketAddress address2 = new InetSocketAddress(8080); Server server2 = new MyServer(actualServer, address2); Connection connection2 = new SocketConnection(server2); Alternatively you could just get the "Host" header, it will contain the virtual host. So a URL such as http://host:9090/path Will have a "Host" header of "host:9090". Its a requirement of HTTP/1.1. In fact it is perfectly legal to reject a request without a "Host" header. Niall --- On Wed, 7/22/09, Kasper Jeppe Jeppesen <kj...@so...> wrote: > From: Kasper Jeppe Jeppesen <kj...@so...> > Subject: [Simpleweb-Support] Request server IP > To: "Simple support and user issues" <sim...@li...> > Date: Wednesday, July 22, 2009, 8:47 AM > Hi, > > Is there a way to find the IP that the client connected to > from the > Request object? > > For context, I have multiple Connection objects passing > their requests > to the same container... I could let each Connection object > have its > own Container object, but that would end up being purely > for passing > along the ip, so I would much rather be able to simply > locate that > information in a general container :-) > > Thanks! > > /Kasper > > ------------------------------------------------------------------------------ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Kasper J. J. <kj...@so...> - 2009-07-22 16:03:38
|
Hi, Is there a way to find the IP that the client connected to from the Request object? For context, I have multiple Connection objects passing their requests to the same container... I could let each Connection object have its own Container object, but that would end up being purely for passing along the ip, so I would much rather be able to simply locate that information in a general container :-) Thanks! /Kasper |
From: Kai S. <sch...@gm...> - 2009-06-26 02:16:34
|
Hi, Without knowing much more about this case than what is written below, the problem seems to be more Chrome related that Simple related. While Simple may respond differently (which would explain why Jetty works), Chrome shouldn't just "hang" and use 100%. Please remember that Chrome is an experimental browser, and has not been released for production use by Google. It would be most helpful if you could run an ethernet eavesdropper to record all of the raw network communication between Chrome and Simple, then Chrome and Jetty. This may allow someone here to find the difference, and narrow down the issue. Who knows, perhaps there is an issue with Simple's HTTP protocol. Most likely, it's a bug that the Google developpers would love to hear about. -k 2009/6/23 Cheremin Ruslan <che...@gm...> > Hello, All, > > I've used Simple (v.4.1.13) for my application as an https engine inside > Restlet framework. Out application suggest RESTful API, and such API used > from browser-based web-application clients, and from desktop clients. > > Recently I've noticed what accessing app from Google Chrome > (v.2.0.172.31) from time to time (not each request, but very often) causing > it to hang, consuming 100% of CPU. I've made some checks, and it seems it > actual just for Chrome+Simple pair. > > 1. Other https engine, (Jetty) does not shows such behavior > 2. FF or Safari does not shows such behavior. > > So the most suggestion, from my point of view, is what Google Chrome > XmlHttpRequest object doing some mess, which Simple can't interoperate > correctly. I can not extract reproduceable test case for this for the > moment, but hope my explanations may give the hint about where to dig. > > Ruslan. > > P.S. I've tryed to debug this case, but can't understand Simple internal > so deep. Most of the time, there are 3 active threads with ActinDistributor, > spending most of the time in the ActionDistributor.distribute method. By > stepping it seems like there are channels, which are actually closed, or not > used, but Simple repeately tries to read bytes from it. > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > |
From: <Nia...@ub...> - 2009-06-23 10:59:35
|
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: Cheremin R. <che...@gm...> - 2009-06-23 10:51:12
|
Hello, All, I've used Simple (v.4.1.13) for my application as an https engine inside Restlet framework. Out application suggest RESTful API, and such API used from browser-based web-application clients, and from desktop clients. Recently I've noticed what accessing app from Google Chrome (v.2.0.172.31) from time to time (not each request, but very often) causing it to hang, consuming 100% of CPU. I've made some checks, and it seems it actual just for Chrome+Simple pair. 1. Other https engine, (Jetty) does not shows such behavior 2. FF or Safari does not shows such behavior. So the most suggestion, from my point of view, is what Google Chrome XmlHttpRequest object doing some mess, which Simple can't interoperate correctly. I can not extract reproduceable test case for this for the moment, but hope my explanations may give the hint about where to dig. Ruslan. P.S. I've tryed to debug this case, but can't understand Simple internal so deep. Most of the time, there are 3 active threads with ActinDistributor, spending most of the time in the ActionDistributor.distribute method. By stepping it seems like there are channels, which are actually closed, or not used, but Simple repeately tries to read bytes from it. |
From: Carfield Y. <car...@ca...> - 2009-06-09 18:09:55
|
Thanks for sharing those source, they are very useful. On Tue, Jun 9, 2009 at 4:47 PM, Niall Gallagher <gal...@ya...>wrote: > > Hi, > > I would need a thread dump and output from netstat to determine what is > wrong with your application. With regard to stress tests I have tested > Simple with at least 100 million requests using ApacheBench. Also I have > tested with HttpClient, Faban and my own stress tester, again the tests > involved millions of requests without any issues. Take a look at the > following tools which can help grab the informataion. > > For thread dumps: > > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/test/java/org/simpleframework/http/core/ThreadDumper.java?revision=1448&view=markup > > For general stats: > > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/location/java/org/simpleframework/location/ApplicationMonitor.java?revision=1448&view=markup > > Regards, > Niall > > > > > --- On Tue, 6/9/09, rayhan <sav...@gm...> wrote: > > > From: rayhan <sav...@gm...> > > Subject: Re: [Simpleweb-Support] Asynchronous Http Service Complete > Example > > To: "Simple support and user issues" < > sim...@li...> > > Date: Tuesday, June 9, 2009, 12:51 AM > > Thanx for your response. I already > > implement the asynchronous model of > > HTTP response and it works magic :) > > > > However, recently did load/stress test my application that > > uses > > simpleframework http listener. I'm using httperf load > > tester. I set > > load test traffic with 500 tps, and the application > > responded well > > initially. > > > > But after 30 minutes test, the application cannot receive > > more > > traffic. I try to hit one traffic manually using telnet, > > it's > > connected but not responding. I try to count established > > connection / > > file handlers using this command: > > > > lsof -p 26120 | wc -l > > 1663 > > > > There's 1663 establish connection. Something's wrong here > > .. > > > > I'm using both simple 4.1.11 and 4.1.10. > > > > Then I search mailinglist archive, and found similar > > problem regarding > > file handler. I try to switch back to 4.1.9, and it works > > well > > initially, for an hour collapse again. > > > > Any advice? Maybe there is something wrong in my > > application? FYI, > > always closed every response object per request > > > > On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> > > wrote: > > > Hi, > > > > > > Yes its very simple. There are no restrictions on how > > to process > > > requests asynchronously. For example try this. > > > > > > public void handle(final Request req, final Response > > resp) { > > > new Thread(new Runnable() { > > > public void run() { > > > try { > > > PrintStream out = > > resp.getPrintStream(); > > > resp.set("Content-Type", > > "text/html"); > > > out.println("Hello World!); > > > out.close(); // commits and sends > > response > > > }catch(Exception e) { > > > e.printStackTrace(); > > > } > > > } > > > }).start(); > > > } > > > > > > For simple the closure of the Response object or the > > OutputStream is > > > what completes the response. So you can pass the > > response object to an > > > asynchronous thread without any issues. Hope this > > helps. > > > > > > Niall > > > > > > -----Original Message----- > > > From: rayhan [mailto:sav...@gm...] > > > Sent: 08 June 2009 05:54 > > > To: sim...@li... > > > Subject: [Simpleweb-Support] Asynchronous Http Service > > Complete Example > > > > > > Hello All :) > > > > > > I recently joined this mailinglist, and I curious to > > know how to > > > correctly asynchronous service using simpleframework. > > I already the saw > > > the tutorial in > > > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, > > but I > > > thinks it's not complete. Does anyone has complete > > working example on > > > how to use it? I need asynchronous services badly :) > > > > > > Thx for your help > > > > > > -- > > > -- # SC -# > > > > > > > > ------------------------------------------------------------------------ > > > ------ > > > OpenSolaris 2009.06 is a cutting edge operating system > > for enterprises > > > looking to deploy the next generation of Solaris that > > includes the > > > latest innovations from Sun and the OpenSource > > community. Download a > > > copy and enjoy capabilities such as Networking, > > Storage and > > > Virtualization. > > > Go to: http://p.sf.net/sfu/opensolaris-get > > > _______________________________________________ > > > 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. > > > > > > > > > ------------------------------------------------------------------------------ > > > OpenSolaris 2009.06 is a cutting edge operating system > > for enterprises > > > looking to deploy the next generation of Solaris that > > includes the latest > > > innovations from Sun and the OpenSource community. > > Download a copy and > > > enjoy capabilities such as Networking, Storage and > > Virtualization. > > > Go to: http://p.sf.net/sfu/opensolaris-get > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > > -- > > -- # SC -# > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables > > unlimited > > royalty-free distribution of the report engine for > > externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Niall G. <gal...@ya...> - 2009-06-09 13:23:54
|
Hi, No ESTABLISHED connections are fine. They reflect persistent HTTP connections, so basically they are HTTP/1.1 client connections. Niall --- On Tue, 6/9/09, rayhan <sav...@gm...> wrote: > From: rayhan <sav...@gm...> > Subject: Re: [Simpleweb-Support] Asynchronous Http Service Complete Example > To: "Simple support and user issues" <sim...@li...> > Date: Tuesday, June 9, 2009, 5:36 AM > Okay, thanks again for your quick > response. Probably you are right, > I'm not catching run time exception. I'll check all of my > application > first. I'll report to you later :) > > one last question for today, there a lot of ESTABLISH (not > only > CLOSE_WAIT) connection to my application. Are there also > something > wrong in my application? > > On Tue, Jun 9, 2009 at 6:09 PM, Niall > Gallagher<gal...@ya...> > wrote: > > > > Hi, > > > > Well CLOSE_WAIT means you are not closing the > connections, this is where your problem is. Ensure to close > the response or output stream. This can be done with > Repsonse.close() or OutputStream.close(). I would bet you > are getting RuntimeExceptions that you are not catching, > this skips your close() invocations and so you are left with > a leak. Also 157 threads? This looks excessive. > > > > Niall > > > > --- On Tue, 6/9/09, rayhan <sav...@gm...> > wrote: > > > >> From: rayhan <sav...@gm...> > >> Subject: Re: [Simpleweb-Support] Asynchronous Http > Service Complete Example > >> To: "Simple support and user issues" <sim...@li...> > >> Date: Tuesday, June 9, 2009, 4:00 AM > >> Thx for your reply. > >> > >> I've attached ThreadDumper output and > ApplicationMonitor > >> output for > >> you analysis. Regarding netstat, what information > you would > >> like to > >> know? For the start, here is general netstat you > may want > >> to know: > >> > >> 2584 #> netstat -an | grep 28102 | grep > ESTABLISH | wc > >> -l > >> 2043 > >> > >> 2591 #> netstat -an | grep 28102 | grep > CLOSE_WAIT | wc > >> -l > >> 1288 > >> > >> 2592 #> netstat -an | grep 28102 | grep > TIME_WAIT | wc > >> -l > >> 0 > >> > >> 2589 #> lsof -p 26736 | grep ESTABLISHED | wc > -l > >> 1022 > >> > >> > >> 28102 is my application listening port, and 26736 > is my > >> PID. > >> > >> I'm looking forward for your assistance. thx :) > >> > >> > >> > >> On Tue, Jun 9, 2009 at 3:47 PM, Niall > >> Gallagher<gal...@ya...> > >> wrote: > >> > > >> > Hi, > >> > > >> > I would need a thread dump and output from > netstat to > >> determine what is wrong with your application. > With regard > >> to stress tests I have tested Simple with at least > 100 > >> million requests using ApacheBench. Also I have > tested with > >> HttpClient, Faban and my own stress tester, again > the tests > >> involved millions of requests without any issues. > Take a > >> look at the following tools which can help grab > the > >> informataion. > >> > > >> > For thread dumps: > >> > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/test/java/org/simpleframework/http/core/ThreadDumper.java?revision=1448&view=markup > >> > > >> > For general stats: > >> > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/location/java/org/simpleframework/location/ApplicationMonitor.java?revision=1448&view=markup > >> > > >> > Regards, > >> > Niall > >> > > >> > > >> > > >> > > >> > --- On Tue, 6/9/09, rayhan <sav...@gm...> > >> wrote: > >> > > >> >> From: rayhan <sav...@gm...> > >> >> Subject: Re: [Simpleweb-Support] > Asynchronous Http > >> Service Complete Example > >> >> To: "Simple support and user issues" > <sim...@li...> > >> >> Date: Tuesday, June 9, 2009, 12:51 AM > >> >> Thanx for your response. I already > >> >> implement the asynchronous model of > >> >> HTTP response and it works magic :) > >> >> > >> >> However, recently did load/stress test > my > >> application that > >> >> uses > >> >> simpleframework http listener. I'm using > httperf > >> load > >> >> tester. I set > >> >> load test traffic with 500 tps, and the > >> application > >> >> responded well > >> >> initially. > >> >> > >> >> But after 30 minutes test, the > application cannot > >> receive > >> >> more > >> >> traffic. I try to hit one traffic > manually using > >> telnet, > >> >> it's > >> >> connected but not responding. I try to > count > >> established > >> >> connection / > >> >> file handlers using this command: > >> >> > >> >> lsof -p 26120 | wc -l > >> >> 1663 > >> >> > >> >> There's 1663 establish connection. > Something's > >> wrong here > >> >> .. > >> >> > >> >> I'm using both simple 4.1.11 and 4.1.10. > >> >> > >> >> Then I search mailinglist archive, and > found > >> similar > >> >> problem regarding > >> >> file handler. I try to switch back to > 4.1.9, and > >> it works > >> >> well > >> >> initially, for an hour collapse again. > >> >> > >> >> Any advice? Maybe there is something > wrong in my > >> >> application? FYI, > >> >> always closed every response object per > request > >> >> > >> >> On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> > >> >> wrote: > >> >> > Hi, > >> >> > > >> >> > Yes its very simple. There are no > >> restrictions on how > >> >> to process > >> >> > requests asynchronously. For example > try > >> this. > >> >> > > >> >> > public void handle(final Request > req, final > >> Response > >> >> resp) { > >> >> > new Thread(new Runnable() { > >> >> > public void run() { > >> >> > try { > >> >> > PrintStream out = > >> >> resp.getPrintStream(); > >> >> > > resp.set("Content-Type", > >> >> "text/html"); > >> >> > out.println("Hello > World!); > >> >> > out.close(); // > commits and > >> sends > >> >> response > >> >> > }catch(Exception e) { > >> >> > e.printStackTrace(); > >> >> > } > >> >> > } > >> >> > }).start(); > >> >> > } > >> >> > > >> >> > For simple the closure of the > Response object > >> or the > >> >> OutputStream is > >> >> > what completes the response. So you > can pass > >> the > >> >> response object to an > >> >> > asynchronous thread without any > issues. Hope > >> this > >> >> helps. > >> >> > > >> >> > Niall > >> >> > > >> >> > -----Original Message----- > >> >> > From: rayhan [mailto:sav...@gm...] > >> >> > Sent: 08 June 2009 05:54 > >> >> > To: sim...@li... > >> >> > Subject: [Simpleweb-Support] > Asynchronous > >> Http Service > >> >> Complete Example > >> >> > > >> >> > Hello All :) > >> >> > > >> >> > I recently joined this mailinglist, > and I > >> curious to > >> >> know how to > >> >> > correctly asynchronous service > using > >> simpleframework. > >> >> I already the saw > >> >> > the tutorial in > >> >> > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, > >> >> but I > >> >> > thinks it's not complete. Does > anyone has > >> complete > >> >> working example on > >> >> > how to use it? I need asynchronous > services > >> badly :) > >> >> > > >> >> > Thx for your help > >> >> > > >> >> > -- > >> >> > -- # SC -# > >> >> > > >> >> > > >> >> > >> > ------------------------------------------------------------------------ > >> >> > ------ > >> >> > OpenSolaris 2009.06 is a cutting > edge > >> operating system > >> >> for enterprises > >> >> > looking to deploy the next > generation of > >> Solaris that > >> >> includes the > >> >> > latest innovations from Sun and the > >> OpenSource > >> >> community. Download a > >> >> > copy and enjoy capabilities such as > >> Networking, > >> >> Storage and > >> >> > Virtualization. > >> >> > Go to: http://p.sf.net/sfu/opensolaris-get > >> >> > > >> _______________________________________________ > >> >> > 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. > >> >> > > >> >> > > >> >> > >> > ------------------------------------------------------------------------------ > >> >> > OpenSolaris 2009.06 is a cutting > edge > >> operating system > >> >> for enterprises > >> >> > looking to deploy the next > generation of > >> Solaris that > >> >> includes the latest > >> >> > innovations from Sun and the > OpenSource > >> community. > >> >> Download a copy and > >> >> > enjoy capabilities such as > Networking, > >> Storage and > >> >> Virtualization. > >> >> > Go to: http://p.sf.net/sfu/opensolaris-get > >> >> > > >> _______________________________________________ > >> >> > Simpleweb-Support mailing list > >> >> > Sim...@li... > >> >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> -- # SC -# > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> Crystal Reports - New Free Runtime and 30 > Day > >> Trial > >> >> Check out the new simplified licensing > option that > >> enables > >> >> unlimited > >> >> royalty-free distribution of the report > engine > >> for > >> >> externally facing > >> >> server and web deployment. > >> >> http://p.sf.net/sfu/businessobjects > >> >> > _______________________________________________ > >> >> Simpleweb-Support mailing list > >> >> Sim...@li... > >> >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> >> > >> > > >> > > >> > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Crystal Reports - New Free Runtime and 30 Day > Trial > >> > Check out the new simplified licensing option > that > >> enables unlimited > >> > royalty-free distribution of the report > engine for > >> externally facing > >> > server and web deployment. > >> > http://p.sf.net/sfu/businessobjects > >> > > _______________________________________________ > >> > Simpleweb-Support mailing list > >> > Sim...@li... > >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> > > >> > >> > >> > >> -- > >> -- # SC -# > >> > >> -----Inline Attachment Follows----- > >> > >> > ------------------------------------------------------------------------------ > >> Crystal Reports - New Free Runtime and 30 Day > Trial > >> Check out the new simplified licensing option that > enables > >> unlimited > >> royalty-free distribution of the report engine > for > >> externally facing > >> server and web deployment. > >> http://p.sf.net/sfu/businessobjects > >> -----Inline Attachment Follows----- > >> > >> _______________________________________________ > >> Simpleweb-Support mailing list > >> Sim...@li... > >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> > > > > > > > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that > enables unlimited > > royalty-free distribution of the report engine for > externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > -- > -- # SC -# > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited > royalty-free distribution of the report engine for > externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: rayhan <sav...@gm...> - 2009-06-09 13:00:14
|
Okay, thanks again for your quick response. Probably you are right, I'm not catching run time exception. I'll check all of my application first. I'll report to you later :) one last question for today, there a lot of ESTABLISH (not only CLOSE_WAIT) connection to my application. Are there also something wrong in my application? On Tue, Jun 9, 2009 at 6:09 PM, Niall Gallagher<gal...@ya...> wrote: > > Hi, > > Well CLOSE_WAIT means you are not closing the connections, this is where your problem is. Ensure to close the response or output stream. This can be done with Repsonse.close() or OutputStream.close(). I would bet you are getting RuntimeExceptions that you are not catching, this skips your close() invocations and so you are left with a leak. Also 157 threads? This looks excessive. > > Niall > > --- On Tue, 6/9/09, rayhan <sav...@gm...> wrote: > >> From: rayhan <sav...@gm...> >> Subject: Re: [Simpleweb-Support] Asynchronous Http Service Complete Example >> To: "Simple support and user issues" <sim...@li...> >> Date: Tuesday, June 9, 2009, 4:00 AM >> Thx for your reply. >> >> I've attached ThreadDumper output and ApplicationMonitor >> output for >> you analysis. Regarding netstat, what information you would >> like to >> know? For the start, here is general netstat you may want >> to know: >> >> 2584 #> netstat -an | grep 28102 | grep ESTABLISH | wc >> -l >> 2043 >> >> 2591 #> netstat -an | grep 28102 | grep CLOSE_WAIT | wc >> -l >> 1288 >> >> 2592 #> netstat -an | grep 28102 | grep TIME_WAIT | wc >> -l >> 0 >> >> 2589 #> lsof -p 26736 | grep ESTABLISHED | wc -l >> 1022 >> >> >> 28102 is my application listening port, and 26736 is my >> PID. >> >> I'm looking forward for your assistance. thx :) >> >> >> >> On Tue, Jun 9, 2009 at 3:47 PM, Niall >> Gallagher<gal...@ya...> >> wrote: >> > >> > Hi, >> > >> > I would need a thread dump and output from netstat to >> determine what is wrong with your application. With regard >> to stress tests I have tested Simple with at least 100 >> million requests using ApacheBench. Also I have tested with >> HttpClient, Faban and my own stress tester, again the tests >> involved millions of requests without any issues. Take a >> look at the following tools which can help grab the >> informataion. >> > >> > For thread dumps: >> > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/test/java/org/simpleframework/http/core/ThreadDumper.java?revision=1448&view=markup >> > >> > For general stats: >> > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/location/java/org/simpleframework/location/ApplicationMonitor.java?revision=1448&view=markup >> > >> > Regards, >> > Niall >> > >> > >> > >> > >> > --- On Tue, 6/9/09, rayhan <sav...@gm...> >> wrote: >> > >> >> From: rayhan <sav...@gm...> >> >> Subject: Re: [Simpleweb-Support] Asynchronous Http >> Service Complete Example >> >> To: "Simple support and user issues" <sim...@li...> >> >> Date: Tuesday, June 9, 2009, 12:51 AM >> >> Thanx for your response. I already >> >> implement the asynchronous model of >> >> HTTP response and it works magic :) >> >> >> >> However, recently did load/stress test my >> application that >> >> uses >> >> simpleframework http listener. I'm using httperf >> load >> >> tester. I set >> >> load test traffic with 500 tps, and the >> application >> >> responded well >> >> initially. >> >> >> >> But after 30 minutes test, the application cannot >> receive >> >> more >> >> traffic. I try to hit one traffic manually using >> telnet, >> >> it's >> >> connected but not responding. I try to count >> established >> >> connection / >> >> file handlers using this command: >> >> >> >> lsof -p 26120 | wc -l >> >> 1663 >> >> >> >> There's 1663 establish connection. Something's >> wrong here >> >> .. >> >> >> >> I'm using both simple 4.1.11 and 4.1.10. >> >> >> >> Then I search mailinglist archive, and found >> similar >> >> problem regarding >> >> file handler. I try to switch back to 4.1.9, and >> it works >> >> well >> >> initially, for an hour collapse again. >> >> >> >> Any advice? Maybe there is something wrong in my >> >> application? FYI, >> >> always closed every response object per request >> >> >> >> On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> >> >> wrote: >> >> > Hi, >> >> > >> >> > Yes its very simple. There are no >> restrictions on how >> >> to process >> >> > requests asynchronously. For example try >> this. >> >> > >> >> > public void handle(final Request req, final >> Response >> >> resp) { >> >> > new Thread(new Runnable() { >> >> > public void run() { >> >> > try { >> >> > PrintStream out = >> >> resp.getPrintStream(); >> >> > resp.set("Content-Type", >> >> "text/html"); >> >> > out.println("Hello World!); >> >> > out.close(); // commits and >> sends >> >> response >> >> > }catch(Exception e) { >> >> > e.printStackTrace(); >> >> > } >> >> > } >> >> > }).start(); >> >> > } >> >> > >> >> > For simple the closure of the Response object >> or the >> >> OutputStream is >> >> > what completes the response. So you can pass >> the >> >> response object to an >> >> > asynchronous thread without any issues. Hope >> this >> >> helps. >> >> > >> >> > Niall >> >> > >> >> > -----Original Message----- >> >> > From: rayhan [mailto:sav...@gm...] >> >> > Sent: 08 June 2009 05:54 >> >> > To: sim...@li... >> >> > Subject: [Simpleweb-Support] Asynchronous >> Http Service >> >> Complete Example >> >> > >> >> > Hello All :) >> >> > >> >> > I recently joined this mailinglist, and I >> curious to >> >> know how to >> >> > correctly asynchronous service using >> simpleframework. >> >> I already the saw >> >> > the tutorial in >> >> > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, >> >> but I >> >> > thinks it's not complete. Does anyone has >> complete >> >> working example on >> >> > how to use it? I need asynchronous services >> badly :) >> >> > >> >> > Thx for your help >> >> > >> >> > -- >> >> > -- # SC -# >> >> > >> >> > >> >> >> ------------------------------------------------------------------------ >> >> > ------ >> >> > OpenSolaris 2009.06 is a cutting edge >> operating system >> >> for enterprises >> >> > looking to deploy the next generation of >> Solaris that >> >> includes the >> >> > latest innovations from Sun and the >> OpenSource >> >> community. Download a >> >> > copy and enjoy capabilities such as >> Networking, >> >> Storage and >> >> > Virtualization. >> >> > Go to: http://p.sf.net/sfu/opensolaris-get >> >> > >> _______________________________________________ >> >> > 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. >> >> > >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > OpenSolaris 2009.06 is a cutting edge >> operating system >> >> for enterprises >> >> > looking to deploy the next generation of >> Solaris that >> >> includes the latest >> >> > innovations from Sun and the OpenSource >> community. >> >> Download a copy and >> >> > enjoy capabilities such as Networking, >> Storage and >> >> Virtualization. >> >> > Go to: http://p.sf.net/sfu/opensolaris-get >> >> > >> _______________________________________________ >> >> > Simpleweb-Support mailing list >> >> > Sim...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> >> > >> >> >> >> >> >> >> >> -- >> >> -- # SC -# >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Crystal Reports - New Free Runtime and 30 Day >> Trial >> >> Check out the new simplified licensing option that >> enables >> >> unlimited >> >> royalty-free distribution of the report engine >> for >> >> externally facing >> >> server and web deployment. >> >> http://p.sf.net/sfu/businessobjects >> >> _______________________________________________ >> >> Simpleweb-Support mailing list >> >> Sim...@li... >> >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> >> >> > >> > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Crystal Reports - New Free Runtime and 30 Day Trial >> > Check out the new simplified licensing option that >> enables unlimited >> > royalty-free distribution of the report engine for >> externally facing >> > server and web deployment. >> > http://p.sf.net/sfu/businessobjects >> > _______________________________________________ >> > Simpleweb-Support mailing list >> > Sim...@li... >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > >> >> >> >> -- >> -- # SC -# >> >> -----Inline Attachment Follows----- >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables >> unlimited >> royalty-free distribution of the report engine for >> externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> -----Inline Attachment Follows----- >> >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > -- -- # SC -# |
From: Niall G. <gal...@ya...> - 2009-06-09 11:09:46
|
Hi, Well CLOSE_WAIT means you are not closing the connections, this is where your problem is. Ensure to close the response or output stream. This can be done with Repsonse.close() or OutputStream.close(). I would bet you are getting RuntimeExceptions that you are not catching, this skips your close() invocations and so you are left with a leak. Also 157 threads? This looks excessive. Niall --- On Tue, 6/9/09, rayhan <sav...@gm...> wrote: > From: rayhan <sav...@gm...> > Subject: Re: [Simpleweb-Support] Asynchronous Http Service Complete Example > To: "Simple support and user issues" <sim...@li...> > Date: Tuesday, June 9, 2009, 4:00 AM > Thx for your reply. > > I've attached ThreadDumper output and ApplicationMonitor > output for > you analysis. Regarding netstat, what information you would > like to > know? For the start, here is general netstat you may want > to know: > > 2584 #> netstat -an | grep 28102 | grep ESTABLISH | wc > -l > 2043 > > 2591 #> netstat -an | grep 28102 | grep CLOSE_WAIT | wc > -l > 1288 > > 2592 #> netstat -an | grep 28102 | grep TIME_WAIT | wc > -l > 0 > > 2589 #> lsof -p 26736 | grep ESTABLISHED | wc -l > 1022 > > > 28102 is my application listening port, and 26736 is my > PID. > > I'm looking forward for your assistance. thx :) > > > > On Tue, Jun 9, 2009 at 3:47 PM, Niall > Gallagher<gal...@ya...> > wrote: > > > > Hi, > > > > I would need a thread dump and output from netstat to > determine what is wrong with your application. With regard > to stress tests I have tested Simple with at least 100 > million requests using ApacheBench. Also I have tested with > HttpClient, Faban and my own stress tester, again the tests > involved millions of requests without any issues. Take a > look at the following tools which can help grab the > informataion. > > > > For thread dumps: > > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/test/java/org/simpleframework/http/core/ThreadDumper.java?revision=1448&view=markup > > > > For general stats: > > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/location/java/org/simpleframework/location/ApplicationMonitor.java?revision=1448&view=markup > > > > Regards, > > Niall > > > > > > > > > > --- On Tue, 6/9/09, rayhan <sav...@gm...> > wrote: > > > >> From: rayhan <sav...@gm...> > >> Subject: Re: [Simpleweb-Support] Asynchronous Http > Service Complete Example > >> To: "Simple support and user issues" <sim...@li...> > >> Date: Tuesday, June 9, 2009, 12:51 AM > >> Thanx for your response. I already > >> implement the asynchronous model of > >> HTTP response and it works magic :) > >> > >> However, recently did load/stress test my > application that > >> uses > >> simpleframework http listener. I'm using httperf > load > >> tester. I set > >> load test traffic with 500 tps, and the > application > >> responded well > >> initially. > >> > >> But after 30 minutes test, the application cannot > receive > >> more > >> traffic. I try to hit one traffic manually using > telnet, > >> it's > >> connected but not responding. I try to count > established > >> connection / > >> file handlers using this command: > >> > >> lsof -p 26120 | wc -l > >> 1663 > >> > >> There's 1663 establish connection. Something's > wrong here > >> .. > >> > >> I'm using both simple 4.1.11 and 4.1.10. > >> > >> Then I search mailinglist archive, and found > similar > >> problem regarding > >> file handler. I try to switch back to 4.1.9, and > it works > >> well > >> initially, for an hour collapse again. > >> > >> Any advice? Maybe there is something wrong in my > >> application? FYI, > >> always closed every response object per request > >> > >> On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> > >> wrote: > >> > Hi, > >> > > >> > Yes its very simple. There are no > restrictions on how > >> to process > >> > requests asynchronously. For example try > this. > >> > > >> > public void handle(final Request req, final > Response > >> resp) { > >> > new Thread(new Runnable() { > >> > public void run() { > >> > try { > >> > PrintStream out = > >> resp.getPrintStream(); > >> > resp.set("Content-Type", > >> "text/html"); > >> > out.println("Hello World!); > >> > out.close(); // commits and > sends > >> response > >> > }catch(Exception e) { > >> > e.printStackTrace(); > >> > } > >> > } > >> > }).start(); > >> > } > >> > > >> > For simple the closure of the Response object > or the > >> OutputStream is > >> > what completes the response. So you can pass > the > >> response object to an > >> > asynchronous thread without any issues. Hope > this > >> helps. > >> > > >> > Niall > >> > > >> > -----Original Message----- > >> > From: rayhan [mailto:sav...@gm...] > >> > Sent: 08 June 2009 05:54 > >> > To: sim...@li... > >> > Subject: [Simpleweb-Support] Asynchronous > Http Service > >> Complete Example > >> > > >> > Hello All :) > >> > > >> > I recently joined this mailinglist, and I > curious to > >> know how to > >> > correctly asynchronous service using > simpleframework. > >> I already the saw > >> > the tutorial in > >> > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, > >> but I > >> > thinks it's not complete. Does anyone has > complete > >> working example on > >> > how to use it? I need asynchronous services > badly :) > >> > > >> > Thx for your help > >> > > >> > -- > >> > -- # SC -# > >> > > >> > > >> > ------------------------------------------------------------------------ > >> > ------ > >> > OpenSolaris 2009.06 is a cutting edge > operating system > >> for enterprises > >> > looking to deploy the next generation of > Solaris that > >> includes the > >> > latest innovations from Sun and the > OpenSource > >> community. Download a > >> > copy and enjoy capabilities such as > Networking, > >> Storage and > >> > Virtualization. > >> > Go to: http://p.sf.net/sfu/opensolaris-get > >> > > _______________________________________________ > >> > 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. > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > OpenSolaris 2009.06 is a cutting edge > operating system > >> for enterprises > >> > looking to deploy the next generation of > Solaris that > >> includes the latest > >> > innovations from Sun and the OpenSource > community. > >> Download a copy and > >> > enjoy capabilities such as Networking, > Storage and > >> Virtualization. > >> > Go to: http://p.sf.net/sfu/opensolaris-get > >> > > _______________________________________________ > >> > Simpleweb-Support mailing list > >> > Sim...@li... > >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> > > >> > >> > >> > >> -- > >> -- # SC -# > >> > >> > ------------------------------------------------------------------------------ > >> Crystal Reports - New Free Runtime and 30 Day > Trial > >> Check out the new simplified licensing option that > enables > >> unlimited > >> royalty-free distribution of the report engine > for > >> externally facing > >> server and web deployment. > >> http://p.sf.net/sfu/businessobjects > >> _______________________________________________ > >> Simpleweb-Support mailing list > >> Sim...@li... > >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> > > > > > > > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that > enables unlimited > > royalty-free distribution of the report engine for > externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > -- > -- # SC -# > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited > royalty-free distribution of the report engine for > externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: rayhan <sav...@gm...> - 2009-06-09 11:00:11
|
Thx for your reply. I've attached ThreadDumper output and ApplicationMonitor output for you analysis. Regarding netstat, what information you would like to know? For the start, here is general netstat you may want to know: 2584 #> netstat -an | grep 28102 | grep ESTABLISH | wc -l 2043 2591 #> netstat -an | grep 28102 | grep CLOSE_WAIT | wc -l 1288 2592 #> netstat -an | grep 28102 | grep TIME_WAIT | wc -l 0 2589 #> lsof -p 26736 | grep ESTABLISHED | wc -l 1022 28102 is my application listening port, and 26736 is my PID. I'm looking forward for your assistance. thx :) On Tue, Jun 9, 2009 at 3:47 PM, Niall Gallagher<gal...@ya...> wrote: > > Hi, > > I would need a thread dump and output from netstat to determine what is wrong with your application. With regard to stress tests I have tested Simple with at least 100 million requests using ApacheBench. Also I have tested with HttpClient, Faban and my own stress tester, again the tests involved millions of requests without any issues. Take a look at the following tools which can help grab the informataion. > > For thread dumps: > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/test/java/org/simpleframework/http/core/ThreadDumper.java?revision=1448&view=markup > > For general stats: > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/location/java/org/simpleframework/location/ApplicationMonitor.java?revision=1448&view=markup > > Regards, > Niall > > > > > --- On Tue, 6/9/09, rayhan <sav...@gm...> wrote: > >> From: rayhan <sav...@gm...> >> Subject: Re: [Simpleweb-Support] Asynchronous Http Service Complete Example >> To: "Simple support and user issues" <sim...@li...> >> Date: Tuesday, June 9, 2009, 12:51 AM >> Thanx for your response. I already >> implement the asynchronous model of >> HTTP response and it works magic :) >> >> However, recently did load/stress test my application that >> uses >> simpleframework http listener. I'm using httperf load >> tester. I set >> load test traffic with 500 tps, and the application >> responded well >> initially. >> >> But after 30 minutes test, the application cannot receive >> more >> traffic. I try to hit one traffic manually using telnet, >> it's >> connected but not responding. I try to count established >> connection / >> file handlers using this command: >> >> lsof -p 26120 | wc -l >> 1663 >> >> There's 1663 establish connection. Something's wrong here >> .. >> >> I'm using both simple 4.1.11 and 4.1.10. >> >> Then I search mailinglist archive, and found similar >> problem regarding >> file handler. I try to switch back to 4.1.9, and it works >> well >> initially, for an hour collapse again. >> >> Any advice? Maybe there is something wrong in my >> application? FYI, >> always closed every response object per request >> >> On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> >> wrote: >> > Hi, >> > >> > Yes its very simple. There are no restrictions on how >> to process >> > requests asynchronously. For example try this. >> > >> > public void handle(final Request req, final Response >> resp) { >> > new Thread(new Runnable() { >> > public void run() { >> > try { >> > PrintStream out = >> resp.getPrintStream(); >> > resp.set("Content-Type", >> "text/html"); >> > out.println("Hello World!); >> > out.close(); // commits and sends >> response >> > }catch(Exception e) { >> > e.printStackTrace(); >> > } >> > } >> > }).start(); >> > } >> > >> > For simple the closure of the Response object or the >> OutputStream is >> > what completes the response. So you can pass the >> response object to an >> > asynchronous thread without any issues. Hope this >> helps. >> > >> > Niall >> > >> > -----Original Message----- >> > From: rayhan [mailto:sav...@gm...] >> > Sent: 08 June 2009 05:54 >> > To: sim...@li... >> > Subject: [Simpleweb-Support] Asynchronous Http Service >> Complete Example >> > >> > Hello All :) >> > >> > I recently joined this mailinglist, and I curious to >> know how to >> > correctly asynchronous service using simpleframework. >> I already the saw >> > the tutorial in >> > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, >> but I >> > thinks it's not complete. Does anyone has complete >> working example on >> > how to use it? I need asynchronous services badly :) >> > >> > Thx for your help >> > >> > -- >> > -- # SC -# >> > >> > >> ------------------------------------------------------------------------ >> > ------ >> > OpenSolaris 2009.06 is a cutting edge operating system >> for enterprises >> > looking to deploy the next generation of Solaris that >> includes the >> > latest innovations from Sun and the OpenSource >> community. Download a >> > copy and enjoy capabilities such as Networking, >> Storage and >> > Virtualization. >> > Go to: http://p.sf.net/sfu/opensolaris-get >> > _______________________________________________ >> > 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. >> > >> > >> ------------------------------------------------------------------------------ >> > OpenSolaris 2009.06 is a cutting edge operating system >> for enterprises >> > looking to deploy the next generation of Solaris that >> includes the latest >> > innovations from Sun and the OpenSource community. >> Download a copy and >> > enjoy capabilities such as Networking, Storage and >> Virtualization. >> > Go to: http://p.sf.net/sfu/opensolaris-get >> > _______________________________________________ >> > Simpleweb-Support mailing list >> > Sim...@li... >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > >> >> >> >> -- >> -- # SC -# >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables >> unlimited >> royalty-free distribution of the report engine for >> externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > -- -- # SC -# |
From: rayhan <sav...@gm...> - 2009-06-09 10:55:58
|
Thx for your reply. I've attached ThreadDumper output and ApplicationMonitor output for you analysis. Regarding netstat, what information you would like to know? For the start, here is general netstat you may want to know: 2584 #> netstat -an | grep 28102 | grep ESTABLISH | wc -l 2043 2591 #> netstat -an | grep 28102 | grep CLOSE_WAIT | wc -l 1288 2592 #> netstat -an | grep 28102 | grep TIME_WAIT | wc -l 0 2589 #> lsof -p 26736 | grep ESTABLISHED | wc -l 1022 28102 is my application listening port, and 26736 is my PID. I'm looking forward for your assistance. thx :) On Tue, Jun 9, 2009 at 3:47 PM, Niall Gallagher<gal...@ya...> wrote: > > Hi, > > I would need a thread dump and output from netstat to determine what is wrong with your application. With regard to stress tests I have tested Simple with at least 100 million requests using ApacheBench. Also I have tested with HttpClient, Faban and my own stress tester, again the tests involved millions of requests without any issues. Take a look at the following tools which can help grab the informataion. > > For thread dumps: > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/test/java/org/simpleframework/http/core/ThreadDumper.java?revision=1448&view=markup > > For general stats: > http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/location/java/org/simpleframework/location/ApplicationMonitor.java?revision=1448&view=markup > > Regards, > Niall > > > > > --- On Tue, 6/9/09, rayhan <sav...@gm...> wrote: > >> From: rayhan <sav...@gm...> >> Subject: Re: [Simpleweb-Support] Asynchronous Http Service Complete Example >> To: "Simple support and user issues" <sim...@li...> >> Date: Tuesday, June 9, 2009, 12:51 AM >> Thanx for your response. I already >> implement the asynchronous model of >> HTTP response and it works magic :) >> >> However, recently did load/stress test my application that >> uses >> simpleframework http listener. I'm using httperf load >> tester. I set >> load test traffic with 500 tps, and the application >> responded well >> initially. >> >> But after 30 minutes test, the application cannot receive >> more >> traffic. I try to hit one traffic manually using telnet, >> it's >> connected but not responding. I try to count established >> connection / >> file handlers using this command: >> >> lsof -p 26120 | wc -l >> 1663 >> >> There's 1663 establish connection. Something's wrong here >> .. >> >> I'm using both simple 4.1.11 and 4.1.10. >> >> Then I search mailinglist archive, and found similar >> problem regarding >> file handler. I try to switch back to 4.1.9, and it works >> well >> initially, for an hour collapse again. >> >> Any advice? Maybe there is something wrong in my >> application? FYI, >> always closed every response object per request >> >> On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> >> wrote: >> > Hi, >> > >> > Yes its very simple. There are no restrictions on how >> to process >> > requests asynchronously. For example try this. >> > >> > public void handle(final Request req, final Response >> resp) { >> > new Thread(new Runnable() { >> > public void run() { >> > try { >> > PrintStream out = >> resp.getPrintStream(); >> > resp.set("Content-Type", >> "text/html"); >> > out.println("Hello World!); >> > out.close(); // commits and sends >> response >> > }catch(Exception e) { >> > e.printStackTrace(); >> > } >> > } >> > }).start(); >> > } >> > >> > For simple the closure of the Response object or the >> OutputStream is >> > what completes the response. So you can pass the >> response object to an >> > asynchronous thread without any issues. Hope this >> helps. >> > >> > Niall >> > >> > -----Original Message----- >> > From: rayhan [mailto:sav...@gm...] >> > Sent: 08 June 2009 05:54 >> > To: sim...@li... >> > Subject: [Simpleweb-Support] Asynchronous Http Service >> Complete Example >> > >> > Hello All :) >> > >> > I recently joined this mailinglist, and I curious to >> know how to >> > correctly asynchronous service using simpleframework. >> I already the saw >> > the tutorial in >> > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, >> but I >> > thinks it's not complete. Does anyone has complete >> working example on >> > how to use it? I need asynchronous services badly :) >> > >> > Thx for your help >> > >> > -- >> > -- # SC -# >> > >> > >> ------------------------------------------------------------------------ >> > ------ >> > OpenSolaris 2009.06 is a cutting edge operating system >> for enterprises >> > looking to deploy the next generation of Solaris that >> includes the >> > latest innovations from Sun and the OpenSource >> community. Download a >> > copy and enjoy capabilities such as Networking, >> Storage and >> > Virtualization. >> > Go to: http://p.sf.net/sfu/opensolaris-get >> > _______________________________________________ >> > 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. >> > >> > >> ------------------------------------------------------------------------------ >> > OpenSolaris 2009.06 is a cutting edge operating system >> for enterprises >> > looking to deploy the next generation of Solaris that >> includes the latest >> > innovations from Sun and the OpenSource community. >> Download a copy and >> > enjoy capabilities such as Networking, Storage and >> Virtualization. >> > Go to: http://p.sf.net/sfu/opensolaris-get >> > _______________________________________________ >> > Simpleweb-Support mailing list >> > Sim...@li... >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > >> >> >> >> -- >> -- # SC -# >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables >> unlimited >> royalty-free distribution of the report engine for >> externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > -- -- # SC -# |
From: Niall G. <gal...@ya...> - 2009-06-09 08:47:43
|
Hi, I would need a thread dump and output from netstat to determine what is wrong with your application. With regard to stress tests I have tested Simple with at least 100 million requests using ApacheBench. Also I have tested with HttpClient, Faban and my own stress tester, again the tests involved millions of requests without any issues. Take a look at the following tools which can help grab the informataion. For thread dumps: http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/test/java/org/simpleframework/http/core/ThreadDumper.java?revision=1448&view=markup For general stats: http://svn.sourceforge.net/viewvc/simpleweb/trunk/src/location/java/org/simpleframework/location/ApplicationMonitor.java?revision=1448&view=markup Regards, Niall --- On Tue, 6/9/09, rayhan <sav...@gm...> wrote: > From: rayhan <sav...@gm...> > Subject: Re: [Simpleweb-Support] Asynchronous Http Service Complete Example > To: "Simple support and user issues" <sim...@li...> > Date: Tuesday, June 9, 2009, 12:51 AM > Thanx for your response. I already > implement the asynchronous model of > HTTP response and it works magic :) > > However, recently did load/stress test my application that > uses > simpleframework http listener. I'm using httperf load > tester. I set > load test traffic with 500 tps, and the application > responded well > initially. > > But after 30 minutes test, the application cannot receive > more > traffic. I try to hit one traffic manually using telnet, > it's > connected but not responding. I try to count established > connection / > file handlers using this command: > > lsof -p 26120 | wc -l > 1663 > > There's 1663 establish connection. Something's wrong here > .. > > I'm using both simple 4.1.11 and 4.1.10. > > Then I search mailinglist archive, and found similar > problem regarding > file handler. I try to switch back to 4.1.9, and it works > well > initially, for an hour collapse again. > > Any advice? Maybe there is something wrong in my > application? FYI, > always closed every response object per request > > On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> > wrote: > > Hi, > > > > Yes its very simple. There are no restrictions on how > to process > > requests asynchronously. For example try this. > > > > public void handle(final Request req, final Response > resp) { > > new Thread(new Runnable() { > > public void run() { > > try { > > PrintStream out = > resp.getPrintStream(); > > resp.set("Content-Type", > "text/html"); > > out.println("Hello World!); > > out.close(); // commits and sends > response > > }catch(Exception e) { > > e.printStackTrace(); > > } > > } > > }).start(); > > } > > > > For simple the closure of the Response object or the > OutputStream is > > what completes the response. So you can pass the > response object to an > > asynchronous thread without any issues. Hope this > helps. > > > > Niall > > > > -----Original Message----- > > From: rayhan [mailto:sav...@gm...] > > Sent: 08 June 2009 05:54 > > To: sim...@li... > > Subject: [Simpleweb-Support] Asynchronous Http Service > Complete Example > > > > Hello All :) > > > > I recently joined this mailinglist, and I curious to > know how to > > correctly asynchronous service using simpleframework. > I already the saw > > the tutorial in > > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, > but I > > thinks it's not complete. Does anyone has complete > working example on > > how to use it? I need asynchronous services badly :) > > > > Thx for your help > > > > -- > > -- # SC -# > > > > > ------------------------------------------------------------------------ > > ------ > > OpenSolaris 2009.06 is a cutting edge operating system > for enterprises > > looking to deploy the next generation of Solaris that > includes the > > latest innovations from Sun and the OpenSource > community. Download a > > copy and enjoy capabilities such as Networking, > Storage and > > Virtualization. > > Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > 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. > > > > > ------------------------------------------------------------------------------ > > OpenSolaris 2009.06 is a cutting edge operating system > for enterprises > > looking to deploy the next generation of Solaris that > includes the latest > > innovations from Sun and the OpenSource community. > Download a copy and > > enjoy capabilities such as Networking, Storage and > Virtualization. > > Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > -- > -- # SC -# > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited > royalty-free distribution of the report engine for > externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: rayhan <sav...@gm...> - 2009-06-09 07:51:40
|
Thanx for your response. I already implement the asynchronous model of HTTP response and it works magic :) However, recently did load/stress test my application that uses simpleframework http listener. I'm using httperf load tester. I set load test traffic with 500 tps, and the application responded well initially. But after 30 minutes test, the application cannot receive more traffic. I try to hit one traffic manually using telnet, it's connected but not responding. I try to count established connection / file handlers using this command: lsof -p 26120 | wc -l 1663 There's 1663 establish connection. Something's wrong here .. I'm using both simple 4.1.11 and 4.1.10. Then I search mailinglist archive, and found similar problem regarding file handler. I try to switch back to 4.1.9, and it works well initially, for an hour collapse again. Any advice? Maybe there is something wrong in my application? FYI, always closed every response object per request On Mon, Jun 8, 2009 at 3:41 PM, <Nia...@ub...> wrote: > Hi, > > Yes its very simple. There are no restrictions on how to process > requests asynchronously. For example try this. > > public void handle(final Request req, final Response resp) { > new Thread(new Runnable() { > public void run() { > try { > PrintStream out = resp.getPrintStream(); > resp.set("Content-Type", "text/html"); > out.println("Hello World!); > out.close(); // commits and sends response > }catch(Exception e) { > e.printStackTrace(); > } > } > }).start(); > } > > For simple the closure of the Response object or the OutputStream is > what completes the response. So you can pass the response object to an > asynchronous thread without any issues. Hope this helps. > > Niall > > -----Original Message----- > From: rayhan [mailto:sav...@gm...] > Sent: 08 June 2009 05:54 > To: sim...@li... > Subject: [Simpleweb-Support] Asynchronous Http Service Complete Example > > Hello All :) > > I recently joined this mailinglist, and I curious to know how to > correctly asynchronous service using simpleframework. I already the saw > the tutorial in > http://www.simpleframework.org/doc/tutorial/tutorial.php#async, but I > thinks it's not complete. Does anyone has complete working example on > how to use it? I need asynchronous services badly :) > > Thx for your help > > -- > -- # SC -# > > ------------------------------------------------------------------------ > ------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the > latest innovations from Sun and the OpenSource community. Download a > copy and enjoy capabilities such as Networking, Storage and > Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > 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. > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > -- -- # SC -# |
From: <Nia...@ub...> - 2009-06-08 08:41:47
|
Hi, Yes its very simple. There are no restrictions on how to process requests asynchronously. For example try this. public void handle(final Request req, final Response resp) { new Thread(new Runnable() { public void run() { try { PrintStream out = resp.getPrintStream(); resp.set("Content-Type", "text/html"); out.println("Hello World!); out.close(); // commits and sends response }catch(Exception e) { e.printStackTrace(); } } }).start(); } For simple the closure of the Response object or the OutputStream is what completes the response. So you can pass the response object to an asynchronous thread without any issues. Hope this helps. Niall -----Original Message----- From: rayhan [mailto:sav...@gm...] Sent: 08 June 2009 05:54 To: sim...@li... Subject: [Simpleweb-Support] Asynchronous Http Service Complete Example Hello All :) I recently joined this mailinglist, and I curious to know how to correctly asynchronous service using simpleframework. I already the saw the tutorial in http://www.simpleframework.org/doc/tutorial/tutorial.php#async, but I thinks it's not complete. Does anyone has complete working example on how to use it? I need asynchronous services badly :) Thx for your help -- -- # SC -# ------------------------------------------------------------------------ ------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ 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: rayhan <sav...@gm...> - 2009-06-08 04:54:01
|
Hello All :) I recently joined this mailinglist, and I curious to know how to correctly asynchronous service using simpleframework. I already the saw the tutorial in http://www.simpleframework.org/doc/tutorial/tutorial.php#async, but I thinks it's not complete. Does anyone has complete working example on how to use it? I need asynchronous services badly :) Thx for your help -- -- # SC -# |
From: <Nia...@ub...> - 2009-05-13 13:21:41
|
Hi, Yes, take a look at Request.getTarget() this is the original HTTP request URI, which is unmodified. You can also access the multiple variables in the order thet were sent using Query.getAll(). http://www.simpleframework.org/doc/javadoc/org/simpleframework/http/Requ estLine.html#getTarget() http://www.simpleframework.org/doc/javadoc/org/simpleframework/http/Quer y.html#getAll(java.lang.Object) Regards, Niall -----Original Message----- From: Jan Varwig [mailto:ja...@va...] Sent: 13 May 2009 13:25 To: sim...@li... Subject: [Simpleweb-Support] Access to the querystring Hi, I have a quick question. Is there ANY way to access the querystring as submitted by the client? I'm using the Jack Framework which in turn uses SimpleHTTP. The problem is that Simple swallows multiple values assigned to the same query variable AND doesn't keep track of the order of the query variables (which is ESSENTIAL for what I'm doing) when accessed the way Jack currently uses: String(request.getQuery().toString()); I'm trying to write a patch that fetches the querystring in a way that keeps multiple variables and their order. I didn't find anything helpful in the Javadoc, I hope someone can give me a hint. kind regards Jan Varwig ------------------------------------------------------------------------ ------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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: Jan V. <ja...@va...> - 2009-05-13 13:00:45
|
Hi, I have a quick question. Is there ANY way to access the querystring as submitted by the client? I'm using the Jack Framework which in turn uses SimpleHTTP. The problem is that Simple swallows multiple values assigned to the same query variable AND doesn't keep track of the order of the query variables (which is ESSENTIAL for what I'm doing) when accessed the way Jack currently uses: String(request.getQuery().toString()); I'm trying to write a patch that fetches the querystring in a way that keeps multiple variables and their order. I didn't find anything helpful in the Javadoc, I hope someone can give me a hint. kind regards Jan Varwig |
From: <Nia...@ub...> - 2009-05-05 08:33:10
|
Hi, Simple is LGPL (not like GPL because it permits closed source projects and commercial use), but to be honest its developed by me alone. Not through any business activity. So don't worry about licence issues just assume you can use it as you please for personal or business use. Niall -----Original Message----- From: Alex Moore [mailto:ale...@gm...] Sent: 05 May 2009 00:42 To: sim...@li... Subject: [Simpleweb-Support] SimpleWeb: Jersey support and GPL Hi All, First off: awesome project, thanks for putting this out there. Having played with this after discovering it though theserverside (async web response), have been very impressed indeed. I have a question regarding the Jersey integration: as a provider, does this make SimpleWeb GPL by default if using it? Cheers Alex ------------------------------------------------------------------------ ------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ 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: Alex M. <ale...@gm...> - 2009-05-04 23:42:04
|
Hi All, First off: awesome project, thanks for putting this out there. Having played with this after discovering it though theserverside (async web response), have been very impressed indeed. I have a question regarding the Jersey integration: as a provider, does this make SimpleWeb GPL by default if using it? Cheers Alex |