Bug 61476 - Allow reset of an individual worker stat value
Summary: Allow reset of an individual worker stat value
Status: NEW
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: mod_jk (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-01 15:01 UTC by Christopher Schultz
Modified: 2019-06-16 14:20 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.