There is a new utility called "xrestop" available in the freedesktop.org
CVS that is very useful in identifying clients that hog server memory.

This utility is patterned somewhat after the "top" utility; written
by Mathew Allum, using Mark's fine Xres extension.
                                         - Jim

On Tue, 2004-01-06 at 19:50, Mark Vojkovich wrote:
> On Tue, 6 Jan 2004, Petter Reinholdtsen wrote:
> 
> > [Mark Vojkovich]
> > > When I see these sort of requests I usually feel pretty comfortable
> > > dismissing them as application resource leaks.
> > 
> > Is it possible for dead applications to "use" resources in the X
> > server?  I mean, if a web browser allocate several resources in the X
> > server (shared memory, pixmaps, fonts, I do not know what types of
> > resources are available for allication), and they die, is all these
> > resources released in the server?
> 
>    Server-side resources are released when the connection between
> the server and client is severed.  Only apps that stick around an
> leak cause problems.  
> 
>    You can check the resource usage with:
> 
> http://www.xfree86.org/~mvojkovi/restest.c
> 
>    Be careful running it though.  It grabs the server and dumps
> data to stdout, which means there's a deadlock situation if you
> run it from within X without redirecting the output.  So either
> run it remotely or redirect to a file "restest >& resout".
> 
> 
>                       Mark.
> 
> _______________________________________________
> Devel mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/devel
-- 
Jim Gettys <[EMAIL PROTECTED]>
HP Labs, Cambridge Research Laboratory

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to