: while running tests - i noticed that of the 6 JMX M-Beans
: (avgRequestsPerSecond, avgTimePerRequest, errors, requests, timeouts,
: totalTime) ...
: 
: the avgTimePerRequest M-Bean was producing "NaN" when there was no search
: activity.
: 
: all of the other M-Beans displayed a 0 (zero) when there was no search
: activity.
        ...
: is this just a WAD (works as a designed) ?

I believe it is ... avgTimePerRequest is simply the total amount of time 
spent processing requests divided by the total number of requests -- in 
your case "0/0" which is NaN.

All of the other metrics you mentioned are 0 when no requests have been 
processed because nothing about them results in division by zero.  (well, 
tehnically avgRequestsPerSecond could result in division by zero if you 
queried it at the exact millisecond that the handler was created, but 
that's not likely to ever happen).



-Hoss

Reply via email to