Logstash Consuming high CPU

Have you profiled your Java Heap ? My CPU went down after I applied the right heap size.

Xms represents the initial size of total heap space

Xmx represents the maximum size of total heap space

#-Xms256m
-Xms3g
-Xmx3g