Lately, and with the help of Dreamhost support, I switched from Wordpress cron job to rel cron job. My settings have the cron jobs run every two hours. I have confirmed that it is working: scheduled tasks on my Wordpress installation are performed.
The reason I have done that is the following: lately, the site was slow and, again with the help of Dreamhost support, I learned that my installation was maxing the RAM limit and that ProcWatch was therefore killing scripts (of course I should add that my Wordpress is on a shared server).
Things look much better now, but examining my error.log I see that almost every time the cron job is launch, I get a “Premature end of script headers”. The entry in the log looks like this:
[Sun Jan 27 12:00:13 2013] [error] [client ip.add.ress.of.server]
Premature end of script headers: wp-cron.php
It seems to me that the cron job –or something associated with the cron job– is eating to much memory. Is the cron job inadequately configured (I doubt it, it’s quite simple to set via the cPanel) or is one of the task scheduled to be perform by the cron job asking for too much resources?
Basically, I’d like to find out why the cron job is causing those premature end of script header.
Any theory? Or idea how to troubleshoot this?
It would be greatly appreciated. I stopped sending emails to the support because I thought I could continue my troubleshooting here instead of adding another load on them.