I'm using ntop version 2.0.99 from 04/12/02, it now daemonizes fine, I'm
using the netflow plugin as my only data source, it continues to consume
memory until finally crashing. I'm using minimal options to launch it,
./ntop -u root -d, I've got 512MB and it gets up until about 50% before
dying. I read it keeps a hash in memory of the traffic records, it
either isn't freeing that on mine, or I'm running Ntop incorrectly, or
it has a severe memory leak, any ideas or recommendations would be
appreciated. I did get some info in syslog, about the crash, I'll paste
some of the relevant info, looks like after it hits 32768 hash size, it
goes crazy, does about 5000 lines in syslog in 30 seconds and dies.

Regards
MIKE


Apr 11 22:38:23 tc3net ntop[14417]: Started thread (9226) for network
packet sniffing on eth0. 
Apr 11 22:38:23 tc3net ntop[14425]: Extending hash size
[newSize=64][deviceId=1]
Apr 11 22:38:23 tc3net ntop[14425]: Extending hash size
[newSize=128][deviceId=1]
Apr 11 22:38:24 tc3net ntop[14425]: Extending hash size
[newSize=256][deviceId=1]
Apr 11 22:38:24 tc3net ntop[14425]: Extending hash size
[newSize=512][deviceId=1]
Apr 11 22:38:26 tc3net ntop[14425]: Extending hash size
[newSize=1024][deviceId=1]
Apr 11 22:38:32 tc3net ntop[14425]: Extending hash size
[newSize=2048][deviceId=1]
Apr 11 22:38:47 tc3net ntop[14425]: Extending hash size
[newSize=4096][deviceId=1]
Apr 11 22:39:08 tc3net ntop[14426]: Resetting traffic statistics...
Apr 11 22:39:09 tc3net ntop[14425]: Extending hash size
[newSize=64][deviceId=1]
Apr 11 22:39:09 tc3net ntop[14425]: Extending hash size
[newSize=128][deviceId=1]
Apr 11 22:39:09 tc3net ntop[14425]: Extending hash size
[newSize=256][deviceId=1]
Apr 11 22:39:10 tc3net ntop[14425]: Extending hash size
[newSize=512][deviceId=1]
Apr 11 22:39:12 tc3net ntop[14425]: Extending hash size
[newSize=1024][deviceId=1]
Apr 11 22:39:17 tc3net ntop[14425]: Extending hash size
[newSize=2048][deviceId=1]
Apr 11 22:39:35 tc3net ntop[14425]: Index error
idx=2049/deviceId=1:0-2048 @ [netflowPlugin.c:184] 
Apr 11 22:39:35 tc3net ntop[14425]: Index error
idx=2049/deviceId=1:0-2048 @ [pbuf.c:138] 
Apr 11 22:39:35 tc3net ntop[14425]: Extending hash size
[newSize=4096][deviceId=1]
Apr 11 22:40:25 tc3net ntop[14427]: Extending hash size
[newSize=64][deviceId=0]
Apr 11 22:40:28 tc3net ntop[14425]: Extending hash size
[newSize=8192][deviceId=1]
Apr 11 22:43:15 tc3net ntop[14425]: Extending hash size
[newSize=16384][deviceId=1]
Apr 11 22:45:42 tc3net ntop[14427]: Extending hash size
[newSize=128][deviceId=0]
Apr 11 22:48:25 tc3net ntop[14422]: Purging completed in 0 sec [11 hosts
deleted]
Apr 11 22:50:17 tc3net ntop[14425]: Extending hash size
[newSize=32768][deviceId=1]
Apr 11 22:53:27 tc3net ntop[14422]: Purging completed in 0 sec [12 hosts
deleted]
Apr 11 22:58:29 tc3net ntop[14422]: Purging completed in 0 sec [19 hosts
deleted]
Apr 11 23:03:32 tc3net ntop[14422]: Purging completed in 1 sec [14 hosts
deleted]
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32769/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32769/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32770/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32770/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32771/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32771/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32772/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32772/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32773/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32773/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32774/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32774/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32775/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32775/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32776/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32776/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32775/deviceId=1:0-32768 @ [netflowPlugin.c:187] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32775/deviceId=1:0-32768 @ [pbuf.c:137] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32776/deviceId=1:0-32768 @ [netflowPlugin.c:187] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32776/deviceId=1:0-32768 @ [pbuf.c:137] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32777/deviceId=1:0-32768 @ [netflowPlugin.c:184] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32777/deviceId=1:0-32768 @ [pbuf.c:138] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32777/deviceId=1:0-32768 @ [netflowPlugin.c:187] 
Apr 11 23:07:05 tc3net ntop[14425]: Index error
idx=32777/deviceId=1:0-32768 @ [pbuf.c:137] 
Apr 11 23:07:06 tc3net ntop[14425]: Index error
idx=32778/deviceId=1:0-32768 @ [netflowPlugin.c:187] 
Apr 11 23:07:06 tc3net ntop[14425]: Index error
idx=32778/deviceId=1:0-32768 @ [pbuf.c:137] 
Apr 11 23:07:06 tc3net ntop[14425]: Index error
idx=32779/deviceId=1:0-32768 @ [netflowPlugin.c:187] 
etc.
etc..







_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

Reply via email to