LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   MyDNS eats up CPU like mad (https://www.linuxquestions.org/questions/linux-server-73/mydns-eats-up-cpu-like-mad-802461/)

crypted 04-16-2010 04:29 PM

MyDNS eats up CPU like mad
 
After about 14 hours of running constantly, top shows that MyDNS is using 99 to 100% CPU. This is insane. There isn't any hints of why this is happening in the deamon logs.

Code:

my:/home/dingle# ps aux |grep mydns
nobody  24157  0.0  0.0  27364  1596 ?        Ss  Apr15  0:00 /usr/local/sbin/mydns -b
nobody  24158 83.1  0.1  29120  3344 ?        R    Apr15 1146:34 /usr/local/sbin/mydns -b
root    25565  0.0  0.0  5160  784 pts/0    R+  17:25  0:00 grep mydns
my:/home/dingle#


Code:

PID  USER    PR  NI  VIRT  RES  SHR S %CPU %MEM  TIME+  COMMAND
24158 nobody  20  0 29120 3344  788 R  99  0.2  1148:24 mydns

Heck, it only has 11 domains to handle.

AlucardZero 04-16-2010 04:48 PM

So what's your question?

Is it the latest version?

crypted 04-16-2010 10:02 PM

I guess the question is why would this be so high and what to do about it?


my:/home/dingle# /usr/local/sbin/mydns --version
mydns (mydns) 1.2.8.25 (MySQL 5.0.51a)

Copyright (C) 2002-2005 Don Moore 2007-2008 Howard Wilkinson
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
my:/home/dingle#

markseger 04-18-2010 10:56 AM

The very first question I would ask if what happens if you reboot. If the problem goes away I suspect this doesn't do it.

The next step is to have a monitoring tool running in the background logging what's going on so you can then go back and see if there are clues leading up to how your system got into the states it's in. My solution is to ALWAYS running collectl continuously so if something does go wrong you'll at least have some data to try and traceback what happening. In the case of collectl, it collects 100s of data points every 10 seconds and process/slab data every minute. Don't freak out - it uses <.1% of your CPU while doing this. You can also plot the data with colplot, both available on sourceforge.

An alternative is to run sar, which a number of people who haven't discovered collectl yet run. ;) One word of caution - the default is to collectl data samples every 10 minutes but that's far too infrequent to be of value. Sometimes you get lucky and will actually see something if conditions persists for a long time, but if you do run sar do yourself a favor and crank up the monitoring frequency to 10 seconds. It won't hurt you and the resultant data will be a lot more interesting

-mark


All times are GMT -5. The time now is 05:11 PM.