- Edited
recently noticed cron.php taking all of my memory and constantly filing up swap in a few seconds then clearing swap and starting all over again any ideas ?
recently noticed cron.php taking all of my memory and constantly filing up swap in a few seconds then clearing swap and starting all over again any ideas ?
I've had to disable cron.php in crontab now because it was killing the helpdesk
weird seems to have stopped now..... how bizarre
Just out of curiosity, at what interval did you run the cron job?1 minute, 5 minutes, etc. ?
My hosting often complains of a shortage of memory when working with cron. Every two days comes notification of the issue. The load on the hosting almost absent ....Time set - 5 minutesPHP Warning: Error while sending QUERY packet. PID=27402 in /home/x/mysite.com/public_html/include/mysqli.php on line 165
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /home/x/xglas/mysite.com/public_html/include/class.osticket.php on line 261
@[deleted] It sounds like you need to allocate more memory to PHP to me. Oh and please don't hijack other peoples threads.
Cron is run every minute .....I've increased the memory available to php as memory is no issue on the server ....lets see if it happens againthanks for your input ntozier
Additionally increasing the time from the cron job from 1 to 2 minutes (which should still be fine for most environments) should also help to reduce the load ;)