How to calculate optimal heapsize for Logstash?

My logstash keeps breaking down due to JAVA heap memory error. The heap allocated is not sufficient to keep logstash working. Please let me know if there is some method to calculate optimal heap that needs to be allocated ?

Thanks.

No, there is not. If your get OOM errors or are seeing excessive garbage collection pauses then you need to allocate more heap, if you do not, then you have enough heap.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.