Hi,
I'm implementing logstash as a deployment (pod) on k8s.
I've noticed that it consumes high memory - even when no data is being send to it.
I've tried setting jvm.options (Xms4g & Xmx4g), but I got same results - high memory.
Is it normal behavior? or am I missing something?
I have one pipeline and I'm using grok filter.
Thanks!
What do you mean by that? The way Java works is that it its utilization of the heap will grow until it runs out of space, then it will run garbage collection to free up space. So if you tell it it can use up to 4 GB it will likely grow to 4 GB. If you want it to run in less memory then configure it that way.
The default Logstash usage is Xmx1g and Xms1g. If I am not mistaken, there are 2 ways to change that, either the jvm options or the Logstash config directly. (I am using Helm for example and specify the values in the deployment yaml).
As @Badger said, if you start it, with 4G, it will likely grow to that size no matter what.
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.