Назад | Перейти на главную страницу

Статус Apache W

Мы используем Apache 2.2.15 и PHP 5.3.3.

У нас есть периодические случаи, когда Apache перегружается процессами, застрявшими в W - статус отправки ответа. Кажется, это происходит случайно и продлится около часа. Мы ничего не делаем с сервером и проблема исчезнет. Как я уже упоминал, когда возникает проблема, запуск «apachectl status» покажет, что большинство клиентов застряли в «W» - статус отправки ответа. MySQL также покажет несколько соединений в спящем состоянии. Затем новая реликвия покажет, что время отклика Redis чрезвычайно велико. Мы используем Redis для кеширования Magento.

Мы проверили журналы ошибок Apache, и в них нет ничего необычного. Нам было рекомендовано обновить Apache до 2.2.31 и PHP до 5.5, но мы не уверены, что это решит проблему.

Любые идеи? Мы проверили PID, когда возникла проблема, и вот что она показала. Это просто повторяется и повторяется:

poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$32\r\nzc:k:e22_Zend"..., 60, MSG_DONTWAIT, NULL, 0) = 60
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$175\r\na:7:{s:3:\"sun\";s:6:\"Sunday"..., 8192, MSG_DONTWAIT, NULL, NULL) = 183
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$34\r\nzc:k:e22_Zend"..., 62, MSG_DONTWAIT, NULL, 0) = 62
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$216\r\na:12:{i:1;s:7:\"January\";i:"..., 8192, MSG_DONTWAIT, NULL, NULL) = 224
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$62\r\nzc:k:e22_Zend"..., 90, MSG_DONTWAIT, NULL, 0) = 90
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$178\r\na:12:{i:1;s:3:\"Jan\";i:2;s:"..., 8192, MSG_DONTWAIT, NULL, NULL) = 186
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/America/Chicago", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/America/Chicago", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "\343\0\0\0\3SELECT COUNT(DISTINCT e.ent"..., 231) = 231
read(26, "\1\0\0\1\0011\0\0\2\3def\0\0\0\33COUNT(DISTINCT "..., 16384) = 83
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "[\0\0\0\3SELECT `catalog_category_en"..., 95) = 95
read(26, "\1\0\0\1\n]\0\0\2\3def\7magento\27catalog_ca"..., 16384) = 1085
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "\n\7\0\0\3SELECT `attr_table`.* FROM "..., 1806) = 1806
read(26, "\1\0\0\1\6&\0\0\2\3def\0\0\0\10value_id\10value_"..., 16384) = 961
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$32\r\nzc:k:e22_Zend"..., 60, MSG_DONTWAIT, NULL, 0) = 60
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$175\r\na:7:{s:3:\"sun\";s:6:\"Sunday"..., 8192, MSG_DONTWAIT, NULL, NULL) = 183
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$34\r\nzc:k:e22_Zend"..., 62, MSG_DONTWAIT, NULL, 0) = 62
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$216\r\na:12:{i:1;s:7:\"January\";i:"..., 8192, MSG_DONTWAIT, NULL, NULL) = 224
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$62\r\nzc:k:e22_Zend"..., 90, MSG_DONTWAIT, NULL, 0) = 90
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$178\r\na:12:{i:1;s:3:\"Jan\";i:2;s:"..., 8192, MSG_DONTWAIT, NULL, NULL) = 186
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/America/Chicago", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/America/Chicago", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "\343\0\0\0\3SELECT COUNT(DISTINCT e.ent"..., 231) = 231
read(26, "\1\0\0\1\0011\0\0\2\3def\0\0\0\33COUNT(DISTINCT "..., 16384) = 83
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "\\\0\0\0\3SELECT `catalog_category_en"..., 96) = 96
read(26, "\1\0\0\1\n]\0\0\2\3def\7magento\27catalog_ca"..., 16384) = 1082
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "\20\7\0\0\3SELECT `attr_table`.* FROM "..., 1812) = 1812
read(26, "\1\0\0\1\6&\0\0\2\3def\0\0\0\10value_id\10value_"..., 16384) = 966
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$32\r\nzc:k:e22_Zend"..., 60, MSG_DONTWAIT, NULL, 0) = 60
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$175\r\na:7:{s:3:\"sun\";s:6:\"Sunday"..., 8192, MSG_DONTWAIT, NULL, NULL) = 183
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$34\r\nzc:k:e22_Zend"..., 62, MSG_DONTWAIT, NULL, 0) = 62
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$216\r\na:12:{i:1;s:7:\"January\";i:"..., 8192, MSG_DONTWAIT, NULL, NULL) = 224
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
sendto(25, "*3\r\n$4\r\nHGET\r\n$62\r\nzc:k:e22_Zend"..., 90, MSG_DONTWAIT, NULL, 0) = 90
poll([{fd=25, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=25, events=POLLIN|POLLERR|POLLHUP}], 1, 10000) = 1 ([{fd=25, revents=POLLIN}])
recvfrom(25, "$178\r\na:12:{i:1;s:3:\"Jan\";i:2;s:"..., 8192, MSG_DONTWAIT, NULL, NULL) = 186
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/America/Chicago", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
stat("/usr/share/zoneinfo/America/Chicago", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
stat("/usr/share/zoneinfo/UTC", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "\376\0\0\0\3SELECT COUNT(DISTINCT e.ent"..., 258) = 258
read(26, "\1\0\0\1\0011\0\0\2\3def\0\0\0\33COUNT(DISTINCT "..., 16384) = 83
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "[\0\0\0\3SELECT `catalog_category_en"..., 95) = 95
read(26, "\1\0\0\1\n]\0\0\2\3def\7magento\27catalog_ca"..., 16384) = 1087
poll([{fd=26, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(26, "\n\7\0\0\3SELECT `attr_table`.* FROM "..., 1806) = 1806
read(26, "\1\0\0\1\6&\0\0\2\3def\0\0\0\10value_id\10value_"..., 16384) = 956