PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.65k stars 906 forks source link

Possible memory leakage in webserver pdns-2.9.21.1 #206

Closed Habbie closed 11 years ago

Habbie commented 11 years ago

Hi,

i discover that pdns process get 20 MB on virtual memory size on 64bit Debian linux, after access to a webserver.

ns1:~# ps -o pid,pcpu,rss,vsize,cmd -u pdns PID %CPU RSS VSZ CMD 7060 0.1 16576 4660552 /usr/sbin/pdns_server-instance --daemon --guardian=yes ns1:~# lynx -connect_timeout=10 -auth=root:pass --dump "http://localhost:8081" > /dev/null ns1:~# ps -o pid,pcpu,rss,vsize,cmd -u pdns PID %CPU RSS VSZ CMD 7060 0.1 16596 4676944 /usr/sbin/pdns_server-instance --daemon --guardian=yes ns1:~# lynx -connect_timeout=10 -auth=root:pass --dump "http://localhost:8081" > /dev/null ns1:~# ps -o pid,pcpu,rss,vsize,cmd -u pdns PID %CPU RSS VSZ CMD 7060 0.1 16616 4693336 /usr/sbin/pdns_server-instance --daemon --guardian=yes ns1:~#

ns1:~# echo 4676944-4660552 | bc 16392 ns1:~# echo 4693336-4676944 | bc 16392 ns1:~#

On one server we got so 62 GB VSZ after a few days.

It is not a problem on a 'normal' server, but kill everytimes a vServer with virtuozzo.

Regards,

Dimitrij

Habbie commented 11 years ago

Author: ahu Can't reproduce, was probably fixed in commit 684