linuxlinux cpu占用过高率过高怎么办

本帖子已过去太久远了,不再提供回复功能。查看: 21921|回复: 3
金钱16893 悬赏币9999 最后登录注册时间帖子UID2
悬赏币9999
本帖最后由 lszm 于
15:10 编辑
CPU占用率查看命令:top
图中红色部分即为占用百分率,下面是每个进程的CPU占用率,如果服务器是多核CPU可能在下方看到有些进程CPU占用超过100%,这种一般是该进程使用了多核。
15:05 上传
内存占用率:free -m
图中红色部分即为占用,即used、free即为剩余。(注意中在第二行数字中找哦。)
15:07 上传
带宽占用:
金钱1639 悬赏币0 最后登录注册时间帖子UID4404
创业达人, 积分 1639, 距离下一级还需 1361 积分
小谢谢楼主的分享。
金钱48 悬赏币3 最后登录注册时间帖子UID6728
中级站长, 积分 48, 距离下一级还需 52 积分
不错,很好!~ / 支持加速乐了!~
金钱85 悬赏币3 最后登录注册时间帖子UID16481
提示: 作者被禁止或删除 内容自动屏蔽
Powered by
| Style by博客访问: 404580
博文数量: 159
注册时间:
认证徽章:
ITPUB论坛APP
ITPUB论坛APP
APP发帖 享双倍积分
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Oracle
&Linux下xorg进程CPU占用率过高时的一个解决方案
init 3 进字符模式就搞定了 哪儿这么麻烦。要想开机自己进去字符模式 &就改个文件
vim /etc/inittab
里面有一行:id:5:initdefault:
把5改成3 就OK了。
阅读(6443) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。CentOS系统进程CPU 100%高占用率解决办法
服务器top进程上进程看到kipmi0经常占用很高的CPU甚至是100% Linux学习,http:// linux.
看看专业的说法:
kipmi is supposed to run with low priority. When you say it consumes&70-90% of the CPUs, is that constant (does it still consume the&processor when they are other tasks in the process queue that should&have a larger slice of the CPU time) or the 70%/90% comes when the&machine is idle?&
A second issue to investigate is whether you have pending controller&issues (alarms of varying nature that are not resolved) and/or older&versions of controller firmware. Linux学习,http:// linux.
查看服务chkconfig 发现只有近似 ipmievd& 服务,估计就是这个,跟网上资料说的ipmi有出入! IT网,http://www.
Fix:不需要修复
No fix required. You should ignore increased CPU utilization as it has no impact on actual system performance. Linux学习,http:// linux.
虽然这是一个利用空余的CPU资源进行一些接口自动调节的任务,但看着占那么多的资源还是怕出意外。 IT网,http://www.
找到:可以临时降低 Linux学习,http:// linux.
echo 100 & /sys/module/ipmi_si/parameters/kipmid_max_busy_us Linux学习,http:// linux.
In our system,after set this parameter,the cpu of kipmi0 decreased to 15%.确实执行上面命令后,所占CPU单核资源从100%降低到10% Linux学习,http:// linux.
You can try this.永久性降低
To make the changes persistent you can configure the options for the ipmi_si kernel module.
Create a file in /etc/modprobe.d/, i.e./etc/modprobe.d/ipmi.conf, and add the following content:
# Prevent kipmi0 from consuming 100% CPU Linux学习,http:// linux.
echo &options ipmi_si kipmid_max_busy_us=100&&/etc/modprobe.d/ipmi.conf IT网,http://www.
系统下次重启会自动调整 IT网,http://www.
(责任编辑:IT)
------分隔线----------------------------
今天例行查看服务器日志,发现了如下所示的日志,重要的日志内容是Temperature above ...
之前有哥们的VPS突然悲剧了..也是求救不够惨大神..如下是恢复结果 首先弄个跟原来系统...
其实只需要一步即可: 在window-〉Translation中,character set 中,把Use font encod...
从这个错误上是说打不开这个文件, 和配置: ---------------- 限制用户只能访问配置的...
CentOS 6.5服务器VNC远程桌面连接出错怎么办? CentOS 6.5连接出错的原因可能不止一个...linux(1)
1.首先是用top命令确定 有问题的pid
-H -p pid命令查看进程内各个线程占用的CPU百分比
&top -H -p 14094
或者使用 &&&ps H -e -o pid,tid,pcpu,cmd --sort=pcpu |grep xxx
2.接下来,我们用gdb来attach目标进程
gdb&attach 2907
在gdb中,列出线程状态:
(gdb)&info&threads&&&
9&Thread&64&(LWP&11066)&&0x00002acc4a3dec91&in&nanosleep&()&from&/lib/libc.so.6&&&
8&Thread&68&(LWP&11067)&&0x00002acc4a406fc2&in&select&()&from&/lib/libc.so.6&&&
7&Thread&72&(LWP&11068)&&0x00002acc4a3dec91&in&nanosleep&()&from&/lib/libc.so.6&&
&6&Thread&76&(LWP&11069)&&0x00002acc4a3dec91&in&nanosleep&()&from&/lib/libc.so.6&&&
5&Thread&80&(LWP&11070)&&0x00002acc4a3dec91&in&nanosleep&()&from&/lib/libc.so.6&&&
4&Thread&84&(LWP&11071)&&0x00002acc4a40e63c&in&recvfrom&()&from&/lib/libc.so.6&&&
3&Thread&48&(LWP&11072)&&0x00002acc4a406fc2&in&select&()&from&/lib/libc.so.6&&&
2&Thread&84&(LWP&11073)&&CSendFile::SendFile&(this=0x2acc5d4aff40,&pathname=@0x2acc5d4afee0)&&&&&at&../src/csendfile.cpp:101&&&
1&Thread&32&(LWP&11065)&&0x00002acc4a3dec91&in&nanosleep&()&from&/lib/libc.so.6&(gdb)&
gdb已经列出了各线程正在执行的函数,我们需要更多信息,记住11073对应的行首标号,这是gdb为线程分配的id,这里为2,然后执行切换:
(gdb)&thread&2&
[Switching&to&thread&2&(Thread&84&(LWP&11073))]#0&&CSendFile::SendFile&(this=0x2acc5d4aff40,&pathname=@0x2acc5d4afee0)&&&&&at&../src/csendfile.cpp:101&101&&&&&&&&&&&&&while(1)&
#0&&CSendFile::SendFile&(this=0x2acc5d4aff40,&pathname=@0x2acc5d4afee0)&at&../src/csendfile.cpp:101&
#1&&0x592e&in&CIcdn::TaskThread&(pParam=0x7fff617eafe0)&at&../src/cicdn.cpp:128&
#2&&0x00002acc4a90b73a&in&start_thread&()&from&/lib/libpthread.so.0&
#3&&0x00002acc4a40d6dd&in&clone&()&from&/lib/libc.so.6&
#4&&0x0000&in&??&()
来看一下101行的代码:
96&&&&&&}&
98&&&&&&int&CSendFile::SendFile(const&string&&pathname)&
100&&&&&&&&&&&&&int&n;
101&&&&&&&&&&&&&while(1)
102&&&&&&&&&&&&&{
103&&&&&&&&&&&&&&&&&&&&&n++;
104&&&&&&&&&&&&&}
105&&&&&&&&&&&&&//read&file&and&send&
现在我们定位到了出问题的代码位置,这里的循环只用来演示的。&
最后别忘了detach()
&strace -p pid //这个线程所有系统调用
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:17488次
排名:千里之外
原创:32篇
(1)(2)(1)(1)(1)(1)(4)(1)(4)(1)(7)(13)(3)(1)}

我要回帖

更多关于 svchost占用cpu过高 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信