Logstash Too small initial heap

I did try with this option as well. But still no hopes.

Alternatively I created m4.xlarge instance in AWS(4 cpus and 16gb memory) and installed Logstash there. But even there I get same error.