Version 5.2.2, OS Centos 7, default config file
logstash-plugin install is really slow, so I ran strace -o install-test -ff /usr/share/logstash/bin/logstash-plugin install logstash-filter-elasticsearch logstash-filter-translate
to try and find out why, in doing so, I found a thread which produces thousands of ENOENT (No such file or directory)
errors (8836 to be precise). Most of these are searching /usr/share/logstash/vendor
for .jar
and .class
files. The majority of these are only done once but some are done twice and an even smaller subset are done more than that:
output of sort ENOENT.txt | uniq -cd | awk '$1>2'
11 lstat("/root/file:", 0x7f3807e7df50) = -1 ENOENT (No such file or directory)
108 lstat("/root/file:", 0x7f3807e7e910) = -1 ENOENT (No such file or directory)
44 lstat("/root/file:", 0x7f3807e7f1f0) = -1 ENOENT (No such file or directory)
12 lstat("/root/file:", 0x7f3807e7f510) = -1 ENOENT (No such file or directory)
11 lstat("/root/file:", 0x7f3807e7f850) = -1 ENOENT (No such file or directory)
146 lstat("/root/file:", 0x7f3807e7f8d0) = -1 ENOENT (No such file or directory)
24 lstat("/root/file:", 0x7f3807e7f960) = -1 ENOENT (No such file or directory)
10 lstat("/root/file:", 0x7f3807e7fad0) = -1 ENOENT (No such file or directory)
10 lstat("/root/file:", 0x7f3807e7fff0) = -1 ENOENT (No such file or directory)
20 lstat("/root/file:", 0x7f3807e80300) = -1 ENOENT (No such file or directory)
This isn't the cause of the slowness I was experiencing but is worth reporting anyway