apache mod_jk 针对 glassfish 集群实例的负载平衡问题

apache mod_jk 针对 glassfish 集群实例的负载平衡问题

我在 2 个集群上部署了一个 JEE ear 应用程序,每个集群上有 2 个 Glassfish v3.1 实例。它们由在同一台机器上运行的 Apache 服务器进行负载平衡。我的问题是,我经常在 mod_jk.log 文件中看到以下错误消息。您能帮我了解问题是什么吗?

[Mon Jun 13 09:37:51 2011] [7116:7852] [info] ajp_process_callback::jk_ajp_common.c (1885): Writing to client aborted or client network problems

[Mon Jun 13 09:37:51 2011] [7116:7852] [info] ajp_service::jk_ajp_common.c (2543): (viewerLocalInstance4) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)

[Mon Jun 13 09:37:51 2011] loadbalancerLocal myServer 0.062500

[Mon Jun 13 09:37:51 2011] [7116:6512] [info] ajp_process_callback::jk_ajp_common.c (1885): Writing to client aborted or client network problems

[Mon Jun 13 09:37:51 2011] [7116:6512] [info] ajp_service::jk_ajp_common.c (2543): (viewerLocalInstance4) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)

[Mon Jun 13 09:37:52 2011] [7116:3080] [info] ajp_process_callback::jk_ajp_common.c (1885): Writing to client aborted or client network problems

[Mon Jun 13 09:37:52 2011] [7116:3080] [info] ajp_service::jk_ajp_common.c (2543): (viewerLocalInstance4) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)

[Mon Jun 13 09:38:21 2011] [7116:6512] [info] service::jk_lb_worker.c (1388): service failed, worker viewerLocalInstance4 is in local error state

[Mon Jun 13 09:38:21 2011] [7116:7852] [info] service::jk_lb_worker.c (1388): service failed, worker viewerLocalInstance4 is in local error state

[Mon Jun 13 09:38:21 2011] [7116:6512] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.

[Mon Jun 13 09:38:21 2011] [7116:7852] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.

[Mon Jun 13 09:38:21 2011] loadbalancerLocal myServer 29.046875

[Mon Jun 13 09:38:21 2011] loadbalancerLocal myServer 29.171875

[Mon Jun 13 09:38:21 2011] [7116:6512] [info] jk_handler::mod_jk.c (2620): Aborting connection for worker=loadbalancerLocal

[Mon Jun 13 09:38:21 2011] [7116:7852] [info] jk_handler::mod_jk.c (2620): Aborting connection for worker=loadbalancerLocal

[Mon Jun 13 09:38:21 2011] [7116:7852] [info] ajp_process_callback::jk_ajp_common.c (1885): Writing to client aborted or client network problems

[Mon Jun 13 09:38:21 2011] [7116:7852] [info] ajp_service::jk_ajp_common.c (2543): (viewerLocalInstance4) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)

[Mon Jun 13 09:38:21 2011] loadbalancerLocal myServer 0.156250

[Mon Jun 13 09:38:21 2011] loadbalancerLocal myServer 0.062500

[Mon Jun 13 09:38:22 2011] [7116:3080] [info] service::jk_lb_worker.c (1388): service failed, worker viewerLocalInstance4 is in local error state

[Mon Jun 13 09:38:22 2011] [7116:3080] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.

答案1

这些不是错误,而是信息性消息(“info”)。如您所见这里这里或者这里,类似这样的消息

sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)

通常意味着客户端在请求期间或之后按下浏览器中的停止或后退按钮而断开连接,因此 Tomcat 无法再向客户端发送响应。

如果您没有遇到其他问题,那么就无需担心。

相关内容