Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > "netstat" taking 90% CPU

"netstat" taking 90% CPU
Thread Tools
Senior User
Join Date: Mar 2000
Location: London
Status: Offline
Reply With Quote
Jul 13, 2004, 06:19 PM
 
Hi All,

I've got a rev B G5 (2.0Ghz) and root is running netstat, which taking up to 90% of the CPUs (between 70% and 90%, but usually around 90%).

I'm not running netstat via the Network Utility, though I do have 5 or so windows open in Safari (but they're relatively simple sites, like MacNN).

I haven't encountered this behaviour on my G4/500 (both machines are running OSX 10.3.4)

If I force quit the app, it just starts up again. Restarting and logging out (which I'd rather not get into the habit of doing) solve the problem, for a while.

Why would netstat even be running, much less taking just about all of my CPU cycles?

TIA for any help,

Chas
     
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Jul 14, 2004, 04:21 AM
 
I've had the same prob. I just quit it and it goes back to taking hardly any CPU...
I free'd my mind... now it won't come back.
     
chasg  (op)
Senior User
Join Date: Mar 2000
Location: London
Status: Offline
Reply With Quote
Jul 14, 2004, 04:33 AM
 
Hi RevEvs, thanks for the info

I wonder what the heck it thinks it's doing? (I didn't just invest in my nice new dual processor Mac to have those processors max out all day long so that some small piece of software can look up ip addresses...)
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jul 14, 2004, 04:58 AM
 
Next time this happens, try looking in Activity Monitor with the "Show" menu set to "All processes, hierarchically." Then you can see what's invoking netstat. It could be useful to know.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
chasg  (op)
Senior User
Join Date: Mar 2000
Location: London
Status: Offline
Reply With Quote
Jul 14, 2004, 05:06 AM
 
Hi Chuckit,

So, what's "hierarchically" do then? (I see that hierarchically, well, puts processes in hierarchical order, but what's that order based on?).

I usually just show my own processes, based on CPU usage (I use MenuMeters to put up a graph of CPU usage in my menu bar, which is how I first noticed that netstat was doing strange things)
     
Senior User
Join Date: Jan 2003
Location: Stuttgart, Germany
Status: Offline
Reply With Quote
Jul 14, 2004, 06:16 AM
 
Originally posted by chasg:
So, what's "hierarchically" do then? (I see that hierarchically, well, puts processes in hierarchical order, but what's that order based on?).
If a process A spawns another process B, then B is a child of A. Every process is a child of 'init', which always is the first thing to get started after the kernel has been initialized. So, if something starts up 'netstat', it should appear as a child of the offending process in Activity Monitor.
     
chasg  (op)
Senior User
Join Date: Mar 2000
Location: London
Status: Offline
Reply With Quote
Jul 14, 2004, 07:26 AM
 
great info, thanks! (how useful :-)
     
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Jul 14, 2004, 10:09 AM
 
Originally posted by Chuckit:
Next time this happens, try looking in Activity Monitor with the "Show" menu set to "All processes, hierarchically." Then you can see what's invoking netstat. It could be useful to know.
Cool. never noticed the hierachy option before.
I free'd my mind... now it won't come back.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:10 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2