Ntop pegging CPU after upgrade to 2.0.1
-
Since upgrading to 2.0.1, ntop seems to go immediately into a race condition, hogging up all of one of the CPU cores even though there's very little traffic on the box. I've removed and re-installed the ntop package, but the problem persists. I've let it run for several minutes, thinking it might be busy with some start-up task and once that finished it would calm down, but to no avail.
I'm running it on a PC (amd64) with a 2.2GHz Core2 Duo CPU and 4GB of RAM and GigE Intel NICs on all the interfaces, so it's not getting starved for resources.
With ntop service stopped:
last pid: 50323; load averages: 0.15, 0.56, 0.61 up 0+00:27:38 21:10:28 44 processes: 1 running, 43 sleeping CPU: 0.8% user, 0.0% nice, 0.2% system, 0.0% interrupt, 99.1% idle Mem: 45M Active, 291M Inact, 106M Wired, 1260K Cache, 112M Buf, 1537M Free Swap: 4096M Total, 4096M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 48267 root 1 46 0 53596K 15632K nanslp 1 0:00 0.10% php 41553 root 1 44 0 6588K 4460K kqread 1 0:06 0.00% lighttpd 44448 root 1 44 0 54620K 19616K lockf 0 0:03 0.00% php 44567 root 1 45 0 53596K 16020K lockf 0 0:02 0.00% php 22251 root 1 44 0 4948K 2500K select 1 0:01 0.00% syslogd
…and after starting ntop:
last pid: 51246; load averages: 0.68, 0.62, 0.63 up 0+00:28:47 21:11:37 45 processes: 2 running, 43 sleeping CPU: 51.6% user, 0.0% nice, 0.6% system, 0.0% interrupt, 47.8% idle Mem: 98M Active, 291M Inact, 106M Wired, 1260K Cache, 112M Buf, 1484M Free Swap: 4096M Total, 4096M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 22437 root 1 117 0 84248K 57348K CPU1 0 0:58 94.87% ntop 48267 root 1 76 0 53596K 15852K accept 0 0:00 0.20% php 9331 root 1 45 0 53596K 18196K accept 0 0:01 0.10% php 41553 root 1 44 0 6588K 4460K kqread 0 0:06 0.00% lighttpd 44448 root 1 45 0 54620K 19616K accept 1 0:03 0.00% php
Any thoughts? Ntop isn't an essential service for this particular installation, but I've gotten used to being able to run it. I'd appreciate any fixes or suggestions.
Everything else seems fine thus far post-upgrade.
Have a safe and enjoyable holiday season - if you're celebrating - in any case.
Dave