Периодический сбой Pg.dll на PostgreSQL 9.0.1 + ActivePerl 1007 + Apache 2.2.17 на Win2k3sp2 - PullRequest
0 голосов
/ 01 ноября 2010

В последнее время мы сталкиваемся с загадочными, периодическими сбоями Apache, несколько раз в день, но без определений, когда, как долго или между ними или какое время суток.

Я бы обновил DBD :: Pg, но я не смог найти PPD для чего-то более нового, чем тот, который мы используем (2.14.1). Тем не менее, изменения с тех пор не кажутся особенно важными для нашего использования.

Средство просмотра событий Windows показывает это:

Event Type: Error
Event Source:   Application Error
Event Category: (100)
Event ID:   1000
Date:       2010-11-01
Time:       9:55:28 AM
User:       N/A
Computer:   myserver
Description:
Faulting application httpd.exe, version 2.2.17.0, faulting module Pg.dll, version 0.0.0.0, fault address 0x0000e8a5.

Итак, я посмотрел в логах Apache, в которых говорилось:

[Mon Nov 01 09:55:32 2010] [notice] Parent: child process exited with status 3221225477 -- Restarting.

Не очень полезно, поэтому я посмотрел в журналах PostgreSQL (Pg.dll является частью DBD::Pg), и они сказали:

2010-11-01 09:55:32 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:32 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection
2010-11-01 09:55:33 EDT LOG:  could not receive data from client: No connection could be made because the target machine actively refused it.


2010-11-01 09:55:33 EDT LOG:  unexpected EOF on client connection

Но кроме этого я понятия не имею о причине, за исключением, возможно, времен более высокой (но не такой высокой - у нас очень мало пользователей) нагрузки на сервер.

Есть идеи, что может быть причиной этого?

1 Ответ

0 голосов
/ 23 ноября 2010

Это может вызывать перебои в работе сети. Я попытался войти в PostgreSQL с помощью psql из Turnkey, работающего на VirtualBox на том же сервере, на котором работает PostgreSQL, и это иногда приводило к тому, что потоки PostgreSQL занимали намного больше ресурсов ЦП, а затем не позволяли войти в систему в конце. Установка PostgreSQL под ключ позволила этому прекратить работу, поэтому вполне возможно, что на уровне Windows существует общая проблема с сетью, которая заставляет PostgreSQL и Pg.dll, в частности, задыхаться, что приводит к сбою Apache, поскольку DBD :: Pg постоянно загружается через mod_perl .

...