Performance auf Ded. Server

Darkdream

Registered User
Ich betreibe auf meinem S4Y Ded. Sever (2,8 GHZ, 512MBRAM) eine Homepage. Von Zeit zu Zeit "steht" der Server jedoch und kurze Zeit später geht wieder alles flott, so wie es sein sollte. Interessanterweise kann es sein, dass der Server hängt und kurze Zeit später (bei höherer Userzahl) funktioniert wieder alles. Ich habe auch einmal versucht, den Apache neu zu starten, wie das Problem aufgetreten ist, dann hat alles für kurze Zeit wunderbar funktioniert, kurz darauf trat das Problem aber wieder auf.

Meiner Meinung sollte es für den Server von der Performance her kein Problem sein. Ein Problem, welches ich mir vorstellen könnte ist, dass es Probleme bereitet, dass der Server die ganze Zeit viele verschiedene Bilder laden muss. Wie man in der Ausgabe von top sieht, ist der wa Wert permanent hoch. Die folgenden Auszüge habe ich zu einer Zeit gemacht, wo das Problem gerade aufgetreten ist.

System: SuSe 9.2, Apache 2.0.50, PHP4.3.8

top (wobei "normalerweise" die ersten 10 Prozesse ca. nur Apache Prozesse sind)
ps aux:
http://www.snap-shots.at/output.txt

EDIT: Der Text, den du eingegeben hast, besteht aus 42168 Zeichen und ist damit zu lang. Bitte kürze den Text auf die maximale Länge von 30000 Zeichen. :D (deswegen leider der Link)

