Skip to content

Improving Memory Consumption

francois edited this page Dec 13, 2011 · 1 revision

Some tips to control how much memory JRuby will consume:

  • Use a 32-bit VM if you want to lower your memory consumption
  • Use the client VM if possible
  • Use both -J-Djruby.memory.max=NNNm and -J-XmxNNNm to set the maximum heap size
  • Use a different GC, one that consumes less memory
Clone this wiki locally