Last active
April 6, 2018 01:36
-
-
Save tracker1/28fa3cba7465448394b30991c3c29387 to your computer and use it in GitHub Desktop.
Linux Troubleshooting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://raw.githubusercontent.com/cleanbrowsing/dnsperftest/master/dnstest.sh | bash | sort -k 22 -n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://news.ycombinator.com/item?id=16690705 | |
uptime # uptime and CPU stress | |
w # or better yet:last |head # who is/has been in | |
netstat -tlpn # find server role | |
df -h # out of disk space? | |
grep kill /var/log/messages # out of memory? | |
ps auxf # what's running | |
htop # stressed? , look out for D (waiting on I/O typically) processes | |
history # what has changed recently | |
tail /var/log/application.log # anything interesting logged? | |
df -h # inode availability |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment