I wanted to get an idication of the ingest speed of logstash and found that the (buildin) plugin logstash-filter-metrics could do this.
After adding the example code to my config file, logstash starts printing a rate of 20000+ and consuming 100% CPU
I tried with just the example code, but this has the same behaviour. It starts using 100% CPU (on all 4 CPUs)
Is this expected behaviour? Am I missing something?
I did not change any config except setting JAVA_HOME to C:\Program Files\Java\jre1.8.0_121
I am running this on Windows Server 2016 (4 CPU, 4GB mem) :
Could not find log4j2 configuration at path /ELK/logstash/config/log4j2.properties. Using default config which logs to console
jruby 1.7.25 (1.9.3p551) 2016-04-13 867cb81 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_121-b13 +jit [Windows NT (unknown)-amd64]
java 1.8.0_121 (Oracle Corporation)
jvm Java HotSpot(TM) 64-Bit Server VM / 25.121-b13