[rt-users] Help - memory leak problems

Jesse Vincent jesse at bestpractical.com
Fri Oct 17 04:22:21 EDT 2003


Do you still see this issue if you turn off Apache::DBI?


On Fri, Oct 17, 2003 at 10:19:28AM +0200, douglas.borrie at eject.co.za wrote:
> Hi all
>  
> I recently installed RT 3.0.4 (and later RT 3.0.6) using apache 1.3.28 and
> mod_perl 1.29 statically linked.
> I followed all the installation instructions and have installed it on a Solaris
> 2.6 as well as a Redhat Linux 9
> box but with the same problem occuring on both.
> The problem appears to be some sort of memory leak where memory is allocated but
> is never released.
> The size of the httpd processes grow after every request.
> The end result is that all RAM is consumed and after a while all swap is also
> exhausted.
>  
> Below are samples taken of the relevant processes (top output - sorted by memory
> usage) while a dummy load is applied.
> The load is generated by multiple web clients with a URL similar to the
> following
> http://host.domain.name/index.html?HomeRefreshInterval=2 (Refresh the home page
> every 2 seconds - too speed things up a bit)
>  
> As you'll see the size of the processes grow and eventually all memory is used.
> The only thing that I have found to help is to set MaxRequestsPerChild=1 in
> apache config,
> but performance is really bad as after each request is handled that apache child
> is killed and another
> is restarted in it's place. I also have to limit MinSpareServers and
> MaxSpareServers to about 4 with
> MaxClients also set to 4.
>  
> I have searched through the mailing list archives but I don't see anybody else
> with
> the same problem (some are similar but I don't seem to find a solution)
>  
> I would really appreciate any help you could give me.
>  
> 22:00 sample one after start up - before first request
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
> 12814 root      19   0 21200  20M  2744        S     0.0      6.6   0:00   0
> httpd
> 12815 nobody    24   0 21148  20M  2692     S     0.0      6.6   0:00   0 httpd
> 12816 nobody    24   0 21148  20M  2692     S     0.0      6.6   0:00   0 httpd
> 12817 nobody    24   0 21148  20M  2692     S     0.0      6.6   0:00   0 httpd
> 12818 nobody    24   0 21148  20M  2692     S     0.0      6.6   0:00   0 httpd
> 12819 nobody    24   0 21148  20M  2692     S     0.0      6.6   0:00   0 httpd
>  2442 mysql     15   0 20892 3636  1448       S     0.0      1.1   1:37   0
> mysqld
>  
> 23:40 Sample two after running for 1h:40m
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
> 12671 nobody    16   0 35780  32M  2304     S     0.0         10.4   1:55   0
> httpd
> 12670 nobody    16   0 34204  31M  2176     S     8.9         10.2   1:14   0
> httpd
> 12675 nobody    15   0 34356  31M  2384     S     2.9         10.1   1:11   0
> httpd
> 12673 nobody    16   0 34968  31M  2360     S    25.7         10.1   1:03   0
> httpd
> 12669 nobody    15   0 34684  31M  2096     S     3.9         10.1   1:00   0
> httpd
> 12672 nobody    15   0 32696  29M  2440     S     3.9          9.5   0:19   0
> httpd
> 12708 nobody    16   0 22988  22M  2596     S     0.0          7.1   0:01   0
> httpd
> 12668 root      15   0 19320  18M   864         S     0.0          6.0   0:00  
> 0 httpd
>  2442 mysql     16   0 20980 5028  1928       S     0.9          1.5   0:22   0
> mysqld
>  
> 23:50 Sample three 10 minutes later
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
> 12671 nobody    15   0 43336  28M  1976     S     0.0          8.9   2:47   0
> httpd
> 12670 nobody    16   0 41644  27M  1832     S     0.0          8.8   2:04   0
> httpd
> 12669 nobody    16   0 42352  27M  1844    S     0.0          8.8   1:50   0
> httpd
> 12673 nobody    15   0 42492  27M  2032     S     0.0          8.7   1:56   0
> httpd
> 12675 nobody    16   0 41792  27M  2004     S     0.0          8.7   2:03   0
> httpd
> 12672 nobody    16   0 40188  25M  2120     S     0.0          8.1   1:08   0
> httpd
> 12708 nobody    16   0 30452  19M  2276     S     0.0          6.3   0:53   0
> httpd
> 12726 nobody    16   0 27844  19M  2668     S     0.0          6.2   0:33   0
> httpd
> 12716 nobody    16   0 29492  19M  2628     S     0.0          6.1   0:44   0
> httpd
>  2442 mysql     15   0 21084 3884  1704       S     0.0          1.2   0:42   0
> mysqld
>  
> 00:10 Sample four 20 minutes later
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
> 12726 nobody    16   0 35996  24M  2668     S     0.0      7.9   1:21   0 httpd
> 12675 nobody    16   0 50200  23M  2012     S     2.9      7.6   2:57   0 httpd
> 12673 nobody    16   0 50912  23M  2020     S    24.7      7.5   2:53   0 httpd
> 12669 nobody    15   0 50568  23M  1844     S     2.9      7.5   2:40   0 httpd
> 12672 nobody    16   0 48576  23M  2108     S     0.0      7.5   2:05   0 httpd
> 12742 nobody    16   0 30904  23M  2644     S    12.8      7.5   0:55   0 httpd
> 12670 nobody    16   0 49984  23M  1844     S     3.9      7.4   2:59   0 httpd
> 12716 nobody    15   0 37728  23M  2640     S     0.0      7.3   1:33   0 httpd
> 12671 nobody    16   0 51480  23M  1976     S     0.0      7.3   3:38   0 httpd
> 12708 nobody    16   0 38944  22M  2276     S     6.9      7.3   1:55   0 httpd
>  2442 mysql     15   0 20948 3672  1500       S     0.0      1.1   1:06   0
> mysqld
>  
> 00:30 Sample five 20 minutes later
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
> 12672 nobody    16   0 57480  25M  1848     S     5.9      8.0   3:10   0 httpd
> 12708 nobody    16   0 47636  24M  2008     S     0.0      7.9   2:53   0 httpd
> 12675 nobody    16   0 59004  24M  1752     S    22.7      7.9   3:55   0 httpd
> 12669 nobody    15   0 59332  24M  1576     S     0.0      7.9   3:38   0 httpd
> 12716 nobody    16   0 46576  24M  2368     S     0.0      7.9   2:30   0 httpd
> 12742 nobody    16   0 39720  24M  2376     S     0.0      7.9   1:54   0 httpd
> 12673 nobody    16   0 59572  24M  1752     R     1.9      7.8   3:51   0 httpd
> 12671 nobody    16   0 60152  24M  1716     R    17.8      7.8   4:34   0 httpd
> 12726 nobody    16   0 44824  24M  2408     S     2.9      7.7   2:23   0 httpd
> 12670 nobody    15   0 58692  23M  1584     S     4.9      7.6   3:53   0 httpd
>  2442 mysql     15   0 21024 3724  1492       S     1.9      1.1   1:33   0
> mysqld
>  
> Regards
> Doug
> This email was scanned by ICL's anti-virus solution at http://www.eject.co.za
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
> 

-- 
http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.



More information about the rt-users mailing list