VPS侦探论坛

 找回密码
 注册
查看: 6070|回复: 10

军哥求助,lnmp使用过程中突然不能用了,日志已贴出

[复制链接]
发表于 2013-6-7 14:09:48 | 显示全部楼层 |阅读模式

军哥,感谢百忙这中阅读此贴,服务器使用lnmp一直好好的,突然从今天开始就访问速度特别慢,还会出现
502 Bad Gateway,以前用着一直都好好的,突然就这样了,按常见问题中的解决方法修改了也不行,贴出日志,麻烦军哥帮助分析下:
(pool default) exited on signal 15 SIGTERM after 3254.666386 seconds from start
Jun 07 09:19:06.872699 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.872767 [WARNING] fpm_children_bury(), line 215: child 17285 (pool default) exited on signal 15 SIGTERM after 9818.418278 seconds from start
Jun 07 09:19:06.873861 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.873917 [WARNING] fpm_children_bury(), line 215: child 13757 (pool default) exited on signal 15 SIGTERM after 36340.085956 seconds from start
Jun 07 09:19:06.874227 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.874258 [WARNING] fpm_children_bury(), line 215: child 15324 (pool default) exited on signal 15 SIGTERM after 18429.074504 seconds from start
Jun 07 09:19:06.874268 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
Jun 07 09:23:43.243607 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Jun 07 09:23:43.259183 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Jun 07 09:23:43.259275 [NOTICE] fpm_init(), line 52: fpm is running, pid 2735
Jun 07 09:23:43.260277 [NOTICE] fpm_children_make(), line 352: child 2736 (pool default) started
Jun 07 09:23:43.261425 [NOTICE] fpm_children_make(), line 352: child 2737 (pool default) started
Jun 07 09:23:43.262552 [NOTICE] fpm_children_make(), line 352: child 2738 (pool default) started
Jun 07 09:23:43.263628 [NOTICE] fpm_children_make(), line 352: child 2739 (pool default) started
Jun 07 09:23:43.264262 [NOTICE] fpm_children_make(), line 352: child 2740 (pool default) started
Jun 07 09:23:43.264298 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-7 16:24:39 | 显示全部楼层


看日期前半部分有程序长时间运行把php-fpm拖死了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-7 16:39:20 | 显示全部楼层

首先感谢军哥百忙之中的回复,我继续贴出出现问题前到现在的日志,麻烦军哥分析下是什么程序把php拖死了?如何解决这个问题?我重启服务器N次了,依然不能解决,最坏打算,我现在用的是lnmp0.7 删除后安装1.0 是否可以解决此问题?请军哥明示,日志如下,大概是昨天晚上10点左右开始出现问题的

