I am having a tough time finding an answer to this seemingly simple question. What does one single Apache process handle? Is it one single request from one visitor? Would each asset (image, css file, etc) a visitor downloads require a separate Apache process?
Thanks!
Likely you are using Apache’s “prefork MPM” so you have a non-threaded parent process that spawns a number of child processes (“Servers”) determined by your configuration (
StartServersdetermines how many child processes to start at startup,MaxClientsdetermines the maximum number of child processes that will be launched to serve requests, etc.). Each Server can handle a number of requests, so each asset does not require a separate process. The settingMaxRequestsPerChilddetermines the lifetime of the Server. Setting it to 0 means that the child process will never be expired. If you’ve got a lot of requests, you’ll also probably want to setKeepAliveto On so you’re using the same connection to serve multiple requests.