Apache + Tomcat con mod_jk - si blocca siti web
Domanda
Ho un sito web con Apache 1.3 (SSL abilitato) + mod_jk + Tomcat 5.5 sulla messa a punto redhad Linux. Proprio di recente ho iniziato ad avere un problema i tempi di inattività con il mio sito web. Una volta al giorno, ottengo il mio sito web appendere sulla porta 80. Ma se accedo direttamente attraverso 8080 Tomcat risposte e il sito web funziona bene. Entrambi i 80 e 8080 porte sono accessibili ma apache e tomcat connessione con mod_jk è rotto. Solo dopo che ho riavviare Tomcat, le cose tornare alla normalità.
Ho appena configurato apache mod_jk per registrare gli errori, così vedrò se ci sarà alcun errore al successivo blocco.
apache mod_js conf:
JkShmSize 1000M
apache lavoratori conf:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=127.0.0.1
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.socket_keepalive=1
worker.worker1.recycle_timeout=180
worker.worker1.sticky_session=False
ho controllato errore dell'applicazione web / avvertire accede Tomcat, ho qualche "fuori della memoria" eccezioni java. Può errori di applicazione causare questo problema? Può essere il sito problema di sovraccarico o perdita di memoria? Attualmente dev/mapper/VolGroup00-LogVol00
ha spazio libero solo il 4%. Può essere una causa per il problema?
Ho anche avuto questa voce di registro, è matchs il time server blocco:
/ var / log / messages: possibili inondazioni SYN sulla porta 8009 cookie Invio
Aggiornamento: Ho appena ricevuto un altro verso il basso, il registro mod_jk dà questo:
[Sun Nov 14 00:57:03 2010] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is$
[Sun Nov 14 00:57:03 2010] [error] ajp_get_reply::jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet)
[Sun Nov 14 00:57:08 2010] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is$
[Sun Nov 14 00:57:08 2010] [error] ajp_get_reply::jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet)
[Sun Nov 14 00:57:12 2010] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is$
[Sun Nov 14 00:57:12 2010] [error] ajp_get_reply::jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet)
[Sun Nov 14 00:57:12 2010] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. w$
[Sun Nov 14 00:57:12 2010] worker1 mydomain.com 50.999342
Sembra il mio sito è giù sul 8009 porta. AJP connettore 1.3 serve apache mod_jk il 8009 porta.
Qualsiasi aiuto o consiglio sarebbe molto apprezzato.
Grazie.
Soluzione
Hai bisogno di più dati.
1) impostare il href="http://httpd.apache.org/docs/2.0/mod/mod_status.html" rel="nofollow"> gestore
2) installazione di il lavoratore lo status di mod_jk . Con questo sarete quindi in grado di vedere chiaramente se questo è un apache al problema di comunicazione Tomcat.
3) quando si blocca di nuovo Tomcat fanno una discarica filo per vedere dove l'elaborazione Java è attualmente a. Forse è in attesa di qualcosa.
Modifica : Nel caso in cui si tratta di un problema di apache al problema Tomcat ([2])
hanno uno sguardo al http://community.jboss.org/wiki/OptimalModjk12Configuration