received SIGCHLD
Jun 06 18:22:02.918064 [NOTICE] fpm_children_bury(), line 215: child 29719 (pool default) exited with code 0 after 5198.125109 seconds from start
Jun 06 18:22:02.919622 [NOTICE] fpm_children_make(), line 352: child 637 (pool default) started
Jun 06 18:37:07.639281 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 18:37:07.639337 [NOTICE] fpm_children_bury(), line 215: child 30801 (pool default) exited with code 0 after 5276.545155 seconds from start
Jun 06 18:37:07.640718 [NOTICE] fpm_children_make(), line 352: child 1007 (pool default) started
Jun 06 18:41:57.748442 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 18:41:57.748498 [NOTICE] fpm_children_bury(), line 215: child 31032 (pool default) exited with code 0 after 5197.273233 seconds from start
Jun 06 18:41:57.749680 [NOTICE] fpm_children_make(), line 352: child 1143 (pool default) started
Jun 06 19:02:43.923944 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 19:02:43.924001 [NOTICE] fpm_children_bury(), line 215: child 31651 (pool default) exited with code 0 after 5481.557937 seconds from start
Jun 06 19:02:43.925331 [NOTICE] fpm_children_make(), line 352: child 2077 (pool default) started
Jun 06 19:37:35.859738 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 19:37:35.859793 [NOTICE] fpm_children_bury(), line 215: child 32716 (pool default) exited with code 0 after 5675.097727 seconds from start
Jun 06 19:37:35.861031 [NOTICE] fpm_children_make(), line 352: child 3425 (pool default) started
Jun 06 19:53:38.049424 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 19:53:38.049486 [NOTICE] fpm_children_bury(), line 215: child 637 (pool default) exited with code 0 after 5495.129879 seconds from start
Jun 06 19:53:38.050753 [NOTICE] fpm_children_make(), line 352: child 4114 (pool default) started
Jun 06 20:07:01.305633 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 20:07:01.305699 [NOTICE] fpm_children_bury(), line 215: child 1007 (pool default) exited with code 0 after 5393.664993 seconds from start
Jun 06 20:07:01.306428 [NOTICE] fpm_children_make(), line 352: child 4744 (pool default) started
Jun 06 20:13:31.806636 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 20:13:31.806685 [NOTICE] fpm_children_bury(), line 215: child 1143 (pool default) exited with code 0 after 5494.057018 seconds from start
Jun 06 20:13:31.807968 [NOTICE] fpm_children_make(), line 352: child 4949 (pool default) started
Jun 06 20:29:28.967274 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 20:29:28.967340 [NOTICE] fpm_children_bury(), line 215: child 2077 (pool default) exited with code 0 after 5205.042021 seconds from start
Jun 06 20:29:28.968862 [NOTICE] fpm_children_make(), line 352: child 5753 (pool default) started
Jun 06 20:55:53.213056 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 20:55:53.213106 [NOTICE] fpm_children_bury(), line 215: child 3425 (pool default) exited with code 0 after 4697.352088 seconds from start
Jun 06 20:55:53.214536 [NOTICE] fpm_children_make(), line 352: child 7101 (pool default) started
Jun 06 21:12:04.546198 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 21:12:04.546255 [NOTICE] fpm_children_bury(), line 215: child 4114 (pool default) exited with code 0 after 4706.495515 seconds from start
Jun 06 21:12:04.547165 [NOTICE] fpm_children_make(), line 352: child 7873 (pool default) started
Jun 06 21:18:44.234450 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 21:18:44.234498 [NOTICE] fpm_children_bury(), line 215: child 4744 (pool default) exited with code 0 after 4302.928083 seconds from start
Jun 06 21:18:44.235227 [NOTICE] fpm_children_make(), line 352: child 8272 (pool default) started
Jun 06 21:26:54.355561 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 21:26:54.355616 [NOTICE] fpm_children_bury(), line 215: child 4949 (pool default) exited with code 0 after 4402.547662 seconds from start
Jun 06 21:26:54.356967 [NOTICE] fpm_children_make(), line 352: child 8613 (pool default) started
Jun 06 21:42:19.435751 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 21:42:19.435804 [NOTICE] fpm_children_bury(), line 215: child 5753 (pool default) exited with code 0 after 4370.466957 seconds from start
Jun 06 21:42:19.439238 [NOTICE] fpm_children_make(), line 352: child 9324 (pool default) started
Jun 06 22:02:30.473891 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 22:02:30.473958 [NOTICE] fpm_children_bury(), line 215: child 7101 (pool default) exited with code 0 after 3997.259433 seconds from start
Jun 06 22:02:30.475660 [NOTICE] fpm_children_make(), line 352: child 10462 (pool default) started
Jun 06 22:19:57.246286 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 22:19:57.246361 [NOTICE] fpm_children_bury(), line 215: child 7873 (pool default) exited with code 0 after 4072.699210 seconds from start
Jun 06 22:19:57.251260 [NOTICE] fpm_children_make(), line 352: child 11266 (pool default) started
Jun 06 22:23:19.147338 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 22:23:19.147409 [NOTICE] fpm_children_bury(), line 215: child 8272 (pool default) exited with code 0 after 3874.912198 seconds from start
Jun 06 22:23:19.148715 [NOTICE] fpm_children_make(), line 352: child 11427 (pool default) started
Jun 06 22:31:22.745872 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 22:31:22.745935 [NOTICE] fpm_children_bury(), line 215: child 8613 (pool default) exited with code 0 after 3868.388982 seconds from start
Jun 06 22:31:22.747096 [NOTICE] fpm_children_make(), line 352: child 11814 (pool default) started
Jun 06 22:45:17.317090 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 22:45:17.317146 [NOTICE] fpm_children_bury(), line 215: child 9324 (pool default) exited with code 0 after 3777.877927 seconds from start
Jun 06 22:45:17.318823 [NOTICE] fpm_children_make(), line 352: child 12414 (pool default) started
Jun 06 23:00:58.874456 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 23:00:58.874535 [NOTICE] fpm_children_bury(), line 215: child 10462 (pool default) exited with code 0 after 3508.398890 seconds from start
Jun 06 23:00:58.876132 [NOTICE] fpm_children_make(), line 352: child 13212 (pool default) started
Jun 06 23:13:26.785451 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 06 23:13:26.785513 [NOTICE] fpm_children_bury(), line 215: child 11266 (pool default) exited with code 0 after 3209.534281 seconds from start
Jun 06 23:13:26.787978 [NOTICE] fpm_children_make(), line 352: child 13757 (pool default) started

