VPS侦探论坛

 找回密码
 注册
查看: 6102|回复: 7

最近几天cpu、流量异常 但是ip、pv正常

[复制链接]
发表于 2015-1-26 18:55:57 | 显示全部楼层 |阅读模式


从18号开始 cpu和流量开始异常,ip和pv都正常

军哥需要查看那些文件来判定呢?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-1-26 19:49:37 | 显示全部楼层


ps aux查看各个程序的内存和cpu的占用情况
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-1-26 20:38:49 | 显示全部楼层

  1. [root@instance-ngydokyj ~]# ps aux
  2. USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
  3. root         1  0.0  0.0   2900  1416 ?        Ss   18:07   0:00 /sbin/init
  4. root         2  0.0  0.0      0     0 ?        S    18:07   0:00 [kthreadd]
  5. root         3  0.0  0.0      0     0 ?        S    18:07   0:00 [migration/0]
  6. root         4  0.0  0.0      0     0 ?        S    18:07   0:00 [ksoftirqd/0]
  7. root         5  0.0  0.0      0     0 ?        S    18:07   0:00 [migration/0]
  8. root         6  0.0  0.0      0     0 ?        S    18:07   0:00 [watchdog/0]
  9. root         7  0.0  0.0      0     0 ?        S    18:07   0:00 [migration/1]
  10. root         8  0.0  0.0      0     0 ?        S    18:07   0:00 [migration/1]
  11. root         9  0.0  0.0      0     0 ?        S    18:07   0:00 [ksoftirqd/1]
  12. root        10  0.0  0.0      0     0 ?        S    18:07   0:00 [watchdog/1]
  13. root        11  0.0  0.0      0     0 ?        S    18:07   0:00 [events/0]
  14. root        12  0.0  0.0      0     0 ?        S    18:07   0:00 [events/1]
  15. root        13  0.0  0.0      0     0 ?        S    18:07   0:00 [cgroup]
  16. root        14  0.0  0.0      0     0 ?        S    18:07   0:00 [khelper]
  17. root        15  0.0  0.0      0     0 ?        S    18:07   0:00 [netns]
  18. root        16  0.0  0.0      0     0 ?        S    18:07   0:00 [async/mgr]
  19. root        17  0.0  0.0      0     0 ?        S    18:07   0:00 [pm]
  20. root        18  0.0  0.0      0     0 ?        S    18:07   0:00 [sync_supers]
  21. root        19  0.0  0.0      0     0 ?        S    18:07   0:00 [bdi-default]
  22. root        20  0.0  0.0      0     0 ?        S    18:07   0:00 [kintegrityd/0]
  23. root        21  0.0  0.0      0     0 ?        S    18:07   0:00 [kintegrityd/1]
  24. root        22  0.0  0.0      0     0 ?        S    18:07   0:00 [kblockd/0]
  25. root        23  0.0  0.0      0     0 ?        S    18:07   0:00 [kblockd/1]
  26. root        24  0.0  0.0      0     0 ?        S    18:07   0:00 [kacpid]
  27. root        25  0.0  0.0      0     0 ?        S    18:07   0:00 [kacpi_notify]
  28. root        26  0.0  0.0      0     0 ?        S    18:07   0:00 [kacpi_hotplug]
  29. root        27  0.0  0.0      0     0 ?        S    18:07   0:00 [ata_aux]
  30. root        28  0.0  0.0      0     0 ?        S    18:07   0:00 [ata_sff/0]
  31. root        29  0.0  0.0      0     0 ?        S    18:07   0:00 [ata_sff/1]
  32. root        30  0.0  0.0      0     0 ?        S    18:07   0:00 [ksuspend_usbd]
  33. root        31  0.0  0.0      0     0 ?        S    18:07   0:00 [khubd]
  34. root        32  0.0  0.0      0     0 ?        S    18:07   0:00 [kseriod]
  35. root        33  0.0  0.0      0     0 ?        S    18:07   0:00 [md/0]
  36. root        34  0.0  0.0      0     0 ?        S    18:07   0:00 [md/1]
  37. root        35  0.0  0.0      0     0 ?        S    18:07   0:00 [md_misc/0]
  38. root        36  0.0  0.0      0     0 ?        S    18:07   0:00 [md_misc/1]
  39. root        37  0.0  0.0      0     0 ?        S    18:07   0:00 [linkwatch]
  40. root        38  0.0  0.0      0     0 ?        S    18:07   0:00 [khungtaskd]
  41. root        39  0.0  0.0      0     0 ?        S    18:07   0:00 [kswapd0]
  42. root        40  0.0  0.0      0     0 ?        SN   18:07   0:00 [ksmd]
  43. root        41  0.0  0.0      0     0 ?        S    18:07   0:00 [aio/0]
  44. root        42  0.0  0.0      0     0 ?        S    18:07   0:00 [aio/1]
  45. root        43  0.0  0.0      0     0 ?        S    18:07   0:00 [crypto/0]
  46. root        44  0.0  0.0      0     0 ?        S    18:07   0:00 [crypto/1]
  47. root        49  0.0  0.0      0     0 ?        S    18:07   0:00 [kthrotld/0]
  48. root        50  0.0  0.0      0     0 ?        S    18:07   0:00 [kthrotld/1]
  49. root        52  0.0  0.0      0     0 ?        S    18:08   0:00 [kpsmoused]
  50. root        53  0.0  0.0      0     0 ?        S    18:08   0:00 [usbhid_resume]
  51. root       143  0.0  0.0      0     0 ?        S    18:08   0:00 [scsi_eh_0]
  52. root       144  0.0  0.0      0     0 ?        S    18:08   0:00 [scsi_eh_1]
  53. root       255  0.0  0.0      0     0 ?        S    18:08   0:00 [virtio-blk]
  54. root       289  0.0  0.0      0     0 ?        S    18:08   0:00 [jbd2/vda1-8]
  55. root       290  0.0  0.0      0     0 ?        S    18:08   0:00 [ext4-dio-unwr]
  56. root       362  0.0  0.0   2460   732 ?        S<s 18:08="" 0:00="" sbin="" udevd="" -d
  57. root       398  0.0  0.0      0     0 ?        S    18:08   0:00 [virtio-net]
  58. root       403  0.0  0.0      0     0 ?        S    18:08   0:00 [vballoon]
  59. root       618  0.0  0.0   2456   708 ?        S<   18:08   0:00 /sbin/udevd -d
  60. root       621  0.0  0.0      0     0 ?        S    18:08   0:00 [kstriped]
  61. root       644  0.0  0.0      0     0 ?        S    18:08   0:00 [jbd2/vdb-8]
  62. root       645  0.0  0.0      0     0 ?        S    18:08   0:00 [ext4-dio-unwr]
  63. root       676  0.0  0.0      0     0 ?        S    18:08   0:00 [kauditd]
  64. root       789  0.0  0.0      0     0 ?        S    18:08   0:00 [flush-253:0]
  65. root       790  0.0  0.0      0     0 ?        S    18:08   0:00 [flush-253:16]
  66. root       828  0.0  0.0   2836   480 ?        Ss   18:08   0:00 /sbin/dhclient
  67. root       866  0.0  0.0  12932   816 ?        S<sl 18:08="" 0:00="" auditd
  68. root       882  0.0  0.0  36996  1576 ?        Sl   18:08   0:00 /sbin/rsyslogd
  69. root       908  0.0  0.0   2020   596 ?        Ss   18:08   0:00 /usr/sbin/acpid
  70. root       922  0.0  0.0   7520   900 ?        Ss   18:08   0:00 nginx: master p
  71. www        924  0.3  0.3  19088 13088 ?        S    18:08   0:29 nginx: worker p
  72. www        925  0.4  0.3  18504 12524 ?        S    18:08   0:42 nginx: worker p
  73. root       930  0.0  0.1  27908  4380 ?        Ss   18:08   0:02 /usr/local/php/
  74. root       946  0.0  0.0   8944   988 ?        Ss   18:08   0:00 /usr/sbin/sshd
  75. root       960  0.0  0.0   5120  1412 ?        S    18:08   0:00 /bin/sh /usr/lo
  76. mysql     1103  0.0  0.5 157284 23336 ?        Sl   18:08   0:01 /usr/local/mysq
  77. root      1121  0.2  0.5  79992 23956 ?        Ssl  18:08   0:25 memcached -d -p
  78. root      1139  0.0  0.0   2008   496 tty1     Ss+  18:08   0:00 /sbin/mingetty
  79. root      1141  0.0  0.0   2008   504 tty2     Ss+  18:08   0:00 /sbin/mingetty
  80. root      1143  0.0  0.0   2456   704 ?        S<   18:08   0:00 /sbin/udevd -d
  81. root      1144  0.0  0.0   2008   504 tty3     Ss+  18:08   0:00 /sbin/mingetty
  82. root      1146  0.0  0.0   2008   500 tty4     Ss+  18:08   0:00 /sbin/mingetty
  83. root      1148  0.0  0.0   2008   500 tty5     Ss+  18:08   0:00 /sbin/mingetty
  84. root      1150  0.0  0.0   2008   504 tty6     Ss+  18:08   0:00 /sbin/mingetty
  85. root      1875  0.0  0.0  12036  3528 ?        Ss   19:56   0:00 sshd: root@pts/
  86. root      1877  0.0  0.0   5124  1656 pts/0    Ss   19:56   0:00 -bash
  87. root      1899  0.0  0.0  12020  3544 ?        Ss   19:58   0:00 sshd: root@nott
  88. root      1901  0.0  0.0   8224  1824 ?        Ss   19:58   0:00 /usr/libexec/op
  89. root      1968  0.8  0.1  14376  5976 ?        Ss   20:04   0:16 sshd: root@nott
  90. root      1970  0.1  0.0   8396  1800 ?        Ss   20:04   0:03 /usr/libexec/op
  91. root      2188  0.0  0.0   2016   540 pts/0    S+   20:21   0:00 vmstat -w 1
  92. www       2229 14.5  0.3  33592 13940 ?        R    20:28   1:25 /usr/local/php/
  93. www       2266 15.2  0.3  32248 12120 ?        R    20:28   1:24 /usr/local/php/
  94. www       2287 14.5  0.3  32260 12564 ?        R    20:29   1:16 /usr/local/php/
  95. www       2288 15.3  0.3  32244 12156 ?        R    20:30   1:08 /usr/local/php/
  96. www       2289 16.2  0.3  32248 12148 ?        R    20:33   0:42 /usr/local/php/
  97. root      2318  0.1  0.0  12108  3612 ?        Ss   20:35   0:00 sshd: root@pts/
  98. root      2334  0.0  0.0   5120  1640 pts/1    Ss   20:35   0:00 -bash
  99. root      2426  5.0  0.0   6288  2868 pts/1    S+   20:37   0:01 iptraf -g
  100. root      2427  0.4  0.0  12112  3916 ?        Ss   20:37   0:00 sshd: root@pts/
  101. root      2429  0.0  0.0   5124  1652 pts/2    Ss   20:37   0:00 -bash
  102. root      2442  0.0  0.0   4932  1056 pts/2    R+   20:37   0:00 ps aux
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-1-27 10:45:30 | 显示全部楼层

回复 2# 的帖子




军哥帮忙看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-1-27 11:36:28 | 显示全部楼层

开php慢日志,并排查一下目录下面有没有可疑的php文件

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2015-1-28 09:37:15 | 显示全部楼层

重新替换了官方的php文件 还是那样




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
 楼主| 发表于 2015-1-28 09:39:00 | 显示全部楼层

回复 5# 的帖子


php文件都没问题。。。。现在怎么办?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-1-28 14:50:30 | 显示全部楼层

开慢日志不是来解决问题的而是看日志用来找问题的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-20 17:51 , Processed in 0.028746 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表