Hi,
habe einen FreeBSD Server am laufen, der sich in letzter Zeit extrem komisch verhält.
Ist die 5.4er Version drauf.
Als Dienste laufen die aktuellsten Versionen von proftpd, pound, apache, ssh2. Named läuft als CachingNameServer. Soweit so gut ...
Seit ca. 3 Wochen steigt der LOAD unregelmäßg auf bis zu 10 und bleibt dort. Starte ich named neu, geht er rasch wieder runter. Also named mal abgeschalten und die DNS-Server vom Provider vorgezogen. Load ging wieder hoch :-(
Dann mal netstat -m angeschaut .... sieht so aus wie folgt:
12121069 mbufs in use
4286689353/60000 mbuf clusters in use (current/max)
0/3/6656 sfbufs in use (current/peak/max)
3251597 KBytes allocated to network
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
3747 calls to protocol drain routines
Sieht nicht wirklich gut aus, oder?
Habe laut Handbuch die Netzwerkeinstellungen hochgeschraubt:
kern.ipc.maxsockbuf=2097152
kern.ipc.somaxconn=8192
kern.maxfiles=65536
kern.maxfilesperproc=32768
Brachte aber nichts, die Werte liefen kurze Zeit nach reboot wieder so voll.
Hier noch ein top -St ( hoffe es ist bissel was erkennbar ):
last pid: 67069; load averages: 3.48, 2.60, 2.71 up 14+15:49:05 10:01:58
335 processes: 15 running, 242 sleeping, 78 waiting
CPU states: 3.2% user, 0.0% nice, 60.1% system, 5.6% interrupt, 31.0% idle
Mem: 165M Active, 1612M Inact, 167M Wired, 55M Cache, 112M Buf, 2996K Free
Swap: 4096M Total, 848K Used, 4095M Free
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND
12 root 171 52 0K 8K RUN 2 244.2H 35.06% 35.06% idle: cpu2
105 root 4 0 0K 8K RUN 3 76.1H 34.03% 34.03% bufdaemon
13 root 171 52 0K 8K RUN 1 231.9H 32.86% 32.86% idle: cpu1
14 root 171 52 0K 8K RUN 0 233.0H 32.67% 32.67% idle: cpu0
11 root 171 52 0K 8K RUN 3 229.7H 30.52% 30.52% idle: cpu3
109 root -1 0 0K 8K nfsrcv 2 64.3H 29.83% 29.83% nfsiod 1
108 root -1 0 0K 8K nfsrcv 0 68.0H 29.64% 29.64% nfsiod 0
110 root -1 0 0K 8K CPU0 2 60.7H 26.71% 26.71% nfsiod 2
111 root 8 0 0K 8K RUN 0 31.5H 24.85% 24.85% nfsiod 3
66400 root -1 0 0K 8K CPU2 3 7:26 22.71% 22.71% nfsiod 4
66418 root -1 0 0K 8K CPU3 0 5:30 21.48% 21.48% nfsiod 5
66849 root 8 0 0K 8K RUN 1 2:39 18.99% 18.99% nfsiod 6
62 root -68 -187 0K 8K RUN 3 24.3H 12.74% 12.74% irq65: em1
88 root -44 -163 0K 8K WAIT 0 17.2H 7.23% 7.23% swi1: net
29 root -64 -183 0K 8K RUN 3 275:47 1.22% 1.22% irq16: uhci0
67068 root 96 0 3564K 2832K select 0 0:00 0.32% 0.15% proftpd
344 root 96 0 1328K 824K select 0 62:46 0.05% 0.05% syslogd
67061 root 96 0 3564K 2832K select 2 0:00 0.05% 0.05% proftpd
86757 www 20 0 118M 44620K kserel 1 31.9H 0.00% 0.00% pound
61 root -68 -187 0K 8K RUN 3 109:18 0.00% 0.00% irq64: em0
86 root -28 -147 0K 8K WAIT 2 95:53 0.00% 0.00% swi5: clock sio
89 root -16 0 0K 8K - 1 56:37 0.00% 0.00% yarrow
107 root 20 0 0K 8K syncer 2 26:56 0.00% 0.00% syncer
4 root -8 0 0K 8K - 0 13:48 0.00% 0.00% g_down
3 root -8 0 0K 8K - 1 11:48 0.00% 0.00% g_up
51 root -64 -183 0K 8K WAIT 1 7:54 0.00% 0.00% irq46: amr0
31 root -64 -183 0K 8K WAIT 2 6:57 0.00% 0.00% irq18: uhci2
57694 root 8 0 19352K 9232K nanslp 1 4:00 0.00% 0.00% php
104 root 171 52 0K 8K pgzero 2 3:51 0.00% 0.00% pagezero
112 root 12 0 0K 8K - 3 3:34 0.00% 0.00% schedcpu
2 root -8 0 0K 8K - 2 2:41 0.00% 0.00% g_event
34787 www 20 0 25016K 16972K lockf 0 1:34 0.00% 0.00% httpd
66861 root 8 0 0K 8K - 2 1:33 0.00% 0.00% nfsiod 7
531 nobody 4 0 46796K 46148K kqread 2 1:07 0.00% 0.00% memcached
1452 root 96 0 3016K 2292K select 3 1:03 0.00% 0.00% proftpd
1413 root 96 0 22012K 13008K select 2 1:00 0.00% 0.00% httpd
469 root 96 0 2900K 1476K select 2 1:00 0.00% 0.00% ntpd
488 root 96 0 3476K 2280K select 2 0:37 0.00% 0.00% sendmail
106 root -4 0 0K 8K vlruwt 0 0:36 0.00% 0.00% vnlru
35690 www 20 0 27224K 19484K lockf 3 0:36 0.00% 0.00% httpd
102 root -16 0 0K 8K psleep 2 0:32 0.00% 0.00% pagedaemon
66639 www 20 0 24716K 16220K lockf 2 0:29 0.00% 0.00% httpd
35689 www 20 0 26844K 18248K lockf 3 0:29 0.00% 0.00% httpd
504 root 8 0 1364K 960K nanslp 3 0:21 0.00% 0.00% cron
66862 root 8 0 0K 8K - 3 0:19 0.00% 0.00% nfsiod 8
570 root 96 0 2608K 1372K select 0 0:17 0.00% 0.00% sshd2
38907 www 20 0 24164K 15960K lockf 2 0:15 0.00% 0.00% httpd
100 root -8 0 0K 8K - 0 0:13 0.00% 0.00% fdc0
0 root -16 0 0K 0K sched 2 0:06 0.00% 0.00% swapper
66654 www 20 0 24812K 16528K lockf 0 0:06 0.00% 0.00% httpd
66648 www 20 0 22520K 14044K lockf 3 0:05 0.00% 0.00% httpd
66829 www 20 0 22128K 13632K lockf 1 0:05 0.00% 0.00% httpd
66850 root 96 0 3564K 2832K select 2 0:03 0.00% 0.00% proftpd
66831 www 20 0 22056K 13544K lockf 2 0:03 0.00% 0.00% httpd
66863 root 8 0 0K 8K - 0 0:03 0.00% 0.00% nfsiod 9
66835 www 96 0 22096K 13600K select 0 0:03 0.00% 0.00% httpd
66405 root 96 0 3564K 2832K select 3 0:02 0.00% 0.00% proftpd
66988 root 96 0 3564K 2832K select 0 0:02 0.00% 0.00% proftpd
369 root 96 0 1396K 940K select 2 0:01 0.00% 0.00% rpcbind
492 smmsp 20 0 3356K 2152K pause 1 0:01 0.00% 0.00% sendmail
66958 root 8 0 0K 8K - 2 0:01 0.00% 0.00% nfsiod 10
38481 bind 96 0 4028K 2544K select 1 0:01 0.00% 0.00% named
66966 root 96 0 3564K 2832K select 0 0:01 0.00% 0.00% proftpd
Bin mittlerweile bissel ratlos ... Festplatten sind ok, durchsätze einwandfrei, auch keine dmesg Fehler erkennbar.
So richtig viel zu tun hat der Server auch nicht, ein paar FTP Uploads, verteilen von ca. 25.000 Visits per Tag ( auf andere Webserver ).
Habt Ihr eine Idee?
Danke und viele Grüße
Kai
habe einen FreeBSD Server am laufen, der sich in letzter Zeit extrem komisch verhält.
Ist die 5.4er Version drauf.
Als Dienste laufen die aktuellsten Versionen von proftpd, pound, apache, ssh2. Named läuft als CachingNameServer. Soweit so gut ...
Seit ca. 3 Wochen steigt der LOAD unregelmäßg auf bis zu 10 und bleibt dort. Starte ich named neu, geht er rasch wieder runter. Also named mal abgeschalten und die DNS-Server vom Provider vorgezogen. Load ging wieder hoch :-(
Dann mal netstat -m angeschaut .... sieht so aus wie folgt:
12121069 mbufs in use
4286689353/60000 mbuf clusters in use (current/max)
0/3/6656 sfbufs in use (current/peak/max)
3251597 KBytes allocated to network
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
3747 calls to protocol drain routines
Sieht nicht wirklich gut aus, oder?
Habe laut Handbuch die Netzwerkeinstellungen hochgeschraubt:
kern.ipc.maxsockbuf=2097152
kern.ipc.somaxconn=8192
kern.maxfiles=65536
kern.maxfilesperproc=32768
Brachte aber nichts, die Werte liefen kurze Zeit nach reboot wieder so voll.
Hier noch ein top -St ( hoffe es ist bissel was erkennbar ):
last pid: 67069; load averages: 3.48, 2.60, 2.71 up 14+15:49:05 10:01:58
335 processes: 15 running, 242 sleeping, 78 waiting
CPU states: 3.2% user, 0.0% nice, 60.1% system, 5.6% interrupt, 31.0% idle
Mem: 165M Active, 1612M Inact, 167M Wired, 55M Cache, 112M Buf, 2996K Free
Swap: 4096M Total, 848K Used, 4095M Free
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND
12 root 171 52 0K 8K RUN 2 244.2H 35.06% 35.06% idle: cpu2
105 root 4 0 0K 8K RUN 3 76.1H 34.03% 34.03% bufdaemon
13 root 171 52 0K 8K RUN 1 231.9H 32.86% 32.86% idle: cpu1
14 root 171 52 0K 8K RUN 0 233.0H 32.67% 32.67% idle: cpu0
11 root 171 52 0K 8K RUN 3 229.7H 30.52% 30.52% idle: cpu3
109 root -1 0 0K 8K nfsrcv 2 64.3H 29.83% 29.83% nfsiod 1
108 root -1 0 0K 8K nfsrcv 0 68.0H 29.64% 29.64% nfsiod 0
110 root -1 0 0K 8K CPU0 2 60.7H 26.71% 26.71% nfsiod 2
111 root 8 0 0K 8K RUN 0 31.5H 24.85% 24.85% nfsiod 3
66400 root -1 0 0K 8K CPU2 3 7:26 22.71% 22.71% nfsiod 4
66418 root -1 0 0K 8K CPU3 0 5:30 21.48% 21.48% nfsiod 5
66849 root 8 0 0K 8K RUN 1 2:39 18.99% 18.99% nfsiod 6
62 root -68 -187 0K 8K RUN 3 24.3H 12.74% 12.74% irq65: em1
88 root -44 -163 0K 8K WAIT 0 17.2H 7.23% 7.23% swi1: net
29 root -64 -183 0K 8K RUN 3 275:47 1.22% 1.22% irq16: uhci0
67068 root 96 0 3564K 2832K select 0 0:00 0.32% 0.15% proftpd
344 root 96 0 1328K 824K select 0 62:46 0.05% 0.05% syslogd
67061 root 96 0 3564K 2832K select 2 0:00 0.05% 0.05% proftpd
86757 www 20 0 118M 44620K kserel 1 31.9H 0.00% 0.00% pound
61 root -68 -187 0K 8K RUN 3 109:18 0.00% 0.00% irq64: em0
86 root -28 -147 0K 8K WAIT 2 95:53 0.00% 0.00% swi5: clock sio
89 root -16 0 0K 8K - 1 56:37 0.00% 0.00% yarrow
107 root 20 0 0K 8K syncer 2 26:56 0.00% 0.00% syncer
4 root -8 0 0K 8K - 0 13:48 0.00% 0.00% g_down
3 root -8 0 0K 8K - 1 11:48 0.00% 0.00% g_up
51 root -64 -183 0K 8K WAIT 1 7:54 0.00% 0.00% irq46: amr0
31 root -64 -183 0K 8K WAIT 2 6:57 0.00% 0.00% irq18: uhci2
57694 root 8 0 19352K 9232K nanslp 1 4:00 0.00% 0.00% php
104 root 171 52 0K 8K pgzero 2 3:51 0.00% 0.00% pagezero
112 root 12 0 0K 8K - 3 3:34 0.00% 0.00% schedcpu
2 root -8 0 0K 8K - 2 2:41 0.00% 0.00% g_event
34787 www 20 0 25016K 16972K lockf 0 1:34 0.00% 0.00% httpd
66861 root 8 0 0K 8K - 2 1:33 0.00% 0.00% nfsiod 7
531 nobody 4 0 46796K 46148K kqread 2 1:07 0.00% 0.00% memcached
1452 root 96 0 3016K 2292K select 3 1:03 0.00% 0.00% proftpd
1413 root 96 0 22012K 13008K select 2 1:00 0.00% 0.00% httpd
469 root 96 0 2900K 1476K select 2 1:00 0.00% 0.00% ntpd
488 root 96 0 3476K 2280K select 2 0:37 0.00% 0.00% sendmail
106 root -4 0 0K 8K vlruwt 0 0:36 0.00% 0.00% vnlru
35690 www 20 0 27224K 19484K lockf 3 0:36 0.00% 0.00% httpd
102 root -16 0 0K 8K psleep 2 0:32 0.00% 0.00% pagedaemon
66639 www 20 0 24716K 16220K lockf 2 0:29 0.00% 0.00% httpd
35689 www 20 0 26844K 18248K lockf 3 0:29 0.00% 0.00% httpd
504 root 8 0 1364K 960K nanslp 3 0:21 0.00% 0.00% cron
66862 root 8 0 0K 8K - 3 0:19 0.00% 0.00% nfsiod 8
570 root 96 0 2608K 1372K select 0 0:17 0.00% 0.00% sshd2
38907 www 20 0 24164K 15960K lockf 2 0:15 0.00% 0.00% httpd
100 root -8 0 0K 8K - 0 0:13 0.00% 0.00% fdc0
0 root -16 0 0K 0K sched 2 0:06 0.00% 0.00% swapper
66654 www 20 0 24812K 16528K lockf 0 0:06 0.00% 0.00% httpd
66648 www 20 0 22520K 14044K lockf 3 0:05 0.00% 0.00% httpd
66829 www 20 0 22128K 13632K lockf 1 0:05 0.00% 0.00% httpd
66850 root 96 0 3564K 2832K select 2 0:03 0.00% 0.00% proftpd
66831 www 20 0 22056K 13544K lockf 2 0:03 0.00% 0.00% httpd
66863 root 8 0 0K 8K - 0 0:03 0.00% 0.00% nfsiod 9
66835 www 96 0 22096K 13600K select 0 0:03 0.00% 0.00% httpd
66405 root 96 0 3564K 2832K select 3 0:02 0.00% 0.00% proftpd
66988 root 96 0 3564K 2832K select 0 0:02 0.00% 0.00% proftpd
369 root 96 0 1396K 940K select 2 0:01 0.00% 0.00% rpcbind
492 smmsp 20 0 3356K 2152K pause 1 0:01 0.00% 0.00% sendmail
66958 root 8 0 0K 8K - 2 0:01 0.00% 0.00% nfsiod 10
38481 bind 96 0 4028K 2544K select 1 0:01 0.00% 0.00% named
66966 root 96 0 3564K 2832K select 0 0:01 0.00% 0.00% proftpd
Bin mittlerweile bissel ratlos ... Festplatten sind ok, durchsätze einwandfrei, auch keine dmesg Fehler erkennbar.
So richtig viel zu tun hat der Server auch nicht, ein paar FTP Uploads, verteilen von ca. 25.000 Visits per Tag ( auf andere Webserver ).
Habt Ihr eine Idee?
Danke und viele Grüße
Kai