Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18494

camel-mllp - Allow the ability to set MIN_BUFFER_SIZE for SocketBuffer

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.2
    • 3.18.3, 3.19.0
    • camel-mllp
    • None
    • Test environment: current environment is Camel / Quarkus

    • Unknown

    Description

      When payloads are known to be always larger that the hardcoded MIN_BUFFER_SIZE of 2048, this results in the resizing of the buffer.

      https://github.com/apache/camel/blob/c4b5791237bbf27af7b54bbd0d14b7c6944dff1f/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/internal/MllpSocketBuffer.java#L39

      There is also the belief that when a gc event occurs, the buffer then returns to the default size of MIN_BUFFER_SIZE, which again results in another resizing of the buffer when larger than MIN_BUFFER_SIZE payloads arrive.

      It is the hope that allowing for a customized MIN_BUFFER_SIZE would result in an overall faster sustained throughput when the payload size is known to be larger than MIN_BUFFER_SIZE (2048).

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              joebutler Joseph
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: