title: Error: Your application used more memory than the safety cap of 500M
body: <p>My question similar to the one asked <a href="https://stackoverflow.com/questions/1758374/error-your-application-used-more-memory-than-the-safety-cap-of-500m-specify-j">here</a>; however, I tried the solutions proposed and I don't know what is the problem.</p>
  
  <p>One of the solution was to use the following command</p>
  
  <pre><code>server_start_command -J-Xm900m
  </code></pre>
  
  <p>when I tried it I got command not found and I searched how to get it but couldn't find it!</p>
  
  <p>I tried also this solution</p>
  
  <pre><code>jruby -J-Xm900m abc.rb
  </code></pre>
  
  <p>but I keep getting the same error,</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 should I do in this case?</p>