Re: Command-line PHP script CPU usage goes sky-high, stays there--why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Lucas wrote:
> Tom Rogers wrote:
>> Hi,

...

> Also, make sure you are not using an array that you are not re-initializing through each iteration
> of the loop.  If the array keeps getting bigger, PHP might $*%& on itself.  Always re-initialize
> arrays to clean them up.

even then he may still have creeping memory ... in which it might be possible to have a mother process that
spawns and watchs a child process .. the child process is the actual deamon, the child could then keep a track
of it's own memory usage and then kill itself when it gets too big ... the mother in turn would automatically
spawn a new child deamon process upon seeing it's child has committed suicide.

does that make sense?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux