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

Unbounded nature of writeRequestQueue can cause OutOfMemoryException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 2.0.0-M1
    • Filter
    • None

    Description

      As referenced in the following JIRAs:

      DIRMINA-206 Prevent OutOfMemoryError when a server or a client is overloaded
      DIRMINA-144 Traffic shaping filter
      DIRMINA-262 Controlling rate of writes in Mina 0.8.2

      Raised to hightlight the problem. There are a number of approaches that have been mentioned and could be used as an approach.

      Limiting the queue to number of requests or total size.

      Then either blocking on a write or throwing an exception.

      Attachments

        Issue Links

          Activity

            People

              trustin Trustin Lee
              ritchiem Martin Ritchie
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: