[Pdns-users] recursor problem
Sergey Alexanov
freak at volia.net
Mon Oct 6 09:46:44 UTC 2008
Florian Weimer ?????:
> * Sergey Alexanov:
>
>> I've gotten an emergency shutdown of powerdns recursor running in
>> production.
>> There are only one record in logs about this incident:
>>
>> Sep 22 23:34:07 kit pdns_recursor[77218]: STL Exception: St9bad_alloc
>
> This probably means that the recursor ran out of RAM. Try lowering
> the limit on the number of records which are stored in the cache.
>
Seems to me, there are one reason to take out of RAM: memory leak in new
version of powerdns recursor, of course if your guess right.
I've rolled back to 3.1.4 version and everything is ok.
Moreover, the cache size of recursor is restricted to 2 million records
and memory usage in that particularly system is:
# vmstat
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr ad4 ad5 in sy cs us
sy id
2 1 0 639372 1479904 26 0 0 0 20 4 0 0 131 42 62
23 2 75
# rec_control get cache-entries
1988201
# ps xawu | grep pdns_recursor | grep -v grep
bind 38083 15.0 12.8 434276 433796 ?? Ss Mon03PM 1136:18.58
/usr/local/sbin/pdns_recursor --config-dir=/usr/local/etc/powerdns
More information about the Pdns-users
mailing list