[ 本帖最后由 张小凡 于 2013-6-7 16:45 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-6-7 16:39:49 | 显示全部楼层



Jun 07 04:11:57.797804 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 04:11:57.797863 [NOTICE] fpm_children_bury(), line 215: child 11427 (pool default) exited with code 0 after 20918.649160 seconds from start
Jun 07 04:11:57.799772 [NOTICE] fpm_children_make(), line 352: child 15324 (pool default) started
Jun 07 05:06:19.951793 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 05:06:19.951883 [NOTICE] fpm_children_bury(), line 215: child 11814 (pool default) exited with code 0 after 23697.204800 seconds from start
Jun 07 05:06:19.967509 [NOTICE] fpm_children_make(), line 352: child 16419 (pool default) started
Jun 07 06:35:28.452284 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 06:35:28.452359 [NOTICE] fpm_children_bury(), line 215: child 12414 (pool default) exited with code 0 after 28211.133551 seconds from start
Jun 07 06:35:28.454507 [NOTICE] fpm_children_make(), line 352: child 17285 (pool default) started
Jun 07 08:24:52.194998 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 08:24:52.195080 [NOTICE] fpm_children_bury(), line 215: child 13212 (pool default) exited with code 0 after 33833.318961 seconds from start
Jun 07 08:24:52.204972 [NOTICE] fpm_children_make(), line 352: child 18978 (pool default) started
Jun 07 09:19:06.868847 [NOTICE] fpm_got_signal(), line 56: received SIGTERM
Jun 07 09:19:06.868939 [NOTICE] fpm_pctl(), line 256: switching to 'terminating' state
Jun 07 09:19:06.868984 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 18978 (pool default)
Jun 07 09:19:06.868994 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 17285 (pool default)
Jun 07 09:19:06.869003 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 16419 (pool default)
Jun 07 09:19:06.869012 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 15324 (pool default)
Jun 07 09:19:06.869020 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 13757 (pool default)
Jun 07 09:19:06.869028 [NOTICE] fpm_pctl_kill_all(), line 181: 5 children are still alive
Jun 07 09:19:06.869039 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.871163 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.871242 [WARNING] fpm_children_bury(), line 215: child 16419 (pool default) exited on signal 15 SIGTERM after 15166.903753 seconds from start
Jun 07 09:19:06.871309 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.871340 [WARNING] fpm_children_bury(), line 215: child 18978 (pool default) exited on signal 15 SIGTERM after 3254.666386 seconds from start
Jun 07 09:19:06.872699 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.872767 [WARNING] fpm_children_bury(), line 215: child 17285 (pool default) exited on signal 15 SIGTERM after 9818.418278 seconds from start
Jun 07 09:19:06.873861 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.873917 [WARNING] fpm_children_bury(), line 215: child 13757 (pool default) exited on signal 15 SIGTERM after 36340.085956 seconds from start
Jun 07 09:19:06.874227 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Jun 07 09:19:06.874258 [WARNING] fpm_children_bury(), line 215: child 15324 (pool default) exited on signal 15 SIGTERM after 18429.074504 seconds from start
Jun 07 09:19:06.874268 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
Jun 07 09:23:43.243607 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Jun 07 09:23:43.259183 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Jun 07 09:23:43.259275 [NOTICE] fpm_init(), line 52: fpm is running, pid 2735
Jun 07 09:23:43.260277 [NOTICE] fpm_children_make(), line 352: child 2736 (pool default) started
Jun 07 09:23:43.261425 [NOTICE] fpm_children_make(), line 352: child 2737 (pool default) started
Jun 07 09:23:43.262552 [NOTICE] fpm_children_make(), line 352: child 2738 (pool default) started
Jun 07 09:23:43.263628 [NOTICE] fpm_children_make(), line 352: child 2739 (pool default) started
Jun 07 09:23:43.264262 [NOTICE] fpm_children_make(), line 352: child 2740 (pool default) started
Jun 07 09:23:43.264298 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-6-7 19:47:10 | 显示全部楼层

日志没法看出是哪个文件,必须用strace跟踪才行
升到1.0 应该还会一样

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

 楼主| 发表于 2013-6-7 20:25:46 | 显示全部楼层

那个strace跟踪不会用,看了半天百度也没看懂,请问军哥,重装系统后重新安装lnmp 1.0 是否能解决问题呢?
发表于 2013-6-8 08:17:03 | 显示全部楼层

ps aux看占用高的php-fpm的pid
strace -o mystracelog.txt -p pid

这种问题重装不一定有效果
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-6-8 09:40:59 | 显示全部楼层

结果如下:

[root@r1s17 ~]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  10368   680 ?        Ss   Jun07   0:00 init [3]      
root         2  0.0  0.0      0     0 ?        S<   Jun07   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   Jun07   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   Jun07   0:00 [watchdog/0]
root         5  0.0  0.0      0     0 ?        S<   Jun07   0:00 [migration/1]
root         6  0.0  0.0      0     0 ?        SN   Jun07   0:00 [ksoftirqd/1]
root         7  0.0  0.0      0     0 ?        S<   Jun07   0:00 [watchdog/1]
root         8  0.0  0.0      0     0 ?        S<   Jun07   0:00 [migration/2]
root         9  0.0  0.0      0     0 ?        SN   Jun07   0:00 [ksoftirqd/2]
root        10  0.0  0.0      0     0 ?        S<   Jun07   0:00 [watchdog/2]
root        11  0.0  0.0      0     0 ?        S<   Jun07   0:00 [migration/3]
root        12  0.0  0.0      0     0 ?        SN   Jun07   0:00 [ksoftirqd/3]
root        13  0.0  0.0      0     0 ?        S<   Jun07   0:00 [watchdog/3]
root        14  0.0  0.0      0     0 ?        S<   Jun07   0:00 [events/0]
root        15  0.0  0.0      0     0 ?        S<   Jun07   0:00 [events/1]
root        16  0.0  0.0      0     0 ?        S<   Jun07   0:00 [events/2]
root        17  0.0  0.0      0     0 ?        S<   Jun07   0:00 [events/3]
root        18  0.0  0.0      0     0 ?        S<   Jun07   0:00 [khelper]
root        55  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kthread]
root        62  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kblockd/0]
root        63  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kblockd/1]
root        64  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kblockd/2]
root        65  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kblockd/3]
root        66  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kacpid]
root       168  0.0  0.0      0     0 ?        S<   Jun07   0:00 [cqueue/0]
root       169  0.0  0.0      0     0 ?        S<   Jun07   0:00 [cqueue/1]
root       170  0.0  0.0      0     0 ?        S<   Jun07   0:00 [cqueue/2]
root       171  0.0  0.0      0     0 ?        S<   Jun07   0:00 [cqueue/3]
root       174  0.0  0.0      0     0 ?        S<   Jun07   0:00 [khubd]
root       176  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kseriod]
root       264  0.0  0.0      0     0 ?        S    Jun07   0:00 [khungtaskd]
root       265  0.0  0.0      0     0 ?        S    Jun07   0:00 [pdflush]
root       266  0.0  0.0      0     0 ?        S    Jun07   0:00 [pdflush]
root       267  0.0  0.0      0     0 ?        S<   Jun07   0:03 [kswapd0]
root       268  0.0  0.0      0     0 ?        S<   Jun07   0:00 [aio/0]
root       269  0.0  0.0      0     0 ?        S<   Jun07   0:00 [aio/1]
root       270  0.0  0.0      0     0 ?        S<   Jun07   0:00 [aio/2]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-8 09:41:14 | 显示全部楼层


