Read the documentation - docs/FAQ has a discussion on memory usage. We've also talked this through many, many times on this list. Try the back traffic.
-----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marius Onica Sent: Thursday, July 28, 2005 8:28 AM To: [email protected] Subject: RE: [Ntop] cvs problems - max num tcp session Burton, Unfortunately I'm not a C guru, so on my own (without your help) I can't trace the code. I'm using the -x (-X) switch because right now on a smp machine with 2 Gb of ram and without the -x (-X) switch ntop is consuming over 40% of the processor resources (on both processors) and 40% of the disponible memory. It seems that Ntop is a very resource hungry apllication :). I'm using the switches in order to reduce the apetite of ntop. Now I'm stuck and don't know what to do. I'm willing to help but without you is nearly impossible. TIA, Marius > Once it hits maximum, it will not store additional sessions: > > if(myGlobals.device[actualDeviceId].numTcpSessions >= > myGlobals.runningPref.maxNumSessions) { > static char messageShown = 0; > > if(!messageShown) { > messageShown = 1; > traceEvent(CONST_TRACE_INFO, "WARNING: Max num TCP sessions > (%u) reached (see -X)", > myGlobals.runningPref.maxNumSessions); > } > > return(NULL); > } > > You'll need to trace what would cause numTcpSessions NOT to eventually > be decremented. > > However, -X and -x are crude, chain-saw types of limits and > side-effects aren't surprising. > > You should probably move this discussion to ntop-dev as you start > tracing the code. > > -----Burton > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Marius Onica > Sent: Thursday, July 28, 2005 4:16 AM > To: [email protected] > Subject: [Ntop] cvs problems - max num tcp session > > Hi, > > It seems that the cvs ntop has a problem when started with the -X > (max.num.tcp session). Namely, after reaching the max number tscp > sessions ntop stops measuring any throughput. For example in the > network load it shows zerro throughput, in the host information table > it shows that every host is inactive. > > Any ideas ? > > TIA, > > Marius > > > ______________________________________ > Inflex - installed on mailserver for domain @uoradea.ro Queries to: > [EMAIL PROTECTED] _______________________________________________ > Ntop mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop > > _______________________________________________ > Ntop mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop > ______________________________________ Inflex - installed on mailserver for domain @uoradea.ro Queries to: [EMAIL PROTECTED] _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
