i have a script running threads i.e. it uses a db of about 50,000 entries and processes them in batches of 400 each .. as such the script runs fine for first.. but gradually dies out.. at an estimate the script should run for about 6 hours but it dies out after an hour or so.
there's no such problem with the code as it works fine for first time, i unset all the not required variables and other stuff to increase the performance but still after an hour or so it dies out.
i use 4 parallel connections to mysql db to achieve this target making up limited 4 connections to db.
why does the script speed damp after time..??
------------------------- DONE!! exhausted memory and was creating some std class obj and now using curl_multi_exec.. works like a charm..!! :)