restart Xorg? | "xrestop" ...killing/restarting mem-hungry client

Tom xorg at zq3q.org
Thu Feb 18 17:10:07 UTC 2021


On Thu 2/18/21 17:56 +0100 Olivier Fourdan wrote:
>You cannot restart the X server without disconnecting the running X11
>clients, i.e. killing your session.
>
>But X11 resources are allocated by the Xserver on behalf of the clients.
>
>Have you checked if it's not just an X11 client allocating (i.e. leaking)
>resources?
>
>The command "xrestop" should give you an indication of how much of
>resources each X11 client has allocated.
>
>If that's the case, killing/restarting just that client would suffice…

Thanks much Olivier. I've installed xrestop, and will try it next time
high Xorg mem usage shows up.

--
Tom

$ command ps -wwH -o pid,ppid,pgid,cputime,nice,user,tty,state,etime,bsdstart,nlwp,rss,vsize,args -p 296958
    PID    PPID    PGID     TIME  NI USER     TT       S     ELAPSED  START NLWP   RSS    VSZ COMMAND
 296958  296956  296956 00:06:35   0 my_name  tty2     R    01:20:43  09:45   10 88608 999096 /usr/libexec/Xorg vt2 -displayfd 3 -auth /run/user/4187/gdm/Xauthority -background none -noreset -keeptty -verbose 3


More information about the xorg mailing list