Forum: JRuby memory on heroku

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E0f4c0b8f9684b1687c945c09e775357?d=identicon&s=25 John B. (john_b)
on 2014-01-30 02:10
(Received via mailing list)
on new JRuby apps heroku starts with -Xmx384m. I've found that this
always results in R14 (out of memory) errors. I've stepped it down bit
bit and now am on 256 which I think will work.

Here's my memory use for the last 24 hours

Note that physical memory use sometimes jumps way up and stays there.

1. Am I correct in thinking that this doesn't have to do with my app's
behavior and all JVM/JRuby instances will use almost the same physical
memory given the same config?
2. Why does physical ram usage change so dramatically?
3. Does my memory usage generally look normal?
4. Does anyone else have anecdotal info to share on what memory settings


  -Xms256m -Xmx256m -Xss512k -XX:+UseCompressedOops

This topic is locked and can not be replied to.