docs/reference/performance-troubleshooting.md
You can use these troubleshooting tips to quickly diagnose and resolve Logstash performance problems. Advanced knowledge of pipeline internals is not required to understand this guide. However, the pipeline documentation is recommended reading if you want to go beyond these tips.
You may be tempted to jump ahead and change settings like pipeline.workers (-w) as a first attempt to improve performance. In our experience, changing this setting makes it more difficult to troubleshoot performance problems because you increase the number of variables in play. Instead, make one change at a time and measure the results. Starting at the end of this list is a sure-fire way to create a confusing situation.
Check the performance of input sources and output destinations:
Check system statistics:
CPU
top -H to see process statistics broken out by thread, as well as total CPU statistics.Memory
I/O Utilization
Monitor disk I/O to check for disk saturation.
Monitor network I/O for network saturation.
Check the JVM heap:
jmap command line utility distributed with Java or by using VisualVM. For more info, see Profiling the heap.Tune Logstash pipeline settings: