Logstash Consuming too Much JVM


My Logstash is Consuming too much JVM due to it Logstash is getting shut down and not receiving any data.
I have 4 Pipelines running in my Logstash and
Can Some one suggest me What all steps to followed for tunning it

Thanks in Advance