[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-06 Thread Daniel Guryca
OK thanks for a hint ... so where can I set session lifetime in Lift ? Setting session lifetime to 2-3 seconds should make it rock. Daniel On Wed, May 6, 2009 at 12:46 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, May 5, 2009 at 3:23 PM, Daniel Guryca dun...@gmail.com wrote:

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-06 Thread David Pollak
On Wed, May 6, 2009 at 12:11 AM, Daniel Guryca dun...@gmail.com wrote: OK thanks for a hint ... so where can I set session lifetime in Lift ? Setting session lifetime to 2-3 seconds should make it rock. Actually, this is done in your web container, not in Lift. However, most web containers

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-05 Thread Daniel Guryca
Thank you for your benchmarking description. I have just tested it too. My results are something around 330 req/s which is superior to previous results. Great ! The only problem I have encountered is that after something around 2000 requests the whole application stalls and locks and do not

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-05 Thread David Pollak
On Tue, May 5, 2009 at 3:23 PM, Daniel Guryca dun...@gmail.com wrote: Thank you for your benchmarking description. I have just tested it too. My results are something around 330 req/s which is superior to previous results. Great ! The only problem I have encountered is that after

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread Daniel Guryca
Thank you Dave. I'll be waiting for your complete benchmark ... Daniel On Mon, May 4, 2009 at 5:23 AM, David Pollak feeder.of.the.be...@gmail.comwrote: On Sun, May 3, 2009 at 4:11 PM, Daniel Guryca dun...@gmail.com wrote: I have just tried mvn -Drun.mode=production jetty:run ... but sadly

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread marius d.
Dave if you're doing benchmarks can you try using the template caching mechanism ? .. and try to see the differences ? Br's, Marius On May 4, 6:23 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 3, 2009 at 4:11 PM, Daniel Guryca dun...@gmail.com wrote: I have just tried mvn

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
Daniel, I did a little measurement of Lift and did some tuning. On my Core 920 machine with 12GB of RAM running Ubuntu 9.04 and the JDK 1.6.0_13 in 64 bit mode with Tomcat 6.0.18 (I ran into some bugs in Jetty while measuring with ab). My baseline running (both locally and across the network)

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread Derek Chen-Becker
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 2

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
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 On Mon, May 4, 2009 at 2:47 PM, Derek Chen-Becker dchenbec...@gmail.comwrote:

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread Derek Chen-Becker
Yeah, I just noticed that on my jetty console. Bummer. On Mon, May 4, 2009 at 3:59 PM, David Pollak feeder.of.the.be...@gmail.comwrote: 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

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
On my AMD box (AMD Athlon(tm) 64 X2 Dual Core Processor 3800+) with about 800MB of RAM (part of the RAM is used for the video controller), I started Tomcat with: export JAVA_OPTS=-Drun.mode=production -server -Xmx650M and here are the results: d...@testomatic:~/apache-tomcat-6.0.18$ ab -c 10

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread David Pollak
Are you running Lift in production or development mode? I typically see 300 pages/second to 800 pages/second when I do benchmarks on dual core opteron machines. I'll look into this, but you should be seeing north of 300 pages per second with simple pages in Lift. On Sat, May 2, 2009 at 1:32 PM,

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread Daniel Guryca
Anybody ? I have spent more then month testing various frameworks. Just found lift and spent the whole Friday by learning scala. I liked it. Time is not my friend ... I just have to choose the right language + framework combo for my 3 other colleges and our coming project. Any comment is

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread Daniel Guryca
Hi David, Thank you for your reply. How and where can I set production vs development mode in lift ? Thank you again. Daniel On Sun, May 3, 2009 at 3:12 PM, David Pollak feeder.of.the.be...@gmail.comwrote: Are you running Lift in production or development mode? I typically see 300

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread David Pollak
On Sun, May 3, 2009 at 6:18 AM, Daniel Guryca dun...@gmail.com wrote: Hi David, Thank you for your reply. How and where can I set production vs development mode in lift ? Set the run.mode system property to production I do that with -Drun.mode=production when I start Jetty, but you may do

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread Bryan.
Hi Daniel, You can pass the following to mvn: -Drun.mode=production. --Bryan On May 3, 9:18 am, Daniel Guryca dun...@gmail.com wrote: Hi David, Thank you for your reply. How and where can I set production vs development mode in lift ? Thank you again. Daniel On Sun, May 3, 2009 at

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread Daniel Guryca
Hey .. I'm not saying that you anwered my questione slowly ! I'm very impressed that you are dealing with mailing list even on your free time on weekend ! I just wanted to clear up why I'm in hurry. regards Daniel On Sun, May 3, 2009 at 3:34 PM, David Pollak feeder.of.the.be...@gmail.comwrote:

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread David Pollak
On Sun, May 3, 2009 at 4:11 PM, Daniel Guryca dun...@gmail.com wrote: I have just tried mvn -Drun.mode=production jetty:run ... but sadly still getting same performance. I ran a simple test (the same command line as you) on my 2.67 Ghz Core i7 machine and saw 600 pages per second. Granted,