Calltime metrics sort in JON does not work properly

Solution Unverified - Updated

Environment

  • Red Hat JBoss Operations Network (JON) 3.3
  • Web Application service resource
  • Embedded Web Application service resource
  • Application Servlet Container (Tomcat)
  • JBoss Enterprise Application Platform (EAP) 5, 6

Issue

  • Calltime metrics sort in JON does not work properly
  • In Calltime page, some values are displayed in ms and others in s. If we try to sort a column, JON sorts the values as strings which gives a wrong result.

Resolution

This is a bug and it has been captured in the This content is not included.Red Hat Bugzilla 1218129.

Currently, there is no workaround as it is not possible to change the unit of the captured metrics.

Root Cause

Sorting of the response time values in JON is done as strings. However, values are stored in ms (miliseconds) and in s (seconds) so ascending order for values:

...
4.5 s
5.0 ms
3.0 ms
4.0 ms
3.5 s
4.0 ms
...

will be shown as:

3.0 ms
3.5 s
4.0 ms
4.0 ms
4.5 s
5.0 ms
...

instead of expected:

3.0 ms
4.0 ms
4.0 ms
5.0 ms
...
3.5 s
4.5 s
...
SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.