You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2006/11/26 21:37:32 UTC
svn commit: r479424 - /tomcat/connectors/trunk/jk/native/common/jk_status.c
Author: mturk
Date: Sun Nov 26 12:37:32 2006
New Revision: 479424
URL: http://svn.apache.org/viewvc?view=rev&rev=479424
Log:
Add members size for balancer and non lb workers count.
Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?view=diff&rev=479424&r1=479423&r2=479424
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Sun Nov 26 12:37:32 2006
@@ -1065,7 +1065,8 @@
jk_printf(s, " degraded=%d", degraded);
jk_printf(s, " bad=%d", bad);
jk_printf(s, " busy=%d", lb->s->busy);
- jk_printf(s, " max_busy=%d\n", lb->s->max_busy);
+ jk_printf(s, " max_busy=%d", lb->s->max_busy);
+ jk_printf(s, " members=%d\n", lb->num_of_workers);
for (j = 0; j < lb->num_of_workers; j++) {
worker_record_t *wr = &(lb->lb_workers[j]);
@@ -1888,7 +1889,8 @@
jk_logger_t *l)
{
unsigned int i;
- int has_lb = 0;
+ int lb_cnt = 0;
+ int ajp_cnt = 0;
jk_worker_t *w = NULL;
JK_TRACE_ENTER(l);
@@ -1901,11 +1903,15 @@
continue;
}
if (w->type == JK_LB_WORKER_TYPE) {
- has_lb++;
+ lb_cnt++;
+ }
+ else if (w->type == JK_AJP13_WORKER_TYPE ||
+ w->type == JK_AJP14_WORKER_TYPE) {
+ ajp_cnt++;
}
}
- if (has_lb)
- jk_printf(s, "Balancers: size=%d\n", has_lb);
+ if (lb_cnt)
+ jk_printf(s, "Balancers: size=%d\n", lb_cnt);
for (i = 0; i < sw->we->num_of_workers; i++) {
w = wc_get_worker_for_name(sw->we->worker_list[i], l);
@@ -1919,6 +1925,8 @@
display_worker_txt(s, w, 0, l);
}
}
+ if (ajp_cnt)
+ jk_printf(s, "Workers: size=%d\n", ajp_cnt);
for (i = 0; i < sw->we->num_of_workers; i++) {
w = wc_get_worker_for_name(sw->we->worker_list[i], l);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org