Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce memory allocations by writing directly into the output stream (#461) #472

Merged
merged 7 commits into from
Jul 5, 2021

Commits on Jan 9, 2021

  1. Reduce GC pressure by writing directly into the outpustream instead o…

    …f returning a byte array
    
    Introduce a new (internal) StreamingEncoder interface to be implemented by Encoders that supports writing directly into the output stream instead of returning their results as a byte array.
    
    Update both the AbstractLogstashTcpSocketAppender and the CompositeJsonEncoder to support this new interface. This should hoppefully reduce the amount of short-lived byte arrays created for each log event.
    
    See logfellow#461 for more information.
    brenuart committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    5b3d0c5 View commit details
    Browse the repository at this point in the history
  2. Make use of reusable thread-bound buffers instead of allocating a new…

    … ByteArrayOutputStream for every log event
    brenuart committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    abadd8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    774d0d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2021

  1. Configuration menu
    Copy the full SHA
    7b12814 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d0ca2ff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d8ad26 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    513da38 View commit details
    Browse the repository at this point in the history