Страница 1 из 1

ошибка в логах bind

Добавлено: 2008-05-22 18:38:05
freeman_tnu
Начали у юзеров очень долго открываться странички
Стоит кеширующий

Код: Выделить всё

testserver# named -v BIND 9.3.4-P1

Код: Выделить всё

testserver# uname -a
FreeBSD testserver 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Fri Feb  1 19:38:28 EET 2008     root@newgate.domain.com:/usr/obj/usr/src/sys/newgate  i386

Код: Выделить всё

testserver# cat /etc/namedb/named.conf | grep -v ^$ | grep -v ^#
acl "corpnets" { 192.168.1.0/24; 192.168.4.0/24; 192.168.7.0/24; 88.0.0.0/8; 127.0.0.1; };
options {
   directory "/etc/namedb";
   pid-file "named.pid";
   allow-query { "corpnets"; };
   forwarders { 88.х.х.х; 88.х2.х2.х2; };
};
   zone "." {
       type hint;
       file "named.root"; };
   zone "0.0.127.in-addr.arpa" {
       type master;
       file "localhost.rev";
       notify no; };
logging{
  channel simple_log {
    file "/var/log/named/bind.log" versions 3 size 5m;
    severity warning;
    print-time yes;
    print-severity yes;
    print-category yes;
  };
  category default{
    simple_log;
  };
};
В логах бинда наблюдаю

Код: Выделить всё

21-May-2008 10:10:06.070 client: warning: client 192.168.7.42#1527: error sending response: not enough free resources
21-May-2008 10:10:17.858 client: warning: client 192.168.7.207#1127: error sending response: not enough free resources
21-May-2008 10:10:25.277 client: warning: client 192.168.7.66#1027: error sending response: not enough free resources
21-May-2008 10:10:26.178 client: warning: client 192.168.7.250#2768: error sending response: not enough free resources
21-May-2008 10:10:33.172 client: warning: client 192.168.7.43#3331: error sending response: not enough free resources
21-May-2008 10:10:42.139 client: warning: client 192.168.7.207#1127: error sending response: not enough free resources
21-May-2008 10:10:49.356 client: warning: client 192.168.7.169#1036: error sending response: not enough free resources
Каких ресурсов ему нехватает?

Код: Выделить всё

testserver# sysctl -a | grep maxus
kern.maxusers: 384

Код: Выделить всё

testserver# netstat -mb 
1063/1247/2310 mbufs in use (current/cache/total)
1062/610/1672/25600 mbuf clusters in use (current/cache/total/max)
1061/603 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
2390K/1531K/3921K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/5/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
0 calls to protocol drain routines

Код: Выделить всё

testserver# sysctl -a | grep mbuf
mbuf_tag     1     1K       -212679483  32,256
mbuf_jumbo_1:  16384,        0,      0,      0,        0
mbuf_jumbo_9:   9216,        0,      0,      0,        0
mbuf_jumbo_p:   4096,        0,      0,      0,        0
mbuf_cluster:   2048,    25600,   1665,      7, 103083039
mbuf:            256,        0,   1667,    643, 2466000733
mbuf_packet:     256,        0,   1674,    636, 2403354945

Код: Выделить всё

testserver# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad2s1a    989M     78M    832M     9%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad2s1f     14G    554M     13G     4%    /home
/dev/ad2s1e    989M     32K    910M     0%    /tmp
/dev/ad2s1g     44G    3.6G     37G     9%    /usr
/dev/ad2s1d    9.5G    3.6G    5.1G    41%    /var

Re: ошибка в логах bind

Добавлено: 2008-05-22 18:54:16
Alex Keda
ддос?

Re: ошибка в логах bind

Добавлено: 2008-05-22 21:36:14
freeman_tnu
Хм... , сменю айпи, благо есть возможность, и отрапортую.
Но кажется. что это маловероятно в данном случае.
Подобное обсуждалось здесь
Увеличил количество mbuf кластеров до kern.ipc.nmbclusters="65536" - в логах продолжается та же байда...

Re: ошибка в логах bind

Добавлено: 2008-05-23 9:03:17
freeman_tnu
Сделал все по данной статье и сразу в логах стало чисто, вечером еще раздачу инета при нагрузке потестирую (около 300 абонентов)

Re: ошибка в логах bind

Добавлено: 2011-03-15 13:48:37
goodle
Та же самая петрушка! Вышеуказанную статью применил, а результат нулевой :(

Код: Выделить всё

%uname -smr
FreeBSD 8.1-RELEASE-p2 i386

Код: Выделить всё

%named -v
BIND 9.8.0

Код: Выделить всё

%cat /etc/namedb/named.conf | grep -v ^$ | grep -v ^# | grep -v //
options {
        directory       "/etc/namedb";
        pid-file        "/var/run/named/pid";
        dump-file       "/var/dump/named_dump.db";
        statistics-file "/var/stats/named.stats";
        forwarders      { xxx.xxx.xxx.xxx; xxx.xxx.xxx.xxx; };
        version         "Вроде бы Windows XP home edition, а вообще х.з. :)";
	listen-on {
                127.0.0.1;
                192.168.0.10;
        };
	allow-recursion {
                127.0.0.1;
                192.168.0.0/24;
        };
        recursive-clients 300;
	allow-query {
		192.168.0.0/24;
		127.0.0.1;
	};
};
key DHCP_UPDATER {
	algorithm hmac-md5;
        secret "xxx==";
zone "." {
        type hint;
        file "named.root";
};
zone "localhost"        { type master; file "master/localhost-forward.db"; };
zone "127.in-addr.arpa" { type master; file "master/localhost-reverse.db"; };
zone "zone.local" {
        type master;
        file "master/zone.local";
	check-names ignore;
        allow-update { key DHCP_UPDATER; };
};
zone "0.168.192.in-addr.arpa" {
        type master;
        file "master/0.168.192.rev";
	check-names ignore;
	allow-update { key DHCP_UPDATER; };
};
logging {
        channel update_debug {
            file "/var/log/named-update.log";
            severity  debug 3;
            print-category yes;
            print-severity yes;
            print-time     yes;
        };
        channel security_info    {
            file "/var/log/named-auth.log";
            severity  info;
            print-category yes;
            print-severity yes;
            print-time     yes;
        };
      category update { update_debug; };
      category security { security_info; };
      };
include "/etc/namedb/rndc.key"; 
В логах наблюдаю те же "error sending response: not enough free resources"

Код: Выделить всё

%netstat -mb
1154/766/1920 mbufs in use (current/cache/total)
1153/675/1828/262144 mbuf clusters in use (current/cache/total/max)
1152/384 mbuf+clusters out of packet secondary zone in use (current/cache)
0/14/14/12800 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/6400 9k jumbo clusters in use (current/cache/total/max)
0/0/0/3200 16k jumbo clusters in use (current/cache/total/max)
2594K/1597K/4192K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/5/10240 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
0 calls to protocol drain routines
В сети около 100 машин и нагрузка на сервер довольно слабая. Может будут у кого какие предположения?

Re: ошибка в логах bind

Добавлено: 2011-03-17 8:28:44
goodle
Неужто никто не знает? :(