Difference between revisions of "Apache/performance"
< Apache
Jump to navigation
Jump to search
(initial draft) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
=== Cli === | === Cli === | ||
<source lang='bash'> | <source lang='bash'> | ||
− | # Using wget isn't advised because you'll get html output | + | # Using wget isn't advised because you'll get html output |
wget http://localhost/server-status -O - | wget http://localhost/server-status -O - | ||
− | |||
# Ubuntu | # Ubuntu | ||
apache2ctl fullstatus | apache2ctl fullstatus | ||
Line 14: | Line 13: | ||
Or you can edit <code>/mods.enabled/status</code> to get it from the browser. For a machine readable, condensed version, just append the '''auto''' querystring argument: | Or you can edit <code>/mods.enabled/status</code> to get it from the browser. For a machine readable, condensed version, just append the '''auto''' querystring argument: | ||
e.g. http://example.com/server-status?auto | e.g. http://example.com/server-status?auto | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Resources == | == Resources == | ||
# https://httpd.apache.org/docs/2.4/misc/perf-tuning.html | # https://httpd.apache.org/docs/2.4/misc/perf-tuning.html | ||
# https://www.linode.com/docs/websites/apache-tips-and-tricks/tuning-your-apache-server | # https://www.linode.com/docs/websites/apache-tips-and-tricks/tuning-your-apache-server | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 08:49, 13 August 2016
Get Stats[edit | edit source]
To get statistics, you'll need to potentially modify your Apache configuration. For Ubuntu, it's as easy as a2enmod status
(and reload the server with service apache2 reload
)
Cli[edit | edit source]
# Using wget isn't advised because you'll get html output
wget http://localhost/server-status -O -
# Ubuntu
apache2ctl fullstatus
# Older/RedHat
apachectl fullstatus
Or you can edit /mods.enabled/status
to get it from the browser. For a machine readable, condensed version, just append the auto querystring argument:
e.g. http://example.com/server-status?auto