apache_sitedown
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| apache_sitedown [2015/08/24 16:08] – luke7858 | apache_sitedown [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Note: I have written a python script to check a system and report back on any potential Out-Of-Memory issues: | ||
| + | <sxh bash> | ||
| + | curl -s https:// | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| == Step 1 == | == Step 1 == | ||
| did apache hit max clients? | did apache hit max clients? | ||
| Line 12: | Line 18: | ||
| == Step 2 == | == Step 2 == | ||
| Did the server run out of memory and kill processes that killed a vital service? | Did the server run out of memory and kill processes that killed a vital service? | ||
| + | CentOS/RHL | ||
| <sxh bash> | <sxh bash> | ||
| + | egrep -i ' | ||
| </ | </ | ||
| + | Ubuntu/ | ||
| + | <sxh bash> | ||
| + | egrep -i ' | ||
| + | </ | ||
| + | \\ | ||
| + | Summarise date and times the server ran out of memory (CentOS/ | ||
| + | <sxh bash> | ||
| + | zgrep -i ' | ||
| + | </ | ||
| + | <sxh bash> | ||
| + | zgrep -i ' | ||
| + | </ | ||
| + | Example output: | ||
| + | <sxh bash> | ||
| + | 2 Apr 25 (driveclient) | ||
| + | 1 Apr 27 (driveclient) | ||
| + | 2 Apr 29 (driveclient) | ||
| + | 1 May 12 (driveclient) | ||
| + | 1 May 2 (driveclient) | ||
| + | 1 May 22 (driveclient) | ||
| + | 1 May 5 (driveclient) | ||
| + | 1 May 9 (driveclient) | ||
| + | </ | ||
| + | \\ | ||
| + | Debian/ | ||
| + | <sxh bash> | ||
| + | zgrep -i ' | ||
| + | </ | ||
| + | \\ | ||
| \\ | \\ | ||
| ==Step 3 == | ==Step 3 == | ||
| Check to see if the website received traffic during the period of 'down time' | Check to see if the website received traffic during the period of 'down time' | ||
| Investigating a 'site down' issue. | Investigating a 'site down' issue. | ||
| + | Best command to see check all log is: | ||
| + | |||
| + | <sxh bash> | ||
| + | cat / | ||
| + | </ | ||
| + | |||
| + | <sxh bash> | ||
| + | cat / | ||
| + | </ | ||
| + | |||
| + | Checking old log files (compresses) \\ | ||
| + | <sxh bash> | ||
| + | zcat / | ||
| + | </ | ||
| + | \\ | ||
| <sxh bash> | <sxh bash> | ||
| grep 24/ | grep 24/ | ||
| </ | </ | ||
| + | |||
| This will grep for: | This will grep for: | ||
| date 24/ | date 24/ | ||
apache_sitedown.1440432494.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
