5 ms·
Hold on, my rails processes take 80 megs. Am I doing something wrong?
by chrismealy 15y ago
Hold on, my rails processes take 80 megs. Am I doing something wrong?
- jshen 15y agoOn the JVM it will take over 300MB with JRuby. A simple 'hello world' servlet on the JVM takes over 100MB (once you hit it with a little traffic).
- headius 15y agoUntrue. JRuby can run an app in under 200 MB easily, and close to 100 MB if tuned right.
- jshen 15y agoI didn't spend a whole lot of time trying to tune it, but I used a few of the standard options. Trinidad, kirk, etc. I was using a real world app, not a hello world, so there were a number of gems and such outside of vanilla rails. Edit: This ia a real rails app, so it's a bit of a tangent from my post, but I'm looking at it right now. I spun it up with trinidad, dev mode, and requested the home page. It used over 600MB. It's an admittedly heavy homepage, asset wise, but it will run out of heap if I set the max heap any lower than 500MB. Edit 2: let me try it with MRI Edit 3: MRI took about 225MB, about half the memory. In this case JRuby is clearly better because we run it in threadsafe mode.