logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Two Apache Services running
Author
¤| battousai |¤



Joined: 12 Oct 2006
Posts: 12

PostPosted: Sat 13 Oct '07 17:00    Post subject: Two Apache Services running Reply with quote

A few days ago I have setup apache2.2 with php5 on my system, and a few days later added mySQL and phpMyAdmin.

Yesterday when i opened up Task Manager I noticed that now i get two httpd services instead of just one that are running at the same time. one having a little more memory usage than the other. I figured I should try and end the more resource consumable one but to no avail, it didn't go away. Now everytime i start the apache service i get the two httpd's.

I have not setup any virtual hosts or 2 seperate servers, just a basic configuration. I have also tried uninstalling and reinstalling the apache service but it didn't change anything.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Sat 13 Oct '07 17:53    Post subject: Reply with quote

Apache 2.2 is intended to have two httpd processes on Windows.
    * The "parent" process checks out the config files and starts the "child" process.
    * The "child" process services requests.
    * If the "child" process ends unexpectedly, the "parent" process starts another "child".
The memory use shown in TaskManager is a little misleading. While both processes appear to use a lot of memory, most of this memory is shared between the two processes.

In other words, if your httpd processes show memory use of 10mb (parent) and 20mb (child) - the total system memory consumed by both processes together is approx. 24mb because much of this memory is shared between these two processes.

Adding Virtual hosts or making other configuration changes does not affect how many processes run.
Apache 2.2 always runs two httpd processes on Windows.

-tom-
Back to top
¤| battousai |¤



Joined: 12 Oct 2006
Posts: 12

PostPosted: Sat 13 Oct '07 21:10    Post subject: Reply with quote

I never noticed Apache always runs 2 processes, I gues i should have read the documentation more carefully. Thx for the info, i can now stop worrying and move on Smile
Back to top


Reply to topic   Topic: Two Apache Services running View previous topic :: View next topic
Post new topic   Forum Index -> Apache