Maintained by: NLnet Labs

[Unbound-users] Is there any memory leak in unbound?

Tao Ma
Tue Sep 8 08:30:54 CEST 2009


Hi guys,I got a problem.

I installed unbound 1.3.3 and found when the unbound is running,it use more and more memory..
I even found it occupied 96% of memory and then was killed by the system.When it was killed,the following log was found in /var/log/messages("Dnsserv" is the hostname):
Sep  8 00:21:02 Dnsserv Out of memory: kill process 23999 (unbound) score 125734 or a child
Sep  8 00:21:02 Dnsserv Killed process 23999 (unbound)


I only specify some normal items in unbound.conf and it was shown bellow:
server:
        verbosity: 1
        statistics-interval: 1
        num-threads: 1
        interface: 0.0.0.0
        interface-automatic: no
        port: 53
        msg-cache-size: 4m
        rrset-cache-size: 4m
        do-ip4: yes
        do-ip6: no 
        do-udp: yes
        access-control: 10.0.0.0/8 allow
        access-control: 127.0.0.0/8 allow
        statistics-interval: 10
        #chroot: "/var/unbound"
        username: "unbound"
        directory: "/var/unbound"
        logfile: ""
        use-syslog: no 
        log-time-ascii: yes
        pidfile: "/var/run/unbound.pid"
        root-hints: "/var/unbound/named.cache"
        hide-version: no
        version: "hiahia"

local-zone: "mydns123.com." static
        local-data: "mydns123.com. SOA ns.mydns123.com tj.mydns123.com. 1 28800 7200 604800 86400" 
        local-data: "mydns123.com. IN NS ns.mydns123.com."
        local-data: "mydns123.com. IN NS ns2.mydns123.com."
        local-data: "ns.mydns123.com. IN A 192.1.1.1"
        local-data: "ns1.mydns123.com. IN A 192.1.1.2"
        local-data: "www.mydns123.com. IN A 192.1.1.3"
        local-data: "ftp.mydns123.com. IN A 192.1.1.4"
        local-data: "wa.mydns123.com. IN A 192.1.1.5"
        local-data: "pp.mydns123.com. IN CNAME wa.mydns123.com."

        local-zone:"1.1.192.in-addr.arpa" static
        local-data: "mydns123.com. SOA ns.mydns123.com tj.mydns123.com. 1 28800 7200 604800 86400" 
        local-data: "mydns123.com. IN NS ns.mydns123.com."
        local-data: "mydns123.com. IN NS ns2.mydns123.com."
        local-data:"1.1.1.192.in-addr.arpa IN PTR ns.mydns123.com."
        local-data:"2.1.1.192.in-addr.arpa IN PTR ns1.mydns123.com."
        local-data:"3.1.1.192.in-addr.arpa IN PTR www.mydns123.com."
        local-data:"4.1.1.192.in-addr.arpa IN PTR ftp.mydns123.com."
        local-data:"5.1.1.192.in-addr.arpa IN PTR was.mydns123.com."

Is there any mistake in my configuration?Or is it a bug of unbound?




      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20090908/4a4199d3/attachment.htm>