2009/11/20 monty chen <montyc...@qq.com> > David Pollk, thanks you reply! > > Let us talk about tomcat or jetty Which web container is recommended > to use to deploy the Lift app. > > I remember your reply of Derek Chen-Becker: > > On 5月5日, 上午5时59分, David Pollak <feeder.of.the.be...@gmail.com> wrote: > > Derek, > > Please note that about half of the requests failed in Jetty. Jetty does > not > > seem to be explicitly closing the NIO sockets leading to an out of IO > > descriptor problem... that's why I used Tomcat. > > > > Thanks, > > > > David > > > > But at now why you recommend Nginx + Jetty ? >
The particular version of Jetty I used for the test had this problem. The problem manifest during significant churn of http requests (> 2K serviced per second). This is different from the long polling scenario. Further, if you're serving 2K/second sustained, you are in the top 1% of all web sites... you're in Twitter/LinkedIn territory. Jetty is the best option for Lift Comet (long polling) apps. > > > > On Mon, May 4, 2009 at 2:47 PM, Derek Chen-Becker <dchenbec...@gmail.com > >wrote: > > > > > > > > > Just to throw in another data point, I ran the tests on my AMD Phenom > X2 > > > 720 (3 cores, 6GB of RAM): > > > > > I generated the archetype exactly as you have it here. > > > > > Ran "mvn -Drun.mode=production -Djetty.port=9090 jetty:run" > > > > > Output from Apache Bench: > > > > > $ ab -c 10 -n 20000http://192.168.2.254:9090/user_mgt/login > > > This is ApacheBench, Version 2.3 <$Revision: 655654 $> > > > Copyright 1996 Adam Twiss, Zeus Technology Ltd, > http://www.zeustech.net/ > > > Licensed to The Apache Software Foundation,http://www.apache.org/ > > > > > Benchmarking 192.168.2.254 (be patient) > > > Completed 2000 requests > > > Completed 4000 requests > > > Completed 6000 requests > > > Completed 8000 requests > > > Completed 10000 requests > > > Completed 12000 requests > > > Completed 14000 requests > > > Completed 16000 requests > > > Completed 18000 requests > > > Completed 20000 requests > > > Finished 20000 requests > > > > > Server Software: Jetty(6.1.16) > > > Server Hostname: 192.168.2.254 > > > Server Port: 9090 > > > > > Document Path: /user_mgt/login > > > Document Length: 3635 bytes > > > > > Concurrency Level: 10 > > > Time taken for tests: 37.110 seconds > > > Complete requests: 20000 > > > Failed requests: 10191 > > > (Connect: 0, Receive: 0, Length: 10191, Exceptions: 0) > > > Write errors: 0 > > > Total transferred: 79276096 bytes > > > HTML transferred: 72626584 bytes > > > Requests per second: 538.94 [#/sec] (mean) > > > Time per request: 18.555 [ms] (mean) > > -- > > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=. > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=.