Since switching to commons-dbcp2 now seems to start OK (so far) which prior would have definitely hung. Fingers crossed.
>You get complaints about the APR library not being > installed? Yeah, just comment-out the > APRLifecycleListener in conf/server.xml. So using the native connector won't improve the performance? I use https but through Apache. The docs say: These features allows making Tomcat a general purpose webserver, will enable much better integration with other native web technologies, and overall make Java much more viable as a full fledged webserver platform rather than simply a backend focused technology. So this does not apply when using mod_jk? It would save having to keep compiling the tomcat-native also. Cheers Greg On 19 December 2016 at 18:11, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Greg, > > On 12/19/16 4:47 AM, Greg Huber wrote: > > I am currently running tomcat 8.0.32 and have tried to upgrade to > > 8.5.8 and 8.5.9 without success. I use mod_jk to connect apache to > > tomcat running on centos 5.11 with Apache 2.2.3. > > > > I have installed openSSL 1.0.2.j to compile the native > > tomcat-native-1.2.10 using apr-1.5.2 and tomcat-connectors-1.2.42 > > for the mod_jk. > > If you are using httpd + mod_jk, why are you bothering with APR and > tcnative on the Tomcat side? > > > The problem is that tomcat seems to start but fails sometimes to > > connect correctly to apache and causes apache to hang. If I stop > > tomcat, apache starts working again. I have been through the logs > > with little indication of the problem. If I revet back to 8.0.32 > > everything works OK. > > What if you use the NIO connector instead of APR? > > > All I can find is this in the mod_jk.log: > > > > > > [Sat Dec 17 06:11:48 2016][3212:47280261211024] [info] > > init_jk::mod_jk.c (3595): mod_jk/1.2.42 initialized [Sat Dec 17 > > 06:11:50 2016][3254:47280261211024] [info] > > jk_open_socket::jk_connect.c (817): connect to 127.0.0.1:8009 > > failed (errno=111) [Sat Dec 17 06:11:50 2016][3254:47280261211024] > > [info] ajp_connect_to_endpoint::jk_ajp_common.c (1068): (worker1) > > Failed opening socket to (127.0.0.1:8009) (errno=111) [Sat Dec 17 > > 06:11:50 2016][3254:47280261211024] [error] > > ajp_send_request::jk_ajp_common.c (1728): (worker1) connecting to > > backend failed. Tomcat is probably not started or is listening on > > the wrong port (errno=111) [Sat Dec 17 06:11:50 > > 2016][3254:47280261211024] [info] ajp_service::jk_ajp_common.c > > (2778): (worker1) sending request to tomcat failed (recoverable), > > because of error during request sending (attempt=1) [Sat Dec 17 > > 06:11:50 2016][3254:47280261211024] [info] > > jk_open_socket::jk_connect.c (817): connect to 127.0.0.1:8009 > > failed (errno=111) [Sat Dec 17 06:11:50 2016][3254:47280261211024] > > [info] ajp_connect_to_endpoint::jk_ajp_common.c (1068): (worker1) > > Failed opening socket to (127.0.0.1:8009) (errno=111) [Sat Dec 17 > > 06:11:50 2016][3254:47280261211024] [error] > > ajp_send_request::jk_ajp_common.c (1728): (worker1) connecting to > > backend failed. Tomcat is probably not started or is listening on > > the wrong port (errno=111) [Sat Dec 17 06:11:50 > > 2016][3254:47280261211024] [info] ajp_service::jk_ajp_common.c > > (2778): (worker1) sending request to tomcat failed (recoverable), > > because of error during request sending (attempt=2) [Sat Dec 17 > > 06:11:50 2016][3254:47280261211024] [error] > > ajp_service::jk_ajp_common.c (2799): (worker1) connecting to tomcat > > failed (rc=-3, errors=1, client_errors=0). [Sat Dec 17 06:11:50 > > 2016][3254:47280261211024] [info] jk_handler::mod_jk.c (2995): > > Service error=-3 for worker=worker1 > > > > Any ideas on what I should check? > > Can you post your <Connector> configuration? > > Any errors in the log files (specifically logs/catalina.out or, if you > are using jsvc or Windows services, stdout.log/stderr.log/etc.)? > > - -chris > -----BEGIN PGP SIGNATURE----- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJYWCLGAAoJEBzwKT+lPKRYzqcP/R34lxIW90ZPn7SQ5SBsbKN8 > rvYD+4k7a3EGEnPUhfJaajOMbpTXdPTHyltHOID9CpRRFIGrb+/kcKmaLbllYIqq > NUDvWSDUHK0yELaSjb7+Y980mygqXV3j8wAardcEnZ/wG143ZZozhpQtKjhpLmsb > XMe0HiC9/4TeqCtyZ5IWRdq/UOotnU0m1QMjgGYQPztGwQlfvNYDZ//8apiYkCKY > qUoblyNM1RiH4H6tiX+7ZEfk3exvArw84adcWULYiQNpHMwvsRlfMi1aq8Xcty5+ > xhB4SitKoEB6CY/oLwRjWYAUsQIov2trGoqbhxIiQcNpHxoKslLabvzdjmjMPMj0 > kbMiGpOFfK4ULqyk1255HNxrGL97lnA2nfIz4q23XUU4AYjQkvWHVe94zbUGzdHM > 6WZWLn8aZcugC5ltENAp7bCuye2KzpbA4BRbaoGBgiGRQaGSx+0poTubLODSNRFl > cJv+KyoCS+NX4Lz0gK3sIhHr7xRQno5tYmUKNjIn3/v3Rt5zhjfXCvoElQ+MIlEW > iQfkO6AMw+uWlNnd6Iuya9do4bYs/7oN4NiySy6yuz9v96JC6qjZvOtfj4nViNnm > bTRNDreU8IyBR0/vkgKTNTF7KfebJ6ccxRUuFeqqK3rUikBVDW1SsKGskuQK+Htr > I3y6BDq4qz2VjDdPTXL0 > =XGBI > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >