title: Rails Memory Error R14 on Heroku (blank screen with reload??)
body: <p>Using: Rails 3.0.3. Webhost: Heroku.com. 2 dynos &amp; 0 worker.</p>
  
  <p>I am a bit of a beginner using Rails and just released my first project. The users are experiencing intermittent problems that, according to the users, are "I get a blank screen with a message that the page needs to reload". Unfortunately I cannot get it better explained than that (one way-communication channel from the users).</p>
  
  <p>I also get this error in the logs:</p>
  
  <pre><code>2011-11-09T19:00:12+00:00 heroku[web.1]: Process running mem=598M(116.8%)
  2011-11-09T19:00:12+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
  </code></pre>
  
  <p>which seems pretty straightforward.</p>
  
  <p>I have about 4 000 visitors a day and about 10 000 page views.</p>
  
  <p><strong>Edit:</strong> I also have New Relic and Exception notifier installed. I get a lot of "Execution expired" problems.</p>
  
  <p>What I would like to know now is:</p>
  
  <ul>
  <li>How can I find these intermittent errors (I have no timestamps). What should I search for in the logs (what string)?</li>
  <li>Do memory problems cause the web browser to crash and reload (or something similar)? Or, is that related to java-problems?</li>
  <li>Most importantly: How can I test my application to see where it is the most memory intensive? I know I have not made it with perfect coding so I need to find the bad parts.</li>
  </ul>
  
  <p>Once again, this is my first project so the solutions might be easy but please help me out.</p>