User Tools

Site Tools


max_clients

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
max_clients [2015/12/07 09:16] luke7858max_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+**Quick note**: apache 2.4 - Max Clients is now named MaxRequestWorkers 
 +\\ 
 +You can find the apache values in: 
 +\\ 
 +/etc/httpd/conf/httpd.conf 
 +\\ 
 +OR 
 +\\ 
 +/etc/httpd/conf.modules.d/00-mpm.conf 
 +\\ 
 +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:+Best command to find the current apache processes is:
 <sxh bash> <sxh bash>
 pstree | grep httpd pstree | grep httpd
Line 9: Line 20:
 ps afx | grep httpd | wc ps afx | grep httpd | wc
 </sxh> </sxh>
- 
-Output shows how many connections apache currently has 
 \\ \\
 \\ \\
Line 17: Line 26:
 grep -i maxclients /etc/httpd/conf/httpd.conf grep -i maxclients /etc/httpd/conf/httpd.conf
 </sxh> </sxh>
 +\\
 \\ \\
 When did apache hit max clients? When did apache hit max clients?
Line 23: Line 33:
 grep -i maxclients /var/log/httpd/error_log grep -i maxclients /var/log/httpd/error_log
 </sxh> </sxh>
-Has it happened before?+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> <sxh bash>
 zgrep -i maxclients /var/log/httpd/error_log* zgrep -i maxclients /var/log/httpd/error_log*
max_clients.1449479796.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki