Skip to content

Instantly share code, notes, and snippets.

@robwilkerson
Created December 10, 2013 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwilkerson/7890112 to your computer and use it in GitHub Desktop.
Save robwilkerson/7890112 to your computer and use it in GitHub Desktop.
Tools & techniques for monitoring server health.

Server Health

Command Line Tools

  • top

  • uptime: Pay attention to the load average value.

  • free -m: Indicates how much memory is available. Some memory is used by the machine trying to anticipate, but it's still available. That's why the second row in the free column is key.

                   total       used       free     shared    buffers     cached
      Mem:           991        763        227          0         69        464
      -/+ buffers/cache:        230        **761**
      Swap:          976         47        929
    

MySQL

  • mysqlreport -u <username> --password <password>

PHP

APC

  1. Copy apc.php.gz to a webroot and unzip.

     $ cp /usr/share/doc/php-apc/apc.php.gz /path/to/webroot && gunzip /path/to/webroot/apc.php.gz
    
  2. Open http://webroot.tld/apc.php in a browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment