所以我们supervisor
运行了一个python'导演'根据SQS统计数据生成php进程的过程。 PHP流程正在抓取网站。
近年来,我们对这些问题没有任何疑问,但最近几个月开始发生的事情是,有些进程在运行一段时间后才挂起。
我有一些strace输出:
rt_sigaction(SIGPIPE, NULL, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7fbe26b18d10}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7fbe26b18d10}, NULL, 8) = 0
poll([{fd=10, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {23227338, 293227395}) = 0
clock_gettime(CLOCK_MONOTONIC, {23227338, 293432691}) = 0
clock_gettime(CLOCK_MONOTONIC, {23227338, 293627011}) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7fbe26b18d10}, NULL, 8) = 0
select(11, [10], [], [], {1, 0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {23227339, 295350994}) = 0
rt_sigaction(SIGPIPE, NULL, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7fbe26b18d10}, 8) = 0
目前这些只是四处走动。
Ltrace表明它已陷入此循环:
memset(0x7fbe28e43b88, '\0', 8) = 0x7fbe28e43b88
memset(0x7fbe28e43b60, '\0', 24) = 0x7fbe28e43b60
memset(0x7fbe28e43b88, '\0', 8) = 0x7fbe28e43b88
memset(0x7fbe28e43b60, '\0', 24) = 0x7fbe28e43b60
memset(0x7fbe28e43b88, '\0', 8) = 0x7fbe28e43b88
memset(0x7fbe28e43b60, '\0', 24) = 0x7fbe28e43b60
奇怪的是,在解析来自http://xml.fxstreet.com/news/forex-news/index.xml
现在之前/当我开始使用调试编译php时,看看幕后发生了什么,我想我会问这些电话是关于什么的,看看是否有人得到了一个想法。
由于