Author: mturk Date: Fri Sep 8 01:25:41 2006 New Revision: 441427 URL: http://svn.apache.org/viewvc?view=rev&rev=441427 Log: Log client caused errors separately from server related errors.
Modified: tomcat/connectors/trunk/jk/native/common/jk_shm.h tomcat/connectors/trunk/jk/native/common/jk_status.c Modified: tomcat/connectors/trunk/jk/native/common/jk_shm.h URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_shm.h?view=diff&rev=441427&r1=441426&r2=441427 ============================================================================== --- tomcat/connectors/trunk/jk/native/common/jk_shm.h (original) +++ tomcat/connectors/trunk/jk/native/common/jk_shm.h Fri Sep 8 01:25:41 2006 @@ -106,6 +106,8 @@ volatile jk_uint32_t recoveries; /* Number of recovery failures */ volatile jk_uint32_t recovery_errors; + /* Number of client errors */ + volatile jk_uint32_t client_errors; }; typedef struct jk_shm_worker jk_shm_worker_t; 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=441427&r1=441426&r2=441427 ============================================================================== --- tomcat/connectors/trunk/jk/native/common/jk_status.c (original) +++ tomcat/connectors/trunk/jk/native/common/jk_status.c Fri Sep 8 01:25:41 2006 @@ -443,7 +443,7 @@ jk_puts(s, "</tr>\n</table>\n<br/>\n"); jk_puts(s, "<table><tr>" "<th>Name</th><th>Type</th><th>jvmRoute</th><th>Host</th><th>Addr</th>" - "<th>Act</th><th>Stat</th><th>D</th><th>F</th><th>M</th><th>V</th><th>Acc</th><th>Err</th>" + "<th>Act</th><th>Stat</th><th>D</th><th>F</th><th>M</th><th>V</th><th>Acc</th><th>Err</th><th>CE</th>" "<th>Wr</th><th>Rd</th><th>Busy</th><th>Max</th><th>RR</th><th>Cd</th><th>Rs</th></tr>\n"); for (j = 0; j < lb->num_of_workers; j++) { worker_record_t *wr = &(lb->lb_workers[j]); @@ -468,6 +468,7 @@ jk_printf(s, "<td>%" JK_UINT64_T_FMT "</td>", wr->s->lb_value); jk_printf(s, "<td>%" JK_UINT64_T_FMT "</td>", wr->s->elected); jk_printf(s, "<td>%" JK_UINT32_T_FMT "</td>", wr->s->errors); + jk_printf(s, "<td>%" JK_UINT32_T_FMT "</td>", wr->s->client_errors); jk_putv(s, "<td>", status_strfsize(wr->s->transferred, buf), "</td>", NULL); jk_putv(s, "<td>", status_strfsize(wr->s->readed, buf), @@ -601,6 +602,7 @@ "<tr><th>V</th><td>Load Balancer value</td></tr>\n" "<tr><th>Acc</th><td>Number of requests</td></tr>\n" "<tr><th>Err</th><td>Number of failed requests</td></tr>\n" + "<tr><th>CE</th><td>Number of client errors</td></tr>\n" "<tr><th>Wr</th><td>Number of bytes transferred/min</td></tr>\n" "<tr><th>Rd</th><td>Number of bytes read/min</td></tr>\n" "<tr><th>Busy</th><td>Current number of busy connections</td></tr>\n" @@ -674,6 +676,7 @@ jk_printf(s, " lbvalue=\"%" JK_UINT64_T_FMT "\"", wr->s->lb_value); jk_printf(s, " elected=\"%" JK_UINT64_T_FMT "\"", wr->s->elected); jk_printf(s, " errors=\"%" JK_UINT32_T_FMT "\"", wr->s->errors); + jk_printf(s, " clienterrors=\"%" JK_UINT32_T_FMT "\"", wr->s->client_errors); jk_printf(s, " transferred=\"%" JK_UINT64_T_FMT "\"", wr->s->transferred); jk_printf(s, " readed=\"%" JK_UINT64_T_FMT "\"", wr->s->readed); jk_printf(s, " busy=\"%u\"", wr->s->busy); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]