Performance Probleme lösen

...in progress...

keywords: Server, Performance Problem, langsam, Platte, SSD, Verzögerungen

Get the top 10 CPU consuming process

ps aux | sort -n -k 3 | tail -10

Get the top 10 memory consuming process

ps aux | sort -n -k 4 | tail -10

Recherchieren: Get the top 10 i/O consuming process

Zu prüfen:

top

mit c togglen volles command

htop

iotop -o # Only show processes or threads actually doing I/O, instead of showing all processes or threads.

iotop -bo # Turn on non-interactive mode. Useful for logging I/O usage over time. Zeigt komplettes command an.

Get PID (process ID) from TID (thread ID)

ps -eLo pid= -o tid= | awk '$2 == [TID] {print $1}'

Get full command for the PID

ps -p [PID] -o command

top -p [PID]

I/O

Läuft gerade ein Festplattencheck? Raid-Status prüfen

cat /proc/mdstat

md1 : active raid1 sdb2[1] sda2[0]

523712 blocks super 1.2 [2/2] [UU]

md2 : active raid1 sdb3[1] sda3[0]

1919300672 blocks super 1.2 [2/2] [UU]

[===================>.] check = 97.3% (1867548352/1919300672) finish=20.8min speed=41273K/sec

bitmap: 9/15 pages [36KB], 65536KB chunk

md0 : active raid1 sdb1[1] sda1[0]

33521664 blocks super 1.2 [2/2] [UU]

testen:

atop

glance

ytop

ctop