php - Long lasting script prevents handling new requests -
i have php script on apache web server, starts several hours running php script. right after long-lasting script started no other php script requests handled. browser hangs eternally.
the background script crawls other sites , gathers data ones. therefore takes quite long time.
at same time static pages got without problems. @ same time php script started locally on server bash executed without problems.
cpu , ram usage low. in fact it's test server , requests ones being handled.
i tried decrease apache processes in order able trace of them see requests hung. when decreased amount of processes 2 problem has gone.
i found no errors neither in syslog nor in apache/error.log
what else can check?
though didn't find reason of apache hanging have solved task in different way. i've set schedule run script every 5 minutes. web script i'm creating file necessary parameters. script check existence of file , if exists reads content , deletes prevent further scheduled start.
Comments
Post a Comment