Daniel's Stuff

I write code

JRuby, Rails and Development mode

Well, that was fun…  I spent quite a bit of time today beating my head against a “memory leak” only to remember that JRuby + Rails + Development mode = very leaky.  Switch to production mode and the problem goes away.

A simple little Rails app with one controller and one model is all that is needed to exercise the problem.  Run rails in development mode, and hit it with requests, memory usage soon skyrockets and the app starts to fall over.  Switch to production mode and the same app runs really nicely 🙂

1 comment for “JRuby, Rails and Development mode

  1. Dad
    May 8, 2011 at 3:52 am

    Hmmmmm..
    It sounds like something is broken in the development system. Finding things like that can be hard, but is satisfying when you do.
    Dad.

Leave a Reply

Your email address will not be published. Required fields are marked *