Folgende Warnings habe ich interessanterweise mitten in der Nacht bekommen, wo der Server eigentlich nicht ausgelastet ist, weil keine User auf der Seite surfen (Das Backup läuft erst um 04:30):
Code:
Mar 1 04:09:31 xxx kernel: oom-killer: gfp_mask=0xd2
Mar 1 04:09:32 xxx kernel: DMA per-cpu:
Mar 1 04:09:32 xxx kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 1 04:09:32 xxx kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 1 04:09:32 xxx kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 1 04:09:32 xxx kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 1 04:09:32 xxx kernel: Normal per-cpu:
Mar 1 04:09:32 xxx kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 1 04:09:32 xxx kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 1 04:09:32 xxx kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 1 04:09:32 xxx kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 1 04:09:32 xxx kernel: HighMem per-cpu: empty
Mar 1 04:09:33 xxx kernel: 
Mar 1 04:09:34 xxx kernel: Free pages: 3836kB (0kB HighMem)
Mar 1 04:09:35 xxx kernel: Active:64719 inactive:55276 dirty:0 writeback:0 unstable:0 free:959 slab:3199 mapped:120399 pagetables:662
Mar 1 04:09:35 xxx kernel: DMA free:1964kB min:20kB low:40kB high:60kB active:4840kB inactive:5120kB present:16384kB
Mar 1 04:09:35 xxx kernel: lowmem_reserve[]: 0 486 486
Mar 1 04:09:35 xxx kernel: Normal free:1872kB min:692kB low:1384kB high:2076kB active:254036kB inactive:215984kB present:498224kB
Mar 1 04:09:35 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:09:35 xxx kernel: HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
Mar 1 04:09:35 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:09:35 xxx kernel: DMA: 1*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1964kB
Mar 1 04:09:35 xxx kernel: Normal: 298*4kB 3*8kB 3*16kB 1*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1872kB
Mar 1 04:09:35 xxx kernel: HighMem: empty
Mar 1 04:09:35 xxx kernel: Swap cache: add 5135906, delete 5135906, find 67587985/68070600, race 1+255
Mar 1 04:09:35 xxx kernel: Free swap = 0kB
Mar 1 04:09:35 xxx kernel: Total swap = 530136kB
Mar 1 04:09:35 xxx kernel: Out of Memory: Killed process 16155 (httpd2-prefork).
Mar 1 04:09:46 xxx kernel: oom-killer: gfp_mask=0x1d2
Mar 1 04:09:46 xxx kernel: DMA per-cpu:
Mar 1 04:09:46 xxx kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 1 04:09:46 xxx kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 1 04:09:46 xxx kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 1 04:09:46 xxx kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 1 04:09:46 xxx kernel: Normal per-cpu:
Mar 1 04:09:46 xxx kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 1 04:09:46 xxx kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 1 04:09:46 xxx kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 1 04:09:46 xxx kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 1 04:09:46 xxx kernel: HighMem per-cpu: empty
Mar 1 04:09:46 xxx kernel: 
Mar 1 04:09:48 xxx kernel: Free pages: 3460kB (0kB HighMem)
Mar 1 04:09:48 xxx kernel: Active:59867 inactive:60102 dirty:0 writeback:0 unstable:0 free:865 slab:3197 mapped:120307 pagetables:645
Mar 1 04:09:48 xxx kernel: DMA free:1964kB min:20kB low:40kB high:60kB active:4824kB inactive:5128kB present:16384kB
Mar 1 04:09:48 xxx kernel: lowmem_reserve[]: 0 486 486
Mar 1 04:09:48 xxx kernel: Normal free:1496kB min:692kB low:1384kB high:2076kB active:234700kB inactive:235280kB present:498224kB
Mar 1 04:09:48 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:09:48 xxx kernel: HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
Mar 1 04:09:48 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:09:48 xxx kernel: DMA: 1*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1964kB
Mar 1 04:09:48 xxx kernel: Normal: 206*4kB 2*8kB 3*16kB 1*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1496kB
Mar 1 04:09:48 xxx kernel: HighMem: empty
Mar 1 04:09:48 xxx kernel: Swap cache: add 5140624, delete 5140624, find 67588576/68071800, race 1+404
Mar 1 04:09:48 xxx kernel: Free swap = 0kB
Mar 1 04:09:48 xxx kernel: Total swap = 530136kB
Mar 1 04:09:48 xxx kernel: Out of Memory: Killed process 15957 (httpd2-prefork).
Mar 1 04:09:48 xxx kernel: oom-killer: gfp_mask=0x1d2
Mar 1 04:09:48 xxx kernel: DMA per-cpu:
Mar 1 04:09:48 xxx kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 1 04:09:48 xxx kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 1 04:09:48 xxx kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 1 04:09:48 xxx kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 1 04:09:48 xxx kernel: Normal per-cpu:
Mar 1 04:09:48 xxx kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 1 04:09:48 xxx kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 1 04:09:48 xxx kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 1 04:09:48 xxx kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 1 04:09:48 xxx kernel: HighMem per-cpu: empty
Mar 1 04:09:48 xxx kernel: 
Mar 1 04:09:48 xxx kernel: Free pages: 3624kB (0kB HighMem)
Mar 1 04:09:48 xxx kernel: Active:59771 inactive:60176 dirty:0 writeback:294 unstable:0 free:906 slab:3197 mapped:119791 pagetables:628
Mar 1 04:09:48 xxx kernel: DMA free:2000kB min:20kB low:40kB high:60kB active:5332kB inactive:4580kB present:16384kB
Mar 1 04:09:48 xxx kernel: lowmem_reserve[]: 0 486 486
Mar 1 04:09:48 xxx kernel: Normal free:1624kB min:692kB low:1384kB high:2076kB active:233752kB inactive:236124kB present:498224kB
Mar 1 04:09:48 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:09:48 xxx kernel: HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
Mar 1 04:09:48 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:09:48 xxx kernel: DMA: 10*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2000kB
Mar 1 04:09:48 xxx kernel: Normal: 228*4kB 7*8kB 3*16kB 1*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1624kB
Mar 1 04:09:48 xxx kernel: HighMem: empty
Mar 1 04:09:48 xxx kernel: Swap cache: add 5140996, delete 5140662, find 67588576/68071803, race 1+404
Mar 1 04:09:48 xxx kernel: Free swap = 324kB
Mar 1 04:09:48 xxx kernel: Total swap = 530136kB
Mar 1 04:09:48 xxx kernel: Out of Memory: Killed process 16203 (httpd2-prefork).
Mar 1 04:10:14 xxx kernel: oom-killer: gfp_mask=0x1d2
Mar 1 04:10:15 xxx kernel: DMA per-cpu:
Mar 1 04:10:15 xxx kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 1 04:10:15 xxx kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 1 04:10:15 xxx kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 1 04:10:15 xxx kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 1 04:10:15 xxx kernel: Normal per-cpu:
Mar 1 04:10:15 xxx kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 1 04:10:15 xxx kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 1 04:10:15 xxx kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 1 04:10:15 xxx kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 1 04:10:16 xxx kernel: HighMem per-cpu: empty
Mar 1 04:10:17 xxx kernel: 
Mar 1 04:10:18 xxx kernel: Free pages: 3908kB (0kB HighMem)
Mar 1 04:10:18 xxx kernel: Active:60411 inactive:59618 dirty:0 writeback:0 unstable:0 free:977 slab:3209 mapped:120414 pagetables:644
Mar 1 04:10:18 xxx kernel: DMA free:1964kB min:20kB low:40kB high:60kB active:4952kB inactive:4980kB present:16384kB
Mar 1 04:10:18 xxx kernel: lowmem_reserve[]: 0 486 486
Mar 1 04:10:18 xxx kernel: Normal free:1944kB min:692kB low:1384kB high:2076kB active:236820kB inactive:233492kB present:498224kB
Mar 1 04:10:18 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:10:18 xxx kernel: HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
Mar 1 04:10:18 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:10:19 xxx kernel: DMA: 1*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1964kB
Mar 1 04:10:20 xxx kernel: Normal: 330*4kB 4*8kB 1*16kB 0*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1944kB
Mar 1 04:10:21 xxx kernel: HighMem: empty
Mar 1 04:10:21 xxx kernel: Swap cache: add 5148738, delete 5148738, find 67589546/68073719, race 1+542
Mar 1 04:10:21 xxx kernel: Free swap = 0kB
Mar 1 04:10:21 xxx kernel: Total swap = 530136kB
Mar 1 04:10:21 xxx kernel: Out of Memory: Killed process 15556 (httpd2-prefork).
Mar 1 04:11:51 xxx kernel: oom-killer: gfp_mask=0x1d2
Mar 1 04:11:51 xxx kernel: DMA per-cpu:
Mar 1 04:11:51 xxx kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 1 04:11:51 xxx kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 1 04:11:51 xxx kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 1 04:11:51 xxx kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 1 04:11:51 xxx kernel: Normal per-cpu:
Mar 1 04:11:51 xxx kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 1 04:11:51 xxx kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 1 04:11:51 xxx kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 1 04:11:51 xxx kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 1 04:11:51 xxx kernel: HighMem per-cpu: empty
Mar 1 04:11:52 xxx kernel: 
Mar 1 04:11:53 xxx kernel: Free pages: 3164kB (0kB HighMem)
Mar 1 04:11:53 xxx kernel: Active:58744 inactive:61348 dirty:0 writeback:0 unstable:0 free:791 slab:3209 mapped:120454 pagetables:632
Mar 1 04:11:53 xxx kernel: DMA free:1964kB min:20kB low:40kB high:60kB active:5280kB inactive:4664kB present:16384kB
Mar 1 04:11:53 xxx kernel: lowmem_reserve[]: 0 486 486
Mar 1 04:11:53 xxx kernel: Normal free:1200kB min:692kB low:1384kB high:2076kB active:229696kB inactive:240728kB present:498224kB
Mar 1 04:11:53 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:11:53 xxx kernel: HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
Mar 1 04:11:53 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:11:53 xxx kernel: DMA: 1*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1964kB
Mar 1 04:11:53 xxx kernel: Normal: 128*4kB 12*8kB 1*16kB 0*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1200kB
Mar 1 04:11:53 xxx kernel: HighMem: empty
Mar 1 04:11:53 xxx kernel: Swap cache: add 5163495, delete 5163495, find 67591017/68077083, race 1+709
Mar 1 04:11:53 xxx kernel: Free swap = 0kB
Mar 1 04:11:53 xxx kernel: Total swap = 530136kB
Mar 1 04:11:53 xxx kernel: Out of Memory: Killed process 16132 (httpd2-prefork).
Mar 1 04:12:37 xxx kernel: oom-killer: gfp_mask=0xd2
Mar 1 04:12:37 xxx kernel: DMA per-cpu:
Mar 1 04:12:37 xxx kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 1 04:12:37 xxx kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 1 04:12:37 xxx kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 1 04:12:37 xxx kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 1 04:12:37 xxx kernel: Normal per-cpu:
Mar 1 04:12:37 xxx kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 1 04:12:37 xxx kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 1 04:12:37 xxx kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 1 04:12:37 xxx kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 1 04:12:37 xxx kernel: HighMem per-cpu: empty
Mar 1 04:12:38 xxx kernel: 
Mar 1 04:12:43 xxx kernel: Free pages: 3004kB (0kB HighMem)
Mar 1 04:12:44 xxx kernel: Active:60173 inactive:59662 dirty:0 writeback:0 unstable:0 free:751 slab:3230 mapped:120373 pagetables:631
Mar 1 04:12:44 xxx kernel: DMA free:1964kB min:20kB low:40kB high:60kB active:4992kB inactive:4936kB present:16384kB
Mar 1 04:12:44 xxx kernel: lowmem_reserve[]: 0 486 486
Mar 1 04:12:44 xxx kernel: Normal free:1040kB min:692kB low:1384kB high:2076kB active:235648kB inactive:233712kB present:498224kB
Mar 1 04:12:44 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:12:44 xxx kernel: HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
Mar 1 04:12:44 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:12:44 xxx kernel: DMA: 1*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1964kB
Mar 1 04:12:44 xxx kernel: Normal: 96*4kB 8*8kB 1*16kB 0*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1040kB
Mar 1 04:12:44 xxx kernel: HighMem: empty
Mar 1 04:12:44 xxx kernel: Swap cache: add 5167761, delete 5167761, find 67591386/68077940, race 1+730
Mar 1 04:12:44 xxx kernel: Free swap = 0kB
Mar 1 04:12:45 xxx kernel: Total swap = 530136kB
Mar 1 04:12:48 xxx kernel: Out of Memory: Killed process 16205 (httpd2-prefork).
Mar 1 04:14:18 xxx kernel: oom-killer: gfp_mask=0x1d2
Mar 1 04:14:18 xxx kernel: DMA per-cpu:
Mar 1 04:14:18 xxx kernel: cpu 0 hot: low 2, high 6, batch 1
Mar 1 04:14:18 xxx kernel: cpu 0 cold: low 0, high 2, batch 1
Mar 1 04:14:18 xxx kernel: cpu 1 hot: low 2, high 6, batch 1
Mar 1 04:14:18 xxx kernel: cpu 1 cold: low 0, high 2, batch 1
Mar 1 04:14:18 xxx kernel: Normal per-cpu:
Mar 1 04:14:18 xxx kernel: cpu 0 hot: low 32, high 96, batch 16
Mar 1 04:14:18 xxx kernel: cpu 0 cold: low 0, high 32, batch 16
Mar 1 04:14:18 xxx kernel: cpu 1 hot: low 32, high 96, batch 16
Mar 1 04:14:18 xxx kernel: cpu 1 cold: low 0, high 32, batch 16
Mar 1 04:14:18 xxx kernel: HighMem per-cpu: empty
Mar 1 04:14:18 xxx kernel: 
Mar 1 04:14:18 xxx kernel: Free pages: 3292kB (0kB HighMem)
Mar 1 04:14:18 xxx kernel: Active:60090 inactive:59917 dirty:0 writeback:0 unstable:0 free:823 slab:3227 mapped:120425 pagetables:631
Mar 1 04:14:18 xxx kernel: DMA free:1964kB min:20kB low:40kB high:60kB active:5064kB inactive:4872kB present:16384kB
Mar 1 04:14:18 xxx kernel: lowmem_reserve[]: 0 486 486
Mar 1 04:14:18 xxx kernel: Normal free:1328kB min:692kB low:1384kB high:2076kB active:235296kB inactive:234796kB present:498224kB
Mar 1 04:14:18 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:14:18 xxx kernel: HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
Mar 1 04:14:18 xxx kernel: lowmem_reserve[]: 0 0 0
Mar 1 04:14:18 xxx kernel: DMA: 1*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1964kB
Mar 1 04:14:18 xxx kernel: Normal: 174*4kB 1*8kB 3*16kB 0*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1328kB
Mar 1 04:14:18 xxx kernel: HighMem: empty
Mar 1 04:14:18 xxx kernel: Swap cache: add 5177093, delete 5177093, find 67591709/68079364, race 1+735
Mar 1 04:14:18 xxx kernel: Free swap = 0kB
Mar 1 04:14:18 xxx kernel: Total swap = 530136kB
Mar 1 04:14:18 xxx kernel: Out of Memory: Killed process 16881 (spamassassin).

Ich tippe, wie schon oben geschrieben darauf, dass die Festplatte zu langsam ist (der Server hat kein RAID System). Ist es möglich, dass die Festplatte fragmentiert ist? Wenn ja, mit welchem Tool kann ich das beheben?

Ich danke im Voraus auf alle, hoffentlich hilfreichen Antworten!
 
Last edited by a moderator:
Aktivier im Apache mal mod_status und "ExtendedStatus On" und beobachte diese Ausgabe.
Dann siehst Du wenigstens, welches Script hier die Performance zieht.

huschi.
 
Back
Top