max_clients
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
max_clients [2015/08/26 14:40] – luke7858 | max_clients [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **Quick note**: apache 2.4 - Max Clients is now named MaxRequestWorkers | ||
+ | \\ | ||
+ | You can find the apache values in: | ||
+ | \\ | ||
+ | / | ||
+ | \\ | ||
+ | OR | ||
+ | \\ | ||
+ | / | ||
+ | \\ | ||
+ | If no value has been set then chances are the default of 256 is set. (Tip: run apache2buddy to find out the value if you are having trouble working it out) | ||
+ | \\ | ||
=== CentOS === | === CentOS === | ||
+ | Best command to find the current apache processes is: | ||
<sxh bash> | <sxh bash> | ||
- | ps afx | grep httpd | wc | + | pstree |
</ | </ | ||
+ | Alternative: | ||
<sxh bash> | <sxh bash> | ||
- | pstree | + | ps afx | grep httpd | wc |
</ | </ | ||
- | Output shows how many connections apache currently has | ||
\\ | \\ | ||
\\ | \\ | ||
Line 13: | Line 26: | ||
grep -i maxclients / | grep -i maxclients / | ||
</ | </ | ||
+ | \\ | ||
\\ | \\ | ||
When did apache hit max clients? | When did apache hit max clients? | ||
Line 19: | Line 33: | ||
grep -i maxclients / | grep -i maxclients / | ||
</ | </ | ||
- | Has it happened before? | + | Has it happened before? |
<sxh bash> | <sxh bash> | ||
zgrep -i maxclients / | zgrep -i maxclients / |
max_clients.1440600032.txt.gz · Last modified: 2024/05/23 07:26 (external edit)