root       271  0.0  0.0      0     0 ?        S<   Jun07   0:00 [aio/3]
root       417  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kpsmoused]
root       462  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ata/0]
root       463  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ata/1]
root       464  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ata/2]
root       465  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ata/3]
root       466  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ata_aux]
root       472  0.0  0.0      0     0 ?        S<   Jun07   0:00 [scsi_eh_0]
root       473  0.0  0.0      0     0 ?        S<   Jun07   0:00 [scsi_eh_1]
root       479  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kstriped]
root       500  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ksnapd]
root       523  0.0  0.0      0     0 ?        S<   Jun07   0:04 [kjournald]
root       548  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kauditd]
root       581  0.0  0.0  12712   792 ?        S<s  Jun07   0:00 /sbin/udevd -d
root      1280  0.0  0.0      0     0 ?        S<   Jun07   0:00 [hd-audio0]
root      1635  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kmpathd/0]
root      1636  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kmpathd/1]
root      1637  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kmpathd/2]
root      1638  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kmpathd/3]
root      1639  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kmpath_handle]
root      1699  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kjournald]
root      1854  0.0  0.0      0     0 ?        S<   Jun07   0:00 [iscsi_eh]
root      1915  0.0  0.0      0     0 ?        S<   Jun07   0:00 [cnic_wq]
root      1939  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ib_addr]
root      1956  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ib_mcast]
root      1957  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ib_inform]
root      1958  0.0  0.0      0     0 ?        S<   Jun07   0:00 [local_sa]
root      1963  0.0  0.0      0     0 ?        S<   Jun07   0:00 [iw_cm_wq]
root      1969  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ib_cm/0]
root      1970  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ib_cm/1]
root      1971  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ib_cm/2]
root      1972  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ib_cm/3]
root      1978  0.0  0.0      0     0 ?        S<   Jun07   0:00 [rdma_cm]
root      2000  0.0  0.0  38880   452 ?        Ssl  Jun07   0:00 brcm_iscsiuio
root      2006  0.0  0.0  12152   480 ?        Ss   Jun07   0:00 iscsid
root      2007  0.0  0.1  12648  4460 ?        S<Ls Jun07   0:00 iscsid
root      2274  0.0  0.0  27344   816 ?        S<sl Jun07   0:00 auditd
root      2276  0.0  0.0  16284   764 ?        S<sl Jun07   0:00 /sbin/audispd
root      2307  0.0  0.0   5928   608 ?        Ss   Jun07   0:00 syslogd -m 0
root      2310  0.0  0.0   3824   424 ?        Ss   Jun07   0:00 klogd -x
root      2360  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kondemand/0]
root      2361  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kondemand/1]
root      2362  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kondemand/2]
root      2364  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kondemand/3]
root      2383  0.0  0.0  10780   368 ?        Ss   Jun07   0:00 irqbalance
rpc       2414  0.0  0.0   8072   608 ?        Ss   Jun07   0:00 portmap
root      2451  0.0  0.0      0     0 ?        S<   Jun07   0:00 [rpciod/0]
root      2452  0.0  0.0      0     0 ?        S<   Jun07   0:00 [rpciod/1]
root      2453  0.0  0.0      0     0 ?        S<   Jun07   0:00 [rpciod/2]
root      2454  0.0  0.0      0     0 ?        S<   Jun07   0:00 [rpciod/3]
rpcuser   2463  0.0  0.0  10180   796 ?        Ss   Jun07   0:00 rpc.statd
root      2499  0.0  0.0  55204   772 ?        Ss   Jun07   0:00 rpc.idmapd
dbus      2522  0.0  0.0  21376  1004 ?        Ss   Jun07   0:00 dbus-daemon --s
root      2535  0.0  0.0  10452   784 ?        Ss   Jun07   0:00 /usr/sbin/hcid
root      2541  0.0  0.0   5956   544 ?        Ss   Jun07   0:00 /usr/sbin/sdpd
root      2571  0.0  0.0      0     0 ?        S<   Jun07   0:00 [krfcommd]
root      2616  0.0  0.0  21192  1348 ?        Ssl  Jun07   0:00 pcscd
root      2630  0.0  0.0   3820   572 ?        Ss   Jun07   0:00 /usr/sbin/acpid
68        2643  0.0  0.1  31056  4108 ?        Ss   Jun07   0:00 hald
root      2644  0.0  0.0  21716  1032 ?        S    Jun07   0:00 hald-runner
68        2652  0.0  0.0  12344   868 ?        S    Jun07   0:00 hald-addon-acpi
root      2681  0.0  0.0   8536   496 ?        Ss   Jun07   0:00 /usr/bin/hidd -
root      2721  0.0  0.0  54428  1508 ?        Ssl  Jun07   0:00 automount
root      2739  0.0  0.1 148008  5052 ?        Ss   Jun07   0:00 /usr/local/php/
www       2740  0.5  0.3 152904 13036 ?        S    Jun07   6:14 /usr/local/php/
www       2741  0.5  0.3 154676 14392 ?        S    Jun07   6:18 /usr/local/php/
www       2742  0.5  0.3 153388 13380 ?        S    Jun07   6:20 /usr/local/php/
www       2743  0.5  0.3 152392 12360 ?        S    Jun07   6:17 /usr/local/php/
www       2744  0.5  0.3 157140 15180 ?        S    Jun07   6:12 /usr/local/php/
www       2745  0.5  0.3 155972 14156 ?        S    Jun07   6:16 /usr/local/php/
www       2746  0.5  0.3 153648 13648 ?        S    Jun07   6:17 /usr/local/php/
www       2747  0.5  0.3 156508 14688 ?        S    Jun07   6:14 /usr/local/php/
www       2748  0.5  0.3 156744 14976 ?        S    Jun07   6:19 /usr/local/php/
www       2749  0.5  0.4 158448 18328 ?        S    Jun07   6:17 /usr/local/php/
www       2750  0.5  0.3 156252 14316 ?        S    Jun07   6:18 /usr/local/php/
www       2751  0.5  0.3 154700 14284 ?        S    Jun07   6:16 /usr/local/php/
www       2752  0.5  0.3 156248 14480 ?        S    Jun07   6:20 /usr/local/php/
www       2753  0.5  0.3 154712 14588 ?        S    Jun07   6:19 /usr/local/php/
www       2756  0.5  0.4 157212 17240 ?        S    Jun07   6:14 /usr/local/php/
root      2771  0.0  0.0  62656  1216 ?        Ss   Jun07   0:00 /usr/sbin/sshd
root      2789  0.0  0.0  21664   900 ?        Ss   Jun07   0:00 xinetd -stayali
root      2937  0.0  0.0  66964  2316 ?        Ss   Jun07   0:00 sendmail: accep
smmsp     2947  0.0  0.0  57720  1768 ?        Ss   Jun07   0:00 sendmail: Queue
root      2961  0.0  0.0   6476   372 ?        Ss   Jun07   0:00 gpm -m /dev/inp
root      2974  0.0  0.0  75752  1160 ?        Ss   Jun07   0:00 crond
xfs       3003  0.0  0.0  20244  1080 ?        Ss   Jun07   0:00 xfs -droppriv -
root      3028  0.0  0.0  18752   444 ?        Ss   Jun07   0:00 /usr/sbin/atd
avahi     3054  0.0  0.0  23168  1292 ?        Ss   Jun07   0:00 avahi-daemon: r
avahi     3055  0.0  0.0  23168   336 ?        Ss   Jun07   0:00 avahi-daemon: c
root      3082  0.0  0.0  78768   628 ?        Ss   Jun07   0:00 pure-ftpd (SERV
root      3116  0.0  0.0  20528   624 ?        S    Jun07   0:00 /usr/sbin/smart
root      3120  0.0  0.0   3812   488 tty1     Ss+  Jun07   0:00 /sbin/mingetty
root      3121  0.0  0.0   3812   484 tty2     Ss+  Jun07   0:00 /sbin/mingetty
root      3122  0.0  0.0   3812   488 tty3     Ss+  Jun07   0:00 /sbin/mingetty
root      3123  0.0  0.0   3812   484 tty4     Ss+  Jun07   0:00 /sbin/mingetty
root      3124  0.0  0.0   3812   488 tty5     Ss+  Jun07   0:00 /sbin/mingetty
root      3126  0.0  0.0   3812   488 tty6     Ss+  Jun07   0:00 /sbin/mingetty
root      3185  0.0  0.4 258584 17568 ?        SN   Jun07   0:01 /usr/bin/python
root      3188  0.0  0.0  12936  1184 ?        SN   Jun07   0:00 /usr/libexec/ga
root      8876  0.0  0.0  41028  1032 ?        Ss   Jun07   0:00 nginx: master p
www       8877  0.2  0.9  79724 40064 ?        S    Jun07   1:58 nginx: worker p
root      8886  1.2  0.1  91724  4988 ?        Ss   Jun07   9:50 sshd: root@pts/
root      8890  0.1  0.0  55372  3580 ?        Ss   Jun07   1:23 /usr/libexec/op
root     11353  0.0  0.0  66112  1532 pts/0    Ss   08:59   0:00 -bash
root     11500  0.0  0.0  65644   992 pts/0    R+   09:43   0:00 ps aux
[root@r1s17 ~]#


好像每个PHP-fpm占用CPU都一样,我该追踪哪个呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-8 20:56:56 | 显示全部楼层



观测一会儿看看那个pid的大就跟踪那个,或先随便跟踪一个
发表于 2013-6-9 19:03:50 | 显示全部楼层

如果你装的是论坛,先重启一下lnmp,TOP看一下mysql占用率。如果特别高。可能是cc攻击。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-26 01:42 , Processed in 0.030056 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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