while working on a cgi script that runs in the background I have noticed that after about 5 hours of running it starts to slowly eat more and more process time (starts at ca .05 and starts climbing to ca. .60 before I shut it down).
all memory usage of the script and the rest of the system remains the same.
I've run strace, lsof, vmstat, etc... to see if I can find the problem but nothing shows up. PHP v. 4.3.3
I've come to the decision that it would be best to just start a new process ca. every hour or so.
Has anyone ever done something like this before? How would I fork off and kill the parent? From what I understand the child needs the parent process. Any help would be appreciated.
chuck