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

OutOfMemoryError in LogStash #79

Closed
mmguero opened this issue Feb 17, 2022 · 0 comments
Closed

OutOfMemoryError in LogStash #79

mmguero opened this issue Feb 17, 2022 · 0 comments
Assignees
Labels
bug Something isn't working logstash Relating to Malcolm's use of Logstash performance Related to speed/performance

Comments

@mmguero
Copy link
Collaborator

mmguero commented Feb 17, 2022

lately I've seen some of these depending on the worklaod:

logstash_1           | warning: thread "[malcolm-output]>worker4" terminated with exception (report_on_exception is true):warning: thread "[malcolm-output]>worker0" terminated with exception (report_on_exception is true):
logstash_1           | java.lang.OutOfMemoryError: Java heap space
...

I think that as the size of the events has grown larger (due to adding more normalized fields such as ECS) we need to make adjustments to some logstash runtime parameters:

pipeline.workers, pipeline.batch.size and pipeline.batch.delay - these settings are used to tune the performance and resource utilization of the the logstash container; see Tuning and Profiling Logstash Performance, logstash.yml and Multiple Pipelines

I've added code into install.py to reduce the number of default pipeline workers. I think probably the big one is we need to reduce pipeline.batch.size so that we don't need quite as much memory available to hold a batch in memory. I'm going to try reducing it from 125 (default) to 75. These will be configurable in the docker-compose.yml files.

@mmguero mmguero added bug Something isn't working logstash Relating to Malcolm's use of Logstash performance Related to speed/performance labels Feb 17, 2022
@mmguero mmguero self-assigned this Feb 17, 2022
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Feb 17, 2022
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Feb 17, 2022
mmguero added a commit to cisagov/Malcolm that referenced this issue Feb 24, 2022
mmguero added a commit to cisagov/Malcolm that referenced this issue Feb 24, 2022
@mmguero mmguero closed this as completed Feb 24, 2022
This was referenced Feb 24, 2022
@mmguero mmguero added this to Malcolm Oct 14, 2024
@mmguero mmguero moved this to Released in Malcolm Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working logstash Relating to Malcolm's use of Logstash performance Related to speed/performance
Projects
Status: Released
Development

No branches or pull requests

1 participant