[Pdns-users] v3.1 memory leak?
Stefan Schmidt
zaphodb at zaphods.net
Fri Jul 6 13:08:39 UTC 2012
On Fri, Jul 6, 2012 at 2:21 PM, Peter Gervai <grinapo+pdnsdevel at gmail.com>wrote:
> Hello,
>
Hi Peter,
I am using Debian/sid packaged v3.1-1. This config is a bit peculiar:
> receives AXFRs for a given domain mostly every minute, and the zone
> contains a few thousands of hosts. pdns uses psql backend.
>
> It survives usually 1-2 weeks without OOM. I see no obvious way to
> control memory usage of pdns server, and leaving it working usually
> reaches gigabytes pretty fast from the supposedly normal 3-400MB size.
PowerDNS server uses several caches, all of which you can limit in the
amount of time (TTL) that they store entries for.
See http://doc.powerdns.com/all-settings.html *cache-ttl
and http://doc.powerdns.com/performance-settings.html
By default i think packet cache and query cache will allow for storing the
cache entries for a potentially unlimited amount of time - or rather for
the TTL that they actually have configured in the respective backends.
If you also have many clients querying your server for recursive answers
you may want to take an extra careful look at the negative caching ttl
which by default is set to 60 seconds.
Basically what i'm saying is that queries to your server can cause memory
usage and potentially gigabytes of that if these values are not limited and
you're getting a lot of queries.
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20120706/77d4ab25/attachment-0001.html>
More information about the Pdns-users
mailing list