Search squid archive

RE: Memory leak in 3.2.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I posted a patch to the squid-dev mailing list.
After 24 hours and over 1,000,000 HTTP queries, memory usage is 1.8 GB.
There are 45 cbdata IdentStateData structures allocated, with 3 in use.
There are 283 cbdata ConnStateData structures allocated, with 147 in use.
There are 321728 Connection structures allocated, with 321709 in use.

The major ident leak has been plugged, but it looks like there is still a leak of
the Connection structures.

Mike Mitchell
________________________________________
From: Mike Mitchell
Sent: Friday, December 21, 2012 7:38 AM
To: squid-users@xxxxxxxxxxxxxxx
Subject: RE: Memory leak in 3.2.5

The ident memory is properly freed only if the ident query suceeds.
The ident memory is not freed if the ident query times out or if the
client is no longer around for the result.

I'm testing a patch and I should have something by the end of the day.

Mike Mitchell

________________________________________
From: Mike Mitchell
Sent: Thursday, December 20, 2012 6:06 PM
To: squid-users@xxxxxxxxxxxxxxx
Subject: RE: Memory leak in 3.2.5

I used cachemgr.cgi and looked at the memory utilization.
My first four rows are:

       Pool                                    Allocated                    In Use
                                                 (#)        (KB)             (#)        (KB)
cbdata IdentStateData (21)     1088861  4414992     1088861  4414992
mem_node                              259773  1049240       259524  1048234
cbdata ConnStateData (20)     1274359    448017     1274358    448017
Connection                            2152578    403609     2152521    403598


It doesn't look like the ident connections are cleaned up properly.
That explains why I have 6 GB allocated, when over 4 GB are ident
structures.

Mike Mitchell




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux