Multiple httpd.conf entries in ps ax after restarting apache - is this normal?
As the title says. System is running SuSE 9.3, apache2, and, since this is where the problem was first seen, php 5.2.0.
I was receiving an out of memory error on a php script, and from some of what I saw on the net, I thought I might be able to partially free memory by restarting apache2. After I did so, I refreshed my page's window, then went to take a look at the ps ax output. I found seven copies of the following line: Code:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf |
can you include the output of ps ax. Second is this php code yours, try PHP Xdebug extension which can give you info, especially how much memory your script is using. Third, is this a PHP error or Apache error, when it says it's out of memory. You can increase the memory limit in php.ini file.
|
Didn't save the previous run, but recreated the scenario. Contents of ps ax run:
Code:
PID TTY STAT TIME COMMAND |
That would be normal; Apache starts as root in order to bind to restricted port 80 (& 443 if reqd), then drops privs and pre-spawns a num of child procs that actually respond to incoming queries.
The conf settings are at http://httpd.apache.org/docs/2.2/mod...reference.html, search for the word 'child'. There are a few relevant ones. You'll see them in your httpd.conf. |
All times are GMT -5. The time now is 10:21 PM. |