Skip to content

Instantly share code, notes, and snippets.

@seanparker39
Created July 28, 2016 11:10
Show Gist options
  • Save seanparker39/7a749c53beac00bb446b76a3093fe4aa to your computer and use it in GitHub Desktop.
Save seanparker39/7a749c53beac00bb446b76a3093fe4aa to your computer and use it in GitHub Desktop.
Monitoring Lampp in ubuntu
htop
The htop is an interactive process viewer for Linux on command-line mode.
$ sudo apt-get install htop
Read more: http://hisham.hm/htop/
iotop
Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on.
Installation
Ubuntu
$ sudo apt-get install iotop
CentOS
# yum install python python-ctypes
# yum install iotop
Usage
# iotop
Or
# iotop --only
To use iotop with "-o" or "--only" option to see all the running processes or threads actually doing I/O, instead of watching all processes or threads.
Read more: http://guichaz.free.fr/iotop/
apachetop
ApacheTop is a curses-based top-like display for Apache information, including requests per second, bytes per second, most popular URLs, etc.
Installation
Ubuntu
$ sudo apt-get install apachetop
CentOS
#yum install apachetop
Read more: http://freecode.com/projects/apachetop
Usage
You can launch it by simply running apachetop from the command line.
$ apachetop
Since apachetop sometimes defaults to the wrong directory for the logfiles, you can pass in the -f parameter to specify the location of the logfile.
# apachetop -N 300 -f /var/logs/http/access_log
This command will show stats for hits in the last 5 minutes.
# apachetop -T 100 -f /var/log/httpd/access_log
This command will have apachetop remember the last 100 hits and show the statistics for them.
glances
Glances is a cross-platform curses-based monitoring tool written in Python. This utility uses the psutil library to fetch the statistical values from your server.
Installation
Ubuntu
$ sudo apt-get install glances
or
$ sudo apt-get install python-pip build-essential python-dev
$ sudo pip install Glances
CentOS
# yum -y install glances
Usage
$ glances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment