max_clients
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| max_clients [2015/04/02 06:35] – created 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 === | ||
| + | Best command to find the current apache processes is: | ||
| + | <sxh bash> | ||
| + | pstree | grep httpd | ||
| + | </ | ||
| + | Alternative: | ||
| + | <sxh bash> | ||
| + | ps afx | grep httpd | wc | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | What is the number of max connection the server has been configured for? | ||
| + | <sxh bash> | ||
| + | grep -i maxclients / | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | When did apache hit max clients? | ||
| + | ==Centos== | ||
| + | <sxh bash> | ||
| + | grep -i maxclients / | ||
| + | </ | ||
| + | Has it happened before? zgrep checks through ALL of the compresses and uncompressed logs, the * at the end of error represents all of the logrotated files: | ||
| + | <sxh bash> | ||
| + | zgrep -i maxclients / | ||
| + | </ | ||
| + | What are the currently configured max connections? | ||
| + | <sxh bash> | ||
| + | grep -i maxc / | ||
| + | </ | ||
| + | Ubuntu could have max clients configured in a number of different places, first place to look is: | ||
| + | <sxh bash> | ||
| + | grep -i maxc / | ||
| + | </ | ||
| + | or | ||
| + | <sxh bash> | ||
| + | grep -i maxc / | ||
| + | </ | ||
| + | Current connections: | ||
| + | <sxh bash> | ||
| + | pstree | grep httpd | ||
| + | </ | ||
| + | \\ | ||
| + | == Ubuntu == | ||
| + | <sxh bash> | ||
| + | grep -i maxclients / | ||
| + | </ | ||
| + | Has it happened before? | ||
| + | <sxh bash> | ||
| + | zgrep -i maxclients / | ||
| + | </ | ||
| + | Current connections: | ||
| + | <sxh bash> | ||
| + | pstree | grep apache | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | ==== CentOS==== | ||
| <sxh bash> | <sxh bash> | ||
| ps -H h -ylC httpd | perl -lane ' | ps -H h -ylC httpd | perl -lane ' | ||
| - | </bash> | + | </sxh> |
| - | For Ubuntu please change httpd in the code to apache2 | ||
| + | ==== Ubuntu ==== | ||
| <sxh bash> | <sxh bash> | ||
| ps -H h -ylC apache2 | perl -lane ' | ps -H h -ylC apache2 | perl -lane ' | ||
| </ | </ | ||
max_clients.1427956514.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
