Skip to content

Instantly share code, notes, and snippets.

@jaderabbit
Last active June 20, 2017 10:32
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 jaderabbit/e57f9685102aa47d17b07c420c43f036 to your computer and use it in GitHub Desktop.
Save jaderabbit/e57f9685102aa47d17b07c420c43f036 to your computer and use it in GitHub Desktop.
Hein & Derik Server wisdom
sudo netstat -lpn
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
Something like
swapoff -a
fallocate 4G /swapfile
mkswap /swapfile
swapon /swapfile
Run `iostat`
It shows you the io it is using. If the source is swap then we have a problem, else it is fine
Look at load averages in top to see how processors are being used and how many are waiting for processing
Look at CPU processing and CPU credits, make sure it's max usage, not average.
iotop
systemctl edit nameofservice.service
RestartSec / RestartUSec - Modify if service takes long to let go of a port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment