Here’s my notes from trimming a little off the top of an apache server. This was just a quick chop at the default install. I haven’t looked at how the webapps are used or how many connections or the length of time per connection or anything… I’ll go back later and tweak how many threads and processes are started and used.
Got a process that you want to restart in a script but it doesn’t respond nicely? Use the sleep command in your script and check its status after you start, stop, or kill it. After incrementally backing off a few times, waiting longer and longer, I give up and exit …