You are here:  » Magic Parser timeout

Magic Parser timeout

Submitted by fraizor on Sat, 2016-10-29 16:03 in

im using cron job to run a php files that have MagicParser_parse functions

every thing is working fine except the thing that it is using lots of server resources plus lots of entry processes and processes

even my hoster had emailed me about my server always high resource usage

i had set set_time_limit(60);
but it seems that the script for a unknown reason is still sticking in the proccesses

is there is a timeout function for the "MagicParser_parse" function itself ?

PS: the php file have about 15 MagicParser_parse fucntions

Submitted by support on Mon, 2016-10-31 10:11


There's no "self timeout" in Magic Parser at all, but I would suggest allowing unlimited execution time using:


It may be that the fast processing is causing the load average to increase (which is what you host is warning about) and that a governor process is terminating the cron job.

If this is the case, processor load caused by your parsing cron job should be able to be reduced significantly by inserting a sleep, say 5 seconds between each feed - so after each call to MagicParser_parse(...) - add the following line:


Hope this helps!

Submitted by fraizor on Wed, 2016-11-16 09:26

seems good , i'll test and feed back , tanks buddy