How could I accelerate the performance for jruby on rails in dev mode?

Dear all,

I am currently using jruby on rails for a e-commerce project. When I
deploy
the project with warbler, put it in a tomcat, the performance is pretty
good.
But if we launch it with dev mode, using jruby script/console, the app
is
huge slow.
I am wondering if there is a way to accelerate the dev mode server of
jruby
on rails?

I am using jruby 1.5.1, rails 2.3.8.
Thanks.

Best wishes,
Stanley Xu

I am wondering if there is a way to accelerate the dev mode server of
jruby
on rails?

might help you.

I assume you mean the load time?

I put my answer on the bottom (use faster_require gem).
GL!
-r

Dear Roger,

I didn’t mean the server start up time. I mean the time for a request
from
the web. I am running spree(http://spreecommerce.com) on rails 2.3.8
with
jruby. When the server just start up, the speed is acceptable, it takes
1-2
second to handle a request. But when I use that for development and
debug
for a while, it becomes slowed and slower, sometimes it will take about
30-40 seconds to handle a request.

Is that because in dev mode, it will reload the whole rails framework so
it
will be very slow?

Thanks.

Best wishes,
Stanley Xu

You might want to see how much memory your process is using. Maybe you
are
getting close to your max heap size and your JVM is doing lots of work
trying to free up memory. Check out https://visualvm.dev.java.net/ for
some
really easy to use profiling of your JVM.

Joe