What about memory usage? Did you see any memory leak?

Let me tell you my story. I am running the software as a proxy. I made the
following change on radiusd.c. The problem you said was fixed.

                        /* if (curreq->finished) { */
                        if (last_request == curreq) {
                                last_request = rl_next(last_request);
                        }
                        rl_delete(curreq);

                        /*
                         *  ??? the client sent us a new request
                         *  with the same ID, while we were
                         *  processing the old one!  What should
                         *  we do?
                         *
                         *  Right now, we just drop the new packet..
                         */
                } /*else {
                        radlog(L_ERR, "Dropping conflicting authentication
packet"
                                        " from client %s:%d - ID: %d",
 
client_name(request->packet->src_ipaddr),
                                        request->packet->src_port,
                                        request->packet->id);
                                request_free(&request);
                                return NULL;
                } */

But there are still some memory leaks inside the code. I saw that almost
every minute. Basically some old requests are not cleaned, and some stay for
days. I still have no clue where the memory leak come from. Currently I
recycle the process twice a day to have a short-term fix. BTW, each of my
boxes (2Gx2cpu VA-Linux) can handle 30 auth requests per second, and 60 acct
requests per second in peak.

If somebody has any clue where the memory leak might come from, it will be
greatly appreciated.

Thanks

Qinxue Chen

> -----Original Message-----
> From: Dieter Faasen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 14, 2001 7:41 AM
> To: [EMAIL PROTECTED]
> Subject: Dropping duplicate authentication packet
> 
> 
> I have been running FreeRadius for about 2 weeks now in a 
> limited live trial 
> without any problems until today.  The system was handling  
> about 5000-8000 
> requests per day, but suddenly I started getting the dreaded 
> 'Dropping 
> duplicate authentication packet' message in the logs.  At the 
> same time 
> authentication became intermittent, the server only 
> responding to some auth 
> requests and ignoring others.  It also appears that the 
> system was using a 
> large number of threads at the time.  Looking at the list 
> archives I see 
> that this problem has been reported before, but without any 
> real resolution, 
> possibly because it is so difficult to reproduce.
> 
> Unfortunately I could not get any diagnostic details from the 
> server when 
> this happened as it was in a live environment. It did 
> disappear however 
> after stopping and restarting radiusd.
> 
> I think this is a very serious problem that needs to be 
> resolved urgently.  
> I suspect that this is caused by some race condition that 
> only manifests 
> itself under very rare conditions.
> 
> BTW at the time I was running the Nov 8 snapshot, 
> authentication from file 
> and accounting to mySQL.
> 
> Thanks,
> Dieter
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at 
> http://explorer.msn.com/intl.asp
> 
> 
> - 
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html
> 


__________________________________________ 
NetZero is now part of United Online
Sign Up for NetZero Platinum Today
Only $9.95 per month! http://www.netzero.net

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to