title: JRuby Error: Your application used more memory than the safety cap of 500m
body: <p>I was running a JRuby <code>something.rb</code> script and suddenly it throws this: </p>
  
  <pre><code>Error: Your application used more memory than the safety cap of 500m.
  Specify -J-Xmx####m to increase it (#### = cap size in MB).
  Specify -w for full OutOfMemoryError stack trace
  </code></pre>
  
  <p>What caused this and how do I fix it?</p>