Bug 61476

Summary: Allow reset of an individual worker stat value
Product: Tomcat Connectors Reporter: Christopher Schultz <chris>
Component: mod_jkAssignee: Tomcat Developers Mailing List <dev>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Christopher Schultz 2017-09-01 15:01:21 UTC
mod_jk stats worker allows authorized users to "reset" the statistics for a particular worker. For example, errors=0, sessions=0, requests=0, etc. All stats are reset to their initial values (usually 0).

It would be nice to be able to reset a specific value and not the others. For example, reset errors=0 but leave request/session counts, byte counters, etc. all at their current values.

The current URL for resetting worker stats is:

/jk-status?cmd=reset&w=[worker]&sw=[subworker]

I suggest adding another optional parameter "s" (for "stat") whose value can be any of:

  Acc
  Sess
  Err
  CE
  RE
  Wr
  Rd
  MaxBusy
  MaxCon
  Rs (?)
  LR (?)
  LE

...or a comma-separated list of any of those values. (These values match the shorthand names for the various mod_jk worker stats). Alternatively, multiple "s" parameters could be processed instead of a single comma-separated list of stats.