rails using jruby 1.5 - slow!!
Posted
by gucki
on Stack Overflow
See other posts from Stack Overflow
or by gucki
Published on 2010-04-30T15:24:47Z
Indexed on
2010/04/30
15:27 UTC
Read the original article
Hit count: 417
Hi!
I'm currently using passenger with ree 1.8.7 in production for a rails 2.3.5 project using postgresql as a database.
ab -n 10000 -c 100: 285.69 [#/sec] (mean)
I read jruby should be the fastest solution, so I installed jruby-1.5.0.rc2 together with jdbc postgres adapter and glassfish. As the performance is really poor, I also started running my application using "jruby --server -J-Druby.jit.threshold=0 script/server -e production". Anyway, I only get
ab -n 10000 -c 100: 43.88 [#/sec] (mean)
Thread_safe! is activated in my rails config. Java seems to use all cores, cpu usage is around 350% (top).
ruby -v: jruby 1.5.0.RC2 (ruby 1.8.7 patchlevel 249) (2010-04-28 7c245f3) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_16) [amd64-java]
I wonder what I'm doing wrong and how to get better performancre with jruby than with ree?
Thanks, Corin
© Stack Overflow or respective owner