Mam aplikację, która współdziała z bazą danych. Nagle i od czasu do czasu strony wyświetlają mi błąd w mojej przeglądarce internetowej. Co ważniejsze, dostęp do strony localhost
powoduje wygenerowanie alertu dotyczącego avast.Nieoczekiwane zresetowanie serwera za pomocą php i apache
Jeśli odświeżam strony przy użyciu Ctrl+R
, zdarza się to sporadycznie. PHP nie pokazuje żadnych komunikatów o błędach i wygląda na to, że serwer potrzebuje więcej czasu na odpowiedź niż zwykle.
Używam wampla z apache 2.4, PHP 5.4.3. Nie mam pojęcia, gdzie rozpocząć debugowanie lub gdzie jest problem.
[Sun May 13 13:01:14 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun May 13 13:01:14 2012] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations
[Sun May 13 13:01:14 2012] [notice] Server built: May 13 2012 12:51:11
[Sun May 13 13:01:14 2012] [notice] Parent: Created child process 3660
Apache server interrupted...
arn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun May 13 13:01:15 2012] [notice] Child 3660: Child process is running
[Sun May 13 13:01:15 2012] [notice] Child 3660: Acquired the start mutex.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting 64 worker threads.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80.
[Sun May 13 13:01:28 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun May 13 13:01:28 2012] [notice] Child 3660: Exit event signaled. Child process is ending.
[Sun May 13 13:01:29 2012] [notice] Child 3660: Released the start mutex
[Sun May 13 13:01:30 2012] [notice] Child 3660: All worker threads have exited.
[Sun May 13 13:01:30 2012] [notice] Child 3660: Child process is exiting
[Sun May 13 13:01:30 2012] [notice] Parent: Child process exited successfully.
UPDATE:
Kiedy 'prośba o połączenie' występuje wtedy, gdy jest używać cachegrind
pokazuje częściową listę callstack metod. oznacza, że nie działa cały kod. pokazuje niektóre wywołania require_once i to. następnym razem, jeśli spróbuję ponownie pobrać stronę, strona wykona i wyświetli cały stempel.
Kiedy występuje żądanie połączenia '' pokazuje
18 different functions called in milliseconds (1 runs, 18 shown)
po ponawiania
220 different functions called in 329 milliseconds (2 runs, 220 shown)
Nie wiem, dlaczego to pokazano 2 działa. również zajmuje więcej czasu na wykonanie strony. zanim zrobił to mniej niż 100 ms.
co mówią dzienniki apache? – mkjasinski
avast jak w programie antywirusowym ?? crikey, co mówi ta wiadomość? – CodeMonkey
@CodeMonkey yes the anti virus. mówi "złośliwy URL został zablokowany" – varuog