I've got an issue since upgrading to v6 where the logstash process will use 100% of a CPU core even though it is idle with no events being processed. I've checked through the JVM heap and whilst I'd like it to have more ram it seems ok and changing it hasn't had any effect anyway.
I've tried the hot_threads part of the monitoring API and it does indeed show a thread using high CPU but I'm at a loss as to how to proceed to narrow this down any further?
I've added the hot thread output below in case it means more to someone else?
::: {}
Hot threads at 2017-12-17T21:09:10+00:00, busiestThreads=3:
================================================================================
93.01 % of cpu usage, state: runnable, thread name: 'Ruby-0-Thread-1', thread id: 17
/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:22
java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
java.io.File.isFile(File.java:882)
--------------------------------------------------------------------------------
3.39 % of cpu usage, state: timed_waiting, thread name: 'Ruby-0-Thread-40@[main]>worker1', thread id: 66
/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:392
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
--------------------------------------------------------------------------------
3.38 % of cpu usage, state: timed_waiting, thread name: 'Ruby-0-Thread-39@[main]>worker0', thread id: 65
/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:392
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
--------------------------------------------------------------------------------