Contents
Why are there multiple Apache processes?
3 Answers. Apache is running multiple processes to have them ready when a client request comes in. Spawning a server process is slow, so it’s best to have one waiting for a client. For memory usage, you should take into the account RES size (as displayed by top), which is the amount of physical memory used by the task.
Should Apache run as root?
You don’t need to run it as root, you just need to allow your ‘apache’ user access to restricted ports (ie, those below 1024).
What is Apache process name?
When Apache is running under Unix, its process name is httpd , which is short for “HTTP daemon”.
Why are there so many Apache processes running?
Apache will pre-create worker processes so, when a load spike comes in, the processes can pick up the requests immediately, instead of waiting for the master to spawn enough of them. Check your httpd.conf for MinSpareServers, MaxSpareServers and ServerLimit.
Why do we need to run multiple Apache instances in one host?
Or: why do we need to run multiple apache instances in one host? Although you can certainly have a single installation of Apache httpd, running a single instance, and still have different virtual hosts that can be accessed separately, sometimes following this easy path can lead you to a heavy and bloated web server.
What happens when you connect to Apache server?
If all goes well during startup, the server will detach from the terminal and the command prompt will return almost immediately. This indicates that the server is up and running. You can then use your browser to connect to the server and view the test page in the DocumentRootdirectory. Errors During Start-up
How to start Apache server after system reboot?
If you want your server to continue running after a system reboot, you should add a call to apachectl to your system startup files (typically rc.local or a file in an rc.N directory). This will start Apache as root.