linux – “内核:无法读取proc文件系统:1 – 不允许 *** 作” – 在OpenVZ VPS上的kern.log中每分钟有数百万条此类消息?

linux – “内核:无法读取proc文件系统:1 – 不允许 *** 作” – 在OpenVZ VPS上的kern.log中每分钟有数百万条此类消息?,第1张

概述我看到在我的OpenVZ ubuntu 12.04服务器上的kern.log中重复永远不会结束这样的消息. Mar 2 06:23:33 localhost kernel: Cannot read proc file system: 1 - Operation not permitted.Mar 2 06:24:04 localhost kernel: last message repeat 我看到在我的OpenVZ ubuntu 12.04服务器上的kern.log中重复永远不会结束这样的消息.
Mar  2 06:23:33 localhost kernel: Cannot read proc file system: 1 - Operation not permitted.Mar  2 06:24:04 localhost kernel: last message repeated 5082222 timesMar  2 06:25:05 localhost kernel: last message repeated 9939060 timesMar  2 06:26:06 localhost kernel: last message repeated 8501480 timesMar  2 06:27:07 localhost kernel: last message repeated 10177446 timesMar  2 06:28:08 localhost kernel: last message repeated 9813564 timesMar  2 06:29:09 localhost kernel: last message repeated 10017198 timesMar  2 06:30:10 localhost kernel: last message repeated 9156706 timesMar  2 06:31:11 localhost kernel: last message repeated 7069506 timesMar  2 06:32:12 localhost kernel: last message repeated 10223799 timesMar  2 06:33:13 localhost kernel: last message repeated 10452790 timesMar  2 06:34:14 localhost kernel: last message repeated 9716982 timesMar  2 06:35:15 localhost kernel: last message repeated 9178422 timesMar  2 06:36:16 localhost kernel: last message repeated 7886225 timesMar  2 06:37:17 localhost kernel: last message repeated 10261076 timesMar  2 06:38:18 localhost kernel: last message repeated 10283553 timesMar  2 06:39:19 localhost kernel: last message repeated 10110874 times

关于如何解决这个问题的任何想法?默认情况下,我的ubuntu 12.04上没有安装Rsyslog.当我安装Rsyslog时,我的kern.log,syslog开始溢出这些消息.

编辑:

以下是我的主持人对rsyslog所说的内容:“你也不应该运行Rsyslog,并且没有太多要求”.

但我认为问题不在于Rsyslog本身,而是由于广泛的日志记录而消耗高cpu.如果我删除Rsyslog,错误仍然会发生,但它不会被记录.

这与openVZ上的共享内核有关吗?任何人都有任何想法?

解决方法 Rsyslog倾向于在OpenVZ上使用100%的cpu.我通过SSH运行以下命令来解决问题
service rsyslog stopsed -i -e 's/^$ModLoad imklog/#$ModLoad imklog/g' /etc/rsyslog.confservice rsyslog start

或者,请参阅here以获取解决方法.

总结

以上是内存溢出为你收集整理的linux – “内核:无法读取proc文件系统:1 – 不允许 *** 作” – 在OpenVZ VPS上的kern.log中每分钟有数百万条此类消息?全部内容,希望文章能够帮你解决linux – “内核:无法读取proc文件系统:1 – 不允许 *** 作” – 在OpenVZ VPS上的kern.log中每分钟有数百万条此类消息?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/yw/1039057.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存