Re: Memory leaks with gnome-terminal?



On Fri, 2002-05-03 at 14:21, Gustavo Giráldez wrote:
> > I am running the GNOME2 snapshots from Ximian.  When I start X the X
> > server takes up a reasonable amount of memory, but over time it
> > increases so much that I have to restart GNOME.
> > 
> > i.e. in a few days (this is a work machine so I logout once a week) the
> > X server will grow to ~400M, which fills my 512M swap and 256M RAM.
> > 
> > Recently I observed this behaviour:
> > 1) in one terminal, check the current size of X with ps.  I got 293532
> >    and 56808.
> > 2) start a gnome-terminal and check the sizes. I now get 298656 and
> >    61932.
> > 3) close the new gnome-terminal and check memory sizes. Mine stayed at
> >    298656 and 61932, which looks like a memory leak to me.
> > 
> > Note that I use gnome-terminals with shaded transparent backgrounds.
> 
> This is the problem.  See bug #79930.  The patch I attached there makes
> things much better, but using shaded transparent background there are
> still leaks (I couldn't find out why).  But if you use non-shaded
> transparent bg works ok (with the patch).  Maybe you could test the
> patch and provide some more info if you find something?

I have just checked out libzvt from CVS, applied the patch and rebuild. 
Unless gnome-terminal statically links to libzvt I'm sad to say that
this didn't fix the problem for me.  Within minutes (after creating 10
terminals and closing them):

root     16014  3.7 21.9 235040 55772 ?  S  14:32   0:40 /etc/X11/X :0

235M already... damn. :(

For now I've switched back to solid backgrounds but if I find some time
today I'll have peek at the code myself.

Regards,
Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                       jabber: rossburton jabber org
                        diary: http://advogato.org/person/RossBurton
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF




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