Linux server troubleshooting

Linux Server Troubleshooting

This will show who is logged on and what they are doing.

w

Check active processes are running

ps aux
ps ux --sort +vsize | head -5
ps aux --sort -pcpu | head -5

Check File System Usage

df -h

Display files and directories, sorted by largest

du -ks * | sort -rn | more

Check TCP Connection

netstat -ntlp

Check CPU and RAM

top
free -m

#Check IO Performance

iostat -kx 2
vmstat 2 10
mpstat 2 10

#List all the open files to active process

lsof -p 3063