LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-16-2010, 04:29 PM   #1
crypted
Member
 
Registered: Jan 2004
Posts: 59

Rep: Reputation: 15
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.
 
Old 04-16-2010, 04:48 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
So what's your question?

Is it the latest version?
 
Old 04-16-2010, 10:02 PM   #3
crypted
Member
 
Registered: Jan 2004
Posts: 59

Original Poster
Rep: Reputation: 15
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#
 
Old 04-18-2010, 10:56 AM   #4
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
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
 
  


Reply



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
Flash eats 100% CPU xgreen Ubuntu 3 04-27-2009 04:21 PM
aaa help! X eats up cpu 100%! nass Slackware 17 04-03-2009 02:19 PM
copying over lan eats CPU Sammael Linux - General 6 08-21-2006 02:47 PM
FireFox eats 98% of my CPU athens101 Linux - Software 5 03-19-2005 04:35 PM
kio_thumbnail eats user CPU gavinbeatty Mandriva 0 06-15-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration