我们已将 nginx 用户设置为每隔 5 分钟运行一次以下命令。
sh /var/www/magento/cron.sh
这在一段时间内相当成功地执行了。最近一个月左右,由于内存限制,每次都开始出错。我增加了内存限制,但这只会导致达到更高的限制。看来一定有更大的问题。错误始终如下。
Fatal error: Allowed memory size of 262144 bytes exhausted
(tried to allocate 7680 bytes) in /var/www/magento/app/Mage.php on line 589
以下是 magento 设置为每五分钟运行一次的 crons:
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