We have a service for which certificate renewal happens for every half an hour. Whenever the certificate renewal happens , when the change is detected in the certificates, automatic reload happens in logstash and all the pipelines reload. During this, there is increase in container memory and the container is OOM killed. Is this a bug in logstash that memory increases when reload of pipelines happen?
Only 2 pipelines are running i.e logstash pipeline and search engine pipeline
Hi @leandrojmp , we have given 6gb of memory in kubernetes resources and jvm heap arund 4gb. During normal behaviour(without reloads ) the memory gets stabilized after sometime, but when pipeline reloads happen, the memory is gradually increasing. At some point the container gets OOM killed
Curious if you see similar behavior for those pipelines when running LS on VMs/BareMetal? My knee jerk reaction is that if there is a memory leak from pipeline reload, it has nothing to do with running LS on K8s.
The java process is taking the highest memory and this is majorly contributing to the container memory too. This memory has been gradually increasing.
When I checked the memory mapping for this java process inside the container, below is the output. The first address(highlighted) which is mapped to anon has been increasing during the pipeline reloads in logstash.
The output of pmap is huge and I just kept a small snapshot of it. But majorly the first address RSS memory has been changing(increasing) during reload.
Could you help me understand why the RSS has been increasing and never free up?
I do not think there is a memory leak in core logstash when it reloads the pipelines, but there could be a memory leak in one of the inputs or outputs. What do the configurations of your pipelines look like?
OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.
(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns )
I tried to install the opensearch output and it trashed my logstash install to the point where I had to reinstall it! So I have no way to try to reproduce this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.