1

I've installed logstash in Ubuntu20 and started using systemd.No further configuration.the cpu consumption is almost 100% for all 8core.

There is a thread related to this https://discuss.elastic.co/t/logstash-thread-using-high-cpu-usage/297634 it mentions about groak patterns, but I haven't added anything so far, apart from starting it.

Ashok
  • 41
  • 8

2 Answers2

1

You might wanna read these, to begin with.

  1. https://serverfault.com/questions/698617/java-limit-the-number-of-cores-a-jvm-can-use
  2. Limiting java application's memory and cpu usage
Ankit
  • 599
  • 2
  • 11
  • 1
    I've removed the downloaded package and installed via binary the the issue resolved, not sure about the root cause though. – Ashok Nov 09 '22 at 10:29
0

I've removed the downloaded package and installed via binary the the issue resolved. The package structure is different and seems to have drastic effect on cpu. Binary is perfectly fine.

Ashok
  • 41
  • 8