My server has been slow for two weeks, so I started investigating a little. I see that named is constantly using over 70% CPU (I have 3 cpu cores). I'm worried because my MySQL is especially slow lately, and I'm guessing that may be related. I can see in top that MySQL sometimes uses 97-100% cpu for up to a minute, and then falls back to below 0.5, which I'm assuming is not normal. No backups are running right now, or at least they shouldn't. My memory usage seems fine, as free -m shows 0 for Swap.
When I restart named, its cpu usage just goes right back to 70-75%.
I'm pretty sure that's not how it's supposed to be ... also, I wonder if I actually need it at all? I don't use the server as DNS server; all DNS settings are made at the domain registrars. But I don't want to make very risky changes because a lot of people are working on web applications on this server.
Do I need named?
If not, how can I permanently disable it?
If yes, how can I see what's causing it to use up so much cpu?
A sample of top (at a moment that mysqld is feeling calm):
When I restart named, its cpu usage just goes right back to 70-75%.
I'm pretty sure that's not how it's supposed to be ... also, I wonder if I actually need it at all? I don't use the server as DNS server; all DNS settings are made at the domain registrars. But I don't want to make very risky changes because a lot of people are working on web applications on this server.
Do I need named?
If not, how can I permanently disable it?
If yes, how can I see what's causing it to use up so much cpu?
A sample of top (at a moment that mysqld is feeling calm):
Code:
top - 15:12:41 up 18 days, 13:28, 1 user, load average: 1.42, 1.49, 1.48
Tasks: 142 total, 1 running, 141 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.9 us, 12.4 sy, 0.0 ni, 75.8 id, 3.0 wa, 0.0 hi, 0.0 si, 4.9 st
KiB Mem: 4061420 total, 3836464 used, 224956 free, 231892 buffers
KiB Swap: 0 total, 0 used, 0 free, 1976336 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18405 bind 20 0 122m 15m 2200 S 71.5 0.4 4:54.13 named
18032 diradmin 39 19 16876 1044 848 S 0.3 0.0 0:04.53 ncftpput
25229 mysql 20 0 1526m 1.2g 5464 S 0.3 30.2 292:12.82 mysqld