Re: httpd-prozess doesn't get killed

From: Date: Wed, 31 Jan 2001 01:23:58 +0000
Subject: Re: httpd-prozess doesn't get killed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37383@lists.php.net to get a copy of this message
> 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

« previous php.general (#37383) next »