logtail / logback-logtail

Better Stack Java Logback appender
https://betterstack.com/logs
MIT License
17 stars 4 forks source link

L-849 Add maxQueueSize parameter (default 100k) to avoid memory overflow on network issues #17

Closed PetrHeinz closed 8 months ago

PetrHeinz commented 8 months ago

When app runs into network issues and is logging heavily, the Vector<ILoggingEvent> batch property can increase in size without any bounds.

This PR adds configurable maxQueueSize parameter (100k by default) that helps mitigate the issue.

Tested via changing ingestUrl option to https://google.com:81 (the URL will timeout due to firewall blocking the port) and logging in an infinite loop.