Tomcat CPU spikes in Jruby web app


Prachi Tripathi


We have a Jruby on rails application deployed in tomcat. Our Jruby
version is 1.5.1 and tomcat version is 6.0.26. However with a simple app
also the app server CPU is showing 100% utilization for a considerable
amount of time.

We also eliminated db queries , just to eliminate the db layer as a
susppect, however still there was considerable CPU utilization on the
app server. Our database is PostgreSQL version 1.8.4

Anyone has any ideas what could be happenning?

Charles Oliver Nutter

There's actually a bug similar to this that should be fixed in JRuby
1.5.5 and the upcoming 1.6. Can you try to update and see if the
problem improves?

Prachi Tripathi


Thanks for ur prompt reply.

Jruby 1.6 is still in dev right? When will it be released for production
use? Our app has been deployed in production. So this is a production
issue. So what do u recommend, upgrading to 1.5.5?

Charles Oliver Nutter

Yes, I would recommend upgrading to 1.5.6. If you are using OpenSSL,
make sure you're on the latest jruby-openssl gem as well.

Some of the issues you mention have been fixed on the 1.5 branch, and
are in 1.5.6. As for JRuby 1.6, we hope to have at least RCs out this
month and a final version soon after. If you have cycles to test a
development build of 1.6, you can go to
to get one.

- Charlie

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Latest member

Latest Threads