Centos6系统.xsession-errors 特别大处理办法

博客主要讲述Linux系统桌面版默认启动级别为5时出现的问题。报警系统提示存储达95%,发现/root下.xsession-errors文件过大且不断写入重复报错,dbus-daemon和udisks-daemon占用CPU大。分析可能是字符集问题,给出更改启动级别和修改默认字符集的解决办法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、  报错及简介
1、 发现问题

报警系统报警/下存储到达95%,登陆服务器查看/root目录下有一个.xsession-errors的文件特别大,达到十几G。

2、 查看问题
① 查看.xsession-errors文件内容,前边有其他报错,但是后来报错都是一直重复的,并且一直在写入。

GVFS-RemoteVolumeMonitor ** :New owner:1.35024783 for volume monitor org.gtk.Private.GduVolumeMonitor connected to the bus; seeding drives/volumen/
GVFS-RemoteVolumeMonitor ** :invoking List() failed for type GProxyVolumeMonitorGdu:org.freedesktop.DBus.Error.NoReply;message did not receive a reply


② dbus-daemon和udisks-daemon占用CPU比较大

1578 dbus  20   0 22564 2112  780 S 31.6  0.0  46:14.10 dbus-daemon                
4130 root  20   0 40732 2992 2240 R 19.7  0.0  28:42.05 udisks-daemon


二、  问题分析
1、此问题只有在Linux系统桌面版的情况下才会出现,并且启动默认启动级别是5(图形界面)
2、可能是系统的字符集问题
二、解决问题
1、更改启动级别

注意事项:
如果是线上业务注意备份

①查看系统的启动级别

[root@cxm ~]# cat /etc/inittab  id:5:initdefault:


②修改为3(命令行模式)

[root@cxm ~]# cat /etc/inittab  id:3:initdefault:


③ 重新启动系统

[root@cxm ~]# reboot


2、修改默认字符集
① 查看字符集

[root@cxm ~]# cat /etc/sysconfig/i18n .eucKR


我的服务器由于机器需要所以不能修改。如果修改

② 修改

[root@cxm ~]# cat /etc/sysconfig/i18n .UTF-8 SYSFONT=latarcyrheb-sun16


③ 刷新

[root@cxm ~]# . /etc/sysconfig/i18n


④ 查看

如果还是不行,也就只能修改字符集后重启服务。


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31551496/viewspace-2213150/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31551496/viewspace-2213150/

分析如下vscode SSH连接时的报错:[09:54:45.561] Log Level: 2 [09:54:45.582] SSH Resolver called for "ssh-remote+10.170.27.158", attempt 1 [09:54:45.586] remote.SSH.useLocalServer = false [09:54:45.586] remote.SSH.useExecServer = true [09:54:45.587] remote.SSH.bindHost = {} [09:54:45.587] remote.SSH.showLoginTerminal = false [09:54:45.587] remote.SSH.remotePlatform = {} [09:54:45.587] remote.SSH.path = [09:54:45.587] remote.SSH.configFile = [09:54:45.587] remote.SSH.useFlock = true [09:54:45.587] remote.SSH.lockfilesInTmp = false [09:54:45.588] remote.SSH.localServerDownload = auto [09:54:45.588] remote.SSH.remoteServerListenOnSocket = false [09:54:45.588] remote.SSH.defaultExtensions = [] [09:54:45.590] remote.SSH.defaultExtensionsIfInstalledLocally = [] [09:54:45.591] remote.SSH.loglevel = 2 [09:54:45.591] remote.SSH.enableDynamicForwarding = true [09:54:45.591] remote.SSH.enableRemoteCommand = false [09:54:45.591] remote.SSH.serverPickPortsFromRange = {} [09:54:45.591] remote.SSH.serverInstallPath = {} [09:54:45.592] remote.SSH.permitPtyAllocation = false [09:54:45.592] remote.SSH.preferredLocalPortRange = undefined [09:54:45.592] remote.SSH.useCurlAndWgetConfigurationFiles = false [09:54:45.592] remote.SSH.experimental.chat = true [09:54:45.592] remote.SSH.experimental.enhancedSessionLogs = true [09:54:45.592] remote.SSH.httpProxy = {"*":""} [09:54:45.593] remote.SSH.httpsProxy = {"*":""} [09:54:45.600] VS Code version: 1.101.2 [09:54:45.600] Remote-SSH version: remote-ssh@0.120.0 [09:54:45.601] win32 x64 [09:54:45.604] SSH Resolver called for host: 10.170.27.158 [09:54:45.604] Setting up SSH remote "10.170.27.158" [09:54:45.617] Using commit id "2901c5ac6db8a986a5666c3af51ff804d05af0d4" and quality "stable" for server [09:54:45.617] Extensions to install: [09:54:45.623] Install and start server if needed [09:54:47.890] Checking ssh with "C:\windows\ssh.exe -V" [09:54:47.894] Got error from ssh: spawn C:\windows\ssh.exe ENOENT [09:54:47.894] Checking ssh with "C:\windows\system32\ssh.exe -V" [09:54:47.896] Got error from ssh: spawn C:\windows\system32\ssh.exe ENOENT [09:54:47.897] Checking ssh with "C:\windows\System32\Wbem\ssh.exe -V" [09:54:47.898] Got error from ssh: spawn C:\windows\System32\Wbem\ssh.exe ENOENT [09:54:47.899] Checking ssh with "C:\windows\System32\WindowsPowerShell\v1.0\ssh.exe -V" [09:54:47.900] Got error from ssh: spawn C:\windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [09:54:47.901] Checking ssh with "C:\Windows\ssh.exe -V" [09:54:47.903] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT [09:54:47.903] Checking ssh with "C:\Windows\system32\ssh.exe -V" [09:54:47.905] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT [09:54:47.905] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V" [09:54:47.907] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT [09:54:47.907] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V" [09:54:47.909] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [09:54:47.909] Checking ssh with "C:\windows\System32\WindowsPowerShell\v1.0\ssh.exe -V" [09:54:47.912] Got error from ssh: spawn C:\windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [09:54:47.912] Checking ssh with "C:\windows\System32\OpenSSH\ssh.exe -V" [09:54:47.964] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3 [09:54:47.969] Running script with connection command: "C:\windows\System32\OpenSSH\ssh.exe" -T -D 50055 "10.170.27.158" sh [09:54:47.970] Generated SSH command: 'type "C:\Users\S50048~1\AppData\Local\Temp\vscode-linux-multi-line-command-10.170.27.158-752111106.sh" | "C:\windows\System32\OpenSSH\ssh.exe" -T -D 50055 "10.170.27.158" sh' [09:54:47.971] Using connect timeout of 17 seconds [09:54:47.971] Terminal shell path: C:\windows\System32\cmd.exe [09:54:48.820] > ssh: connect to host 0.0.0.158 port 22: Unknown error > 过程试图写入的管道不存在。 [09:54:48.821] Got some output, clearing connection timeout [09:54:50.079] "install" terminal command done [09:54:50.080] Install terminal quit with output: 过程试图写入的管道不存在。 [09:54:50.080] Received install output: 过程试图写入的管道不存在。 [09:54:50.080] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped. [09:54:50.081] Failed to parse remote port from server output [09:54:50.081] Resolver error: Error at y.Create (c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:744751) at t.handleInstallOutput (c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:742832) at t.tryInstall (c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:865534) at async c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824246 at async t.withShowDetailsEvent (c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:827501) at async A (c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:820760) at async t.resolve (c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824898) at async c:\Users\s50048740\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:1113660 [09:54:50.085] ------ [09:54:50.086] No hints found in the recent session.
最新发布
07-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值