title: Memory Size Errors When Running Magento's cron.sh
body: <p>We have set the nginx user to run the following command at 5 minute intervals. </p>
  
  <pre><code>sh /var/www/magento/cron.sh
  </code></pre>
  
  <p>This was executed fairly successfully for some time. Within the last month or so, it has begun to error out each time due to memory limit. I've increased the memory limit but that's only caused a higher limit that gets reached. It seems that there must be a bigger problem. The error is consistently as follows.</p>
  
  <pre><code>Fatal error: Allowed memory size of 262144 bytes exhausted 
  (tried to allocate 7680 bytes) in /var/www/magento/app/Mage.php on line 589
  </code></pre>
  
  <p>Below are the crons that magento has set to run every five minutes:</p>
  
  <pre><code>job: xmlconnect_notification_send_all   
  model: xmlconnect/observer::scheduledSend   
  file: /var/www/magento/app/code/core/Mage/XmlConnect/etc/config.xml
  
  job: newsletter_send_all    
  model: newsletter/observer::scheduledSend   
  file: /var/www/magento/app/code/core/Mage/Newsletter/etc/config.xml
  
  job: enterprise_staging_automates
  model: enterprise_staging/observer::automates   
  file: /var/www/magento/app/code/core/Enterprise/Staging/etc/config.xml
  </code></pre>