Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-299

innacurate JMX statistics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.0.2
    • Core
    • None
    • Fedora Core 5, Eclipse 3.2 using Java 1.4 compiler settings.

    Description

      The class org.apache.mina.integration.jmx.IoServiceManager computes the bytes read/written using the service's managed sessions using the method IoService.getManagedSessions(). This method returns a java.util.Set object, which only contains the sessions currently active.
      The IoServiceManager class uses org.apache.mina.management.StatCollector class to assist with tracking data throughput. The StatCollector class only operates on active sessions.
      The problem is that the values returned from the managed bean interface is computed only on the currently active sessions. Based on the names of the methods, the values returned should be running totals, to include sessions that are no longer active.

      Attachments

        1. JmxTestMain.java
          2 kB
          Mark Webb
        2. jmx.diff
          10 kB
          Mark Webb
        3. HttpProtocolHandler.java
          4 kB
          Mark Webb

        Activity

          People

            vrm Julien Vermillard
            elihusmails Mark Webb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: