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

CumulativeProtocolDecoder doDecode performance problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.0.0-M5
    • None
    • Filter
    • None
    • JDK 1.6.0_12 32-bit, Windows Vista 64-bit, MINA 2.0.0-RC1 (up to current date trunk).

    Description

      To reproduce get the mina_test_2.0.zip from DIRMINA-609.

      It seems to be working even worse with the current trunk version, it takes ~5 seconds between messages and then times out after the first message, if wait is increased to 10 seconds, it times out after the second message:

      time = 03:49:36.320
      remaining = 1024
      limit = 1024
      capacity = 2048
      time = 03:49:41.619
      remaining = 2048
      limit = 2048
      capacity = 2097156

      java.lang.AssertionError: No message received

      The issue differs from DIRMINA-609 as it affects not only large messages, but any message that doesn't fit into buffer (when doDecode returns false) and also all the subsequent messages (when doDecode returns true).
      It's a serious issue making CumulativeProtocolDecoder completely useless.

      Attachments

        1. tdump.txt
          8 kB
          Serge Baranov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              crazycoder Serge Baranov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: