> i code a streaming chat in PHP4. Everithing works fine, it is very fast
due
> to use of shared memory. But i have this problem: Every time i start the
> script a new httpd-process is started (Apache 1.3.12). So far so good. But
> the process doesn't get killed when aborting or reloading the script. So
if
> you reload the stream an few times you have a task list full of Apaches.
>
> How can i kill the old, unused process when i reload the page?
Apache has settings in httpd.conf about how many children to start with, how
many to have max, how long before a child should be killed, etc.
So, up to the number you set, you're *supposed* to get more of them, for as
many concurrent users as your site has.
It does seem odd that you'd get one for every page hit -- It should only
spawn when no children are available to fulfill a request, and you are still
under the maximum you set in httpd.conf...
If the children *are* hanging around, I'd look at your streaming code and
make sure you were cleaning up everything you've created with that... PHP
is supposed to clean up everything you can create, but maybe you've found
something it misses... Pretty unlikely, though. Check http://bugs.php.net
for similar problems too.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]