Ubuntu 18.04 的 Xorg 内存使用率非常高

NUT*_*TUN 10 xorg ram memory-leak 18.04

我在使用 Xorg 时遇到内存泄漏问题,它占用了我的大部分内存。现在,它高达 41.2% 的内存,而我什至没有那么多地使用计算机。

这是关于它的一些输出。

    Linux grant-N501VW 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root      1402  0.0  0.6 400860 99080 tty1     Sl+  Jul29   0:03 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root      2097  0.0 34.4 6136080 5608064 tty2  Sl+  Jul29   4:26 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
grant    23603  0.0  0.0  21536  1096 pts/0    S+   23:11   0:00 grep --color=auto xorg

          total        used        free      shared  buff/cache   available
Mem:          15903        7914        5325         352        2663        7450
Swap:           716           0         716
Run Code Online (Sandbox Code Playgroud)

所有驱动程序也更新。重新启动将重置内存使用量,但它仍然会随着时间的推移而增加。

NUT*_*TUN 2

更新:

我设法找出问题是一个自定义壁纸 systemd 服务,我正在运行该服务,使用pscirlce每 30 秒更新一次壁纸。显然我错误配置了该服务,并且它没有正确从内存中删除某些内容。我不知道问题的确切原因,但删除它解决了我的问题。

不幸的是,我丢失了 .service 文件,因此我没有更多信息可供进一步研究。