免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5492 | 回复: 13
打印 上一主题 下一主题

为什么solaris的CPU总是接近100%? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-06-01 08:19 |只看该作者 |倒序浏览
一台sun450的机器,安装了oralce8.1.7,前段时间还不错,可最近几周solaris系统的CPU总是显示在70%到100%之间,而且经常会在100%,请问这是为什么〉

论坛徽章:
0
2 [报告]
发表于 2005-06-01 08:24 |只看该作者

为什么solaris的CPU总是接近100%?

首先应该确认是那个进程占用了这么高的cpu,然后再进行下一步!

论坛徽章:
0
3 [报告]
发表于 2005-06-01 08:28 |只看该作者

为什么solaris的CPU总是接近100%?

怎么看那个进程占用CPU?谢谢!

论坛徽章:
0
4 [报告]
发表于 2005-06-01 08:34 |只看该作者

为什么solaris的CPU总是接近100%?

利用进程管理器即可察看,按CPU排序!

论坛徽章:
0
5 [报告]
发表于 2005-06-01 08:54 |只看该作者

为什么solaris的CPU总是接近100%?

进程如下,能帮助分析一下吗?\r\n\r\n$ ps -ef\r\n     UID   PID  PPID  C    STIME TTY      TIME CMD\r\n    root     0     0  0   5月 30 ?        0:01 sched\r\n    root     1     0  0   5月 30 ?        0:03 /etc/init -\r\n    root     2     0  0   5月 30 ?        0:09 pageout\r\n    root     3     0  0   5月 30 ?        2:48 fsflush\r\n    root   328     1  0   5月 30 ?        0:00 /usr/lib/saf/sac -t 300\r\n    root   331   328  0   5月 30 ?        0:00 /usr/lib/saf/ttymon\r\n    root   156     1  0   5月 30 ?        0:00 /usr/sbin/rpcbind\r\n    root    58     1  0   5月 30 ?      0:00 /usr/lib/sysevent/syseventd\r\n    root    60     1  0   5月 30 ?        0:00 /usr/lib/sysevent/syseventconfd\r\n    root    76     1  0   5月 30 ?        0:01 /usr/lib/picl/picld\r\n    root   199     1  0   5月 30 ?        0:02 /usr/lib/autofs/automountd\r\n    root   208     1  0   5月 30 ?        0:01 /usr/sbin/syslogd\r\n  daemon   187     1  0   5月 30 ?        0:00 /usr/lib/nfs/statd\r\n  oracle   543   542  0   5月 30 ?        0:14 sdtperfmeter\r\n    root   214     1  0   5月 30 ?        0:00 /usr/sbin/cron\r\n    root   188     1  0   5月 30 ?        0:00 /usr/lib/nfs/lockd\r\n    root   185     1  0   5月 30 ?        0:00 /usr/sbin/inetd -s\r\n    root   243     1  0   5月 30 ?        0:00 /usr/lib/lpsched\r\n  oracle   500     1  0   5月 30 ?        0:25 ora_snp0_oracle\r\n  oracle   492     1  0   5月 30 ?        2:32 ora_lgwr_oracle\r\n  oracle   494     1  0   5月 30 ?        0:28 ora_ckpt_oracle\r\n  oracle   502     1  0   5月 30 ?        0:25 ora_snp1_oracle\r\n  oracle   496     1  0   5月 30 ?        0:11 ora_smon_oracle\r\n    root   236     1  0   5月 30 ?        0:02 /usr/sbin/nscd\r\n    root   256     1  0   5月 30 ?        0:00 /usr/lib/power/powerd\r\n    root   271     1  0   5月 30 ?        0:00 /usr/sadm/lib/smc/bin/smcboot\r\n    root   280     1  0   5月 30 ?        0:02 /usr/sbin/vold\r\n    root   266     1  0   5月 30 ?        0:00 /usr/lib/utmpd\r\n    root   272   271  0   5月 30 ?        0:00 /usr/sadm/lib/smc/bin/smcboot\r\n    root   285     1  0   5月 30 ?        0:00 /usr/lib/im/htt -port 9010 -syslg -message_locale C\r\n    root   287   285  0   5月 30 ?        0:00 htt_server -port 9010 -syslog -mssage_locale C\r\n    root   322     1  0   5月 30 ?        0:00 /usr/lib/dmi/snmpXdmid -s sun450\r\n    root   292     1  0   5月 30 ?        0:00 /usr/lib/efcode/sparcv9/efdaemon\r\n    root   321     1  0   5月 30 ?        0:00 /usr/lib/dmi/dmispd\r\n    root   329     1  0   5月 30 console  0:00 /usr/lib/saf/ttymon -g -h -p sun50 console login:  -T sund/dev/console -l c\r\n    root   311     1  0   5月 30 ?        0:00 /usr/dt/bin/dtlogin -daemon\r\n    root   313     1  0   5月 30 ?        0:00 /usr/lib/snmp/snmpdx -y -c /etc/nmp/conf\r\n    root   333   311  0   5月 30 ?        0:00 /usr/dt/bin/dtlogin -daemon\r\n  oracle   332   311  1   5月 30 ?        6:45 /usr/openwin/bin/Xsun :0 -nobannr -auth /var/dt/A:0-Z6a4Ma\r\n  oracle   360   333  0   5月 30 ?        0:00 /bin/ksh /usr/dt/bin/Xsession\r\n    root   341     1  0   5月 30 ?        0:00 /usr/openwin/bin/fbconsole -d :0\r\n  oracle   370   360  0   5月 30 ?        0:00 /usr/openwin/bin/fbconsole\r\n  oracle   510     1  0   5月 30 ?        0:22 /u01/app/oracle/product/8.1.7/bi/tnslsnr LISTENER -inherit\r\n  oracle   413   360  0   5月 30 pts/3    0:00 /usr/dt/\r\n  oracle   374     1  0   5月 30 ?        0:00 /usr/openwin/bin/speckeysd\r\n  oracle   390   360  0   5月 30 ?        0:00 /usr/openwin/bin/htt -nosm\r\n  oracle   448   397  0   5月 30 ?        0:00 htt_server\r\n  oracle   397   390  0   5月 30 ?        0:00 htt_server\r\n  oracle   398   390  0   5月 30 ?        0:00 htt_props -lc_basiclocale zh.GBK\r\n  oracle  3705     1  0 08:44:34 ?        0:01 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle   415   413  0   5月 30 pts/3    0:00 -sh -c\r\n  oracle   416     1  0   5月 30 ?        0:00 /usr/dt/bin/dsdm\r\n    root   432   415  0   5月 30 pts/3    0:15 /usr/dt/bin/dtsession\r\n    root   433   185  0   5月 30 ?        0:00 rpc.ttdbserverd\r\n  oracle   431     1  0   5月 30 pts/3    0:00 /usr/dt/bin/ttsession\r\n  oracle   439   432  0   5月 30 ?        0:04 dtwm\r\n  oracle   504     1  0   5月 30 ?        0:31 ora_snp2_oracle\r\n  oracle   450   432  0   5月 30 ??       0:00 /usr/dt/bin/dtterm -session dtYaOxc\r\n  oracle   451   432  0   5月 30 ?        0:06 /usr/dt/bin/sdtperfmeter -f -H -cpu -t disk -s 1 -name fpperfmeter\r\n  oracle   452   431  0   5月 30 pts/3    0:00 /bin/sh -c dtpad -server\r\n  oracle   453   452  0   5月 30 pts/3    0:00 dtpad -server\r\n  oracle   456   450  0   5月 30 pts/4    0:00 /bin/sh\r\n    root   467   185  0   5月 30 ?        0:33 rpc.rstatd\r\n  oracle   460   450  0   5月 30 pts/5    0:00 /bin/sh\r\n  oracle   459     1  0   5月 30 ?        0:00 /bin/ksh /usr/dt/bin/sdtvolcheck-d -z 5 cdrom,zip,jaz,dvdrom,rmdisk\r\n    root  3714   185  0 08:46:18 ?        0:00 rquotad\r\n  oracle   508   456  0   5月 30 pts/4    0:00 lsnrctl\r\n  oracle   478   459  0   5月 30 ?        0:00 /bin/cat /tmp/.removable/notify49\r\n  oracle   488     1  0   5月 30 ?        0:03 ora_pmon_oracle\r\n    root   483     1  0   5月 30 ?        0:00 /usr/lib/sendmail -bd -q15m\r\n  oracle   490     1  0   5月 30 ?        1:26 ora_dbw0_oracle\r\n  oracle   498     1  0   5月 30 ?        0:01 ora_reco_oracle\r\n  oracle   506     1  0   5月 30 ?        0:27 ora_snp3_oracle\r\n  oracle   516     1  0   5月 30 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle   542   451  0   5月 30 ?        0:00 /usr/dt/bin/dtexec -open 0 -ttprcid 5.12ceyQ 01 431 1289637086 1 1 1001 172.29\r\n  oracle  3485     1  0 08:04:59 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3451     1  0 07:58:24 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle   541   451  0   5月 30 ?        0:00 /usr/dt/bin/dtexec -open 0 -ttprcid 5.12ceyQ 01 431 1289637086 1 1 1001 172.29\r\n  oracle   536     1  0   5月 30 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle   528     1  0   5月 30 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3656  3655  0 08:35:38 ?        0:01 oracleoracle (DESCRIPTION=(LOCALYES)(ADDRESS=(PROTOCOL=beq)))\r\n  oracle  3604     1  0 08:27:02 ?        0:41 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle   544   541  0   5月 30 ?        0:13 sdtperfmeter\r\n  oracle   545   451  0   5月 30 ?        0:00 /usr/dt/bin/dtexec -open 0 -ttprcid 5.12ceyQ 01 431 1289637086 1 1 1001 172.29\r\n  oracle   546   545  0   5月 30 ?        0:11 sdtperfmeter\r\n  oracle   547   451  0   5月 30 ?        0:00 /usr/dt/bin/dtexec -open 0 -ttprcid 5.12ceyQ 01 431 1289637086 1 1 1001 172.29\r\n  oracle   548   547  0   5月 30 ?        0:11 sdtperfmeter\r\n  oracle   564   432  0   5月 30 ?        0:00 /usr/dt/bin/dtexec -open 0 -ttprcid 1.12ceyQ 01 431 1289637086 1 1 1001 172.29\r\n  oracle   565   564  0   5月 30 ?        0:01 /usr/dt/bin/dtscreen -mode blank\r\n  oracle  3624     1  0 08:30:45 ?        0:19 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3366     1  0 07:43:15 ?        2:08 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3438     1 17 07:55:54 ?        4:43 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3670     1  0 08:37:52 ?        0:04 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3488  3486  0 08:05:05 pts/6    0:00 -sh\r\n  oracle  3676     1  0 08:41:20 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3660     1  0 08:36:10 ?        0:31 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3697     1  0 08:43:14 ?        0:03 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3412     1  0 07:53:01 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3592     1  0 08:24:55 ?        0:06 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3374     1  0 07:46:20 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3380     1 24 07:46:50 ?       10:51 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3620     1  0 08:30:31 ?        0:26 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3596     1  0 08:25:44 ?        0:24 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3416     1  6 07:53:22 ?        1:54 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3455     1  0 07:59:17 ?        0:14 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3432     1  0 07:55:47 ?        0:03 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3655  3488  0 08:35:34 pts/6    0:00 sqlplus\r\n  oracle  3626     1  0 08:30:56 ?        0:23 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3498     1  0 08:06:01 ?        0:11 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3609     1  0 08:28:20 ?        0:31 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3686     1  0 08:41:58 ?        0:08 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n    root  3719  3712  1 08:46:23 pts/7    0:00 ps -ef\r\n  oracle  3707     1  3 08:45:08 ?        0:03 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3628     1  0 08:31:05 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3580     1  9 08:20:14 ?        1:30 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3473     1  0 08:02:12 ?        1:03 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3453     1  0 07:58:42 ?        0:03 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3678     1 17 08:41:37 ?        0:11 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3606     1  0 08:27:23 ?        0:23 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3613     1  0 08:28:56 ?        0:02 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3636     1  0 08:32:16 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n    root  3486   185  0 08:05:01 ?        0:00 in.telnetd\r\n  oracle  3692     1  1 08:42:18 ?        0:13 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3699     1  4 08:43:26 ?        0:06 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3402     1  0 07:50:44 ?        0:10 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3709     1  0 08:45:15 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3680     1  0 08:41:42 ?        0:12 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3712  3710  0 08:46:13 pts/7    0:00 -sh\r\n  oracle  3658     1  0 08:35:55 ?        0:16 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3449     1  0 07:58:09 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3672     1  0 08:39:04 ?        0:02 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3357     1  0 07:29:53 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3583     1  1 08:21:20 ?        1:33 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3544     1  0 08:14:07 ?        0:01 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3668     1  8 08:37:34 ?        0:43 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3408     1  0 07:52:46 ?        0:00 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n  oracle  3688     1  0 08:42:02 ?        0:06 oracleoracle (DESCRIPTION=(LOCALno)(ADDRESS=(PROTOCOL=BEQ)))\r\n    root  3710   185  0 08:46:12 ?        0:00 in.telnetd\r\n$

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
6 [报告]
发表于 2005-06-01 09:58 |只看该作者

为什么solaris的CPU总是接近100%?

用top看看,,,\r\nload averages:  0.01,  0.02,  0.02              akin.com               09:43:44\r\n56 processes:  54 sleeping, 1 stopped, 1 on cpu\r\nCPU states: 99.8% idle,  0.2% user,  0.0% kernel,  0.0% iowait,  0.0% swap\r\nMemory: 256M real, 130M free, 108M swap in use, 1.1G swap free\r\n\r\n   PID USERNAME THR PR NCE  SIZE   RES STATE   TIME FLTS    CPU COMMAND\r\n 13810 akin       1 59   0 2728K 1544K cpu00   0:00    0  0.26% top\r\n 13816 root       1 59   0 1104K  800K sleep   0:00    0  0.14% init.cssd\r\n 13812 root       1 59   0 1104K  800K sleep   0:00    0  0.10% init.cssd\r\n 13806 akin       1 59   0 1088K  784K sleep   0:00    0  0.08% sh\r\n 13825 root       1 59   0  968K  664K sleep   0:00    0  0.03% sleep\r\n   298 root       7 59   0 2408K 1896K sleep   0:40    0  0.01% mibiisa\r\n     1 root       1 59   0 1240K  648K sleep   0:25    0  0.00% init\r\n   199 root      20 59   0 3296K 2592K sleep   0:08    0  0.00% nscd\r\n   367 mysql      9 59   0 40.9M 14.8M sleep   0:03    0  0.00% mysqld\r\n   182 root      13 59   0 3448K 1760K sleep   0:02    0  0.00% syslogd\r\n   317 root       1 59   0 19.3M 11.0M sleep   0:01    0  0.00% Xsun\r\n   357 root       1 59   0 7448K 4584K sleep   0:01    0  0.00% dtgreet\r\n   309 root       2 59   0 2632K 1968K sleep   0:01    0  0.00% vold\r\n   371 nobody     1 59   0 13.1M 6696K sleep   0:00    0  0.00% httpd\r\n  1783 nobody     1 59   0 12.9M 6176K sleep   0:00    0  0.00% httpd

论坛徽章:
0
7 [报告]
发表于 2005-06-01 10:25 |只看该作者

为什么solaris的CPU总是接近100%?

哪有top工具下载?谢谢!

论坛徽章:
0
8 [报告]
发表于 2005-06-01 14:22 |只看该作者

为什么solaris的CPU总是接近100%?

top安装出现make: Fatal error: Command failed for target `top.o\'

论坛徽章:
0
9 [报告]
发表于 2005-06-01 17:09 |只看该作者

为什么solaris的CPU总是接近100%?

从ps -ef中可以看到是你的oracle,引起solaris资料占用的,你现在可以找一个oracle或是业务的应用程序上的问题.

论坛徽章:
0
10 [报告]
发表于 2005-12-06 17:43 |只看该作者
用 prstat 查看进程统计信息拉
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP