Linux Servers might be in a state where it is not responding or running very slow, in this situation, we can have a look at the top HIGH cpu usages by processes –
- Check Top 10 Processes consuming CPU
- ps -Ao user,uid,comm,pid,pcpu,tty –sort=-pcpu | head -n 10
- Check Top 10 Processes consuming Memory
- ps -A -o pid,pcpu,pmem,start_time,state,time,comm | perl -e ‘($_ = join “”,<>) =~ s/(\t)/ /g; print;’ |sort -g -k 3 -r | head -10
- Check Memory consumption on Linux Server
- free -g [to display in GB]
- free -m [to display in MB]