Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-8029

Place a bound on the data read in MessageServletSupport

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.15.14, 5.16.1, 5.17.0
    • Transport
    • None

    Description

      This task is to place a bound on the amount of data read in MessageServletSupport, as otherwise BufferedReader.readLine() will block until all data is read, potentially leading to a java.lang.OutOfMemoryError: Java heap space error.

       

      I introduced a dependency on commons-io's BoundedInputStream for this, with a default (configurable) bound of 100000 bytes.

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              coheigea Colm O hEigeartaigh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m