LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-14-2011, 03:42 PM   #1
CTRLBREAK
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 0
Bind memory usage keeps increasing


Hello there,

I'm running a recursive DNS server on Ubuntu Server 10.04 64bits and Bind 9.7.0-p1 and having issues with memory usage.

The named process memory usage keeps increasing from about 500Mb to 4Gig inside of a couple of weeks.

If I don't restart Bind in the mean time the swap fills and performance gets very bad.

Would greatly appreciate any input on that problem.

Thanks.
 
Old 06-14-2011, 04:24 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,883

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

It shouldn't happen, but anyway you can use max-cache-size to specify the maximum amount of memory used for cache.

Regards
 
Old 06-14-2011, 05:02 PM   #3
CTRLBREAK
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the reply,

I will give it a try, that could be the case here... As soon as I issue the "service bind9 restart" command the memory usage goes back to just 500Mb.
 
Old 06-17-2011, 08:05 AM   #4
CTRLBREAK
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Hello,

I've tried adding the following setting in Bind: max-cache-size 2048M;

My server memory usage is still going up all the time. I can see that the named process is using over 3g of memory.
Here is top's output:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11158 bind 20 0 3864m 3.5g 1916 S 31 91.5 2350:39 named

Any idea why this is happening?

Thanks a lot.
 
Old 06-17-2011, 08:56 AM   #5
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
Did you restart named service after making config changes ?

Quote:
Originally Posted by CTRLBREAK View Post
Hello,

I've tried adding the following setting in Bind: max-cache-size 2048M;

My server memory usage is still going up all the time. I can see that the named process is using over 3g of memory.
Here is top's output:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11158 bind 20 0 3864m 3.5g 1916 S 31 91.5 2350:39 named

Any idea why this is happening?

Thanks a lot.
 
Old 06-17-2011, 04:45 PM   #6
CTRLBREAK
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Yes I did restart the bind9 service and it did free up most of my memory but afterward it keeps growing.

Thanks for the reply anyway.
 
Old 06-17-2011, 05:34 PM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,883

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

I guess this is the total amount of memory used by bind during its operation. Bind uses memory to load its code, shared libraries etc and to build its cache.
See the output of:
Code:
pmap `pidof named`
that is equal to the VIRT column of top command.
So I don't think you can make a secure conclusion from top output about the total cache size.

You can add a statistics channel and watch your cache behavior. To do so, add
Code:
statistics-channels {
inet 127.0.0.1 port 9999 allow { 127.0.0.1; };
};
and visit http:localhost:9999

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Increasing BIND forwarders timeout WojtekO Linux - Networking 3 04-28-2011 06:57 AM
Memory usage increasing Debian Lenny Apache2 server johnsan Linux - Newbie 4 05-11-2010 06:50 AM
Memory usage constantly increasing reverse Debian 1 11-11-2007 03:15 AM
mysql increasing memory usage over time jman623 Linux - Server 0 08-21-2007 07:44 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM


All times are GMT -5. The time now is 04:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration