Page 1 of 1

Multiple apache processes running

PostPosted: 17. March 2009 04:01
by coaster
Hi - I just upgraded to the newest release of xampp Apache for Windows and I just noticed that I have two instances of the apache process in my Task Manager process list, each with its own process ID, both using about the same amount of memory resources. Apache is run as an application, not as a service. Before the upgrade I only remember seeing one. I'm only running MySQL, and it's run as an app and not as a service as well. I did do a complete uninstall of the previous version, including deleting the xampp folder. The new version was installed using the executable Windows installer.

Is this normal? Or do I have a problem? It seems to be serving localhost just fine, though of course, if it's using twice the memory resources it should.

Thanks.....

Re: Multiple apache processes running

PostPosted: 17. March 2009 04:13
by Izzy
coaster wrote:Is this normal?
This is perfectly normal behavior.

There is always two apache.exe processes running, one of them being just a thin wrapper around the other.

Apache uses two processes as a failsafe and optimization mechanism, a parent process with a child process that handles the client requests.

Re: Multiple apache processes running

PostPosted: 17. March 2009 05:40
by coaster
OK, I guess I don't remember seeing the second one previously. When you say one is a wrapper around the other, what you mean is that the memory usage of the child process is included in the memory usage of the parent process? i.e. if process #311 is apache.exe using 28,000K and process #3303 is apache.exe using 25,000K then the actual total memory usage of both is 28,000K because #3303 is included in #311? (process ID's and memory usage fictional). Hmmmm.....learned something new about how Task Manager reports memory usage. :)

Thanks....

Re: Multiple apache processes running

PostPosted: 17. March 2009 06:08
by Izzy

Re: Multiple apache processes running

PostPosted: 17. March 2009 13:46
by coaster
Izzy, thanks for the link. ;)

Re: Multiple apache processes running

PostPosted: 17. March 2009 23:06
by Izzy
coaster wrote:Izzy, thanks for the link. ;)
Your welcome. :)