当前位置: > Linux发行版 > Debian >

Debian9桌面环境占用资源高解决办法

时间:2021-12-18 16:54来源:linux.it.net.cn 作者:IT

杀死占用资源高的进程并重启桌面管理服务

# top
# killall xfce4-panel
# killall xfdesktop
# killall xfsettingsd
# service lightdm restart

重启xrdp服务

# service xrdp restart

报错如下:

Failed to allocate directory watch: Too many open files

查看服务状态:

# service xrdp status
Dec 29 15:01:42 HCI-2 systemd[1]: Starting xrdp daemon...
Dec 29 15:01:42 HCI-2 systemd[1]: xrdp.service: PID file /run/xrdp/xrdp.pid not readable (yet?) after start: No such file or directory
Dec 29 15:01:42 HCI-2 systemd[1]: xrdp.service: Failed to set a watch for PID file /run/xrdp/xrdp.pid: Too many open files
Dec 29 15:01:42 HCI-2 systemd[1]: Stopped xrdp daemon.
Dec 29 15:01:42 HCI-2 systemd[1]: xrdp.service: Unit entered failed state.
Dec 29 15:01:42 HCI-2 systemd[1]: xrdp.service: Failed with result 'resources'.

解决办法:

# sysctl fs.inotify.max_user_instances=512
# service xrdp restart



(责任编辑:IT)
------分隔线----------------------------