Explosive growth in Elasticsearch log
Posted: Mon Aug 15, 2016 5:38 pm
Hello,
Lately the Elasticsearch log has been growing at a rate of up to 4GB/hr (sounds like the other post about the logstash log).
It will log at a "normal" pace (which is still quite wordy) for a while, then suddenly start logging millions of exceptions per hour. This happens once or twice a day. When it does, I stop Elasticsearch and Logstash, delete the file, and restart. Then it functions normally for a time.
Many of the errors are like this:
java.io.IOException: Too many open files
This seems odd, because on some advice found while Googling I set the nofiles limit high for the nagios user in /etc/security/limits.conf:
Are these limits not adequate? NLS has worked fine for ~1.5 years without specifying any limits, so I'm not sure if it's even necessary.
Here's a sample of the logs, just grepping on Exception so it's not too verbose:
After this happened a couple times on NLS 1.4.1, I upgraded to 1.4.2. I'm having a host of problems with the web interface now, but I'll save that for another post if this doesn't seem to be related.
Lately the Elasticsearch log has been growing at a rate of up to 4GB/hr (sounds like the other post about the logstash log).
It will log at a "normal" pace (which is still quite wordy) for a while, then suddenly start logging millions of exceptions per hour. This happens once or twice a day. When it does, I stop Elasticsearch and Logstash, delete the file, and restart. Then it functions normally for a time.
Many of the errors are like this:
java.io.IOException: Too many open files
This seems odd, because on some advice found while Googling I set the nofiles limit high for the nagios user in /etc/security/limits.conf:
Code: Select all
nagios hard nofile 65536
nagios soft nofile 65536
Here's a sample of the logs, just grepping on Exception so it's not too verbose:
Code: Select all
java.io.IOException: Too many open files
java.io.IOException: Too many open files
org.elasticsearch.index.shard.IndexShardCreationException: [admin.cgi][3] failed to create shard
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/admin.cgi/3/index' exists and is a directory, but cannot be listed: list() returned nulld
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/admin.cgi/2/index' exists and is a directory, but cannot be listed: list() returned nullices: Too many open filesfs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
org.elasticsearch.index.shard.IndexShardCreationException: [administrator.cgi][3] failed to create shard
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/administrator.cgi/3/index' exists and is a directory, but cannot be listed: list() returned null
org.elasticsearch.index.shard.IndexShardCreationException: [administrator.cgi][2] failed to create shard
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/administrator.cgi/2/index' exists and is a directory, but cannot be listed: list() returned null
java.nio.file.FileSystemException: /data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices: Too many open files
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
org.elasticsearch.index.shard.IndexShardCreationException: [admin.cgi][2] failed to create shard
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/admin.cgi/2/index' exists and is a directory, but cannot be listed: list() returned null
org.elasticsearch.index.shard.IndexShardCreationException: [admin.cgi][3] failed to create shard
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/admin.cgi/3/index' exists and is a directory, but cannot be listed: list() returned null
java.nio.file.FileSystemException: /data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices: Too many open files
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
org.elasticsearch.index.shard.IndexShardCreationException: [administrator.cgi][1] failed to create shard
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/administrator.cgi/1/index' exists and is a directory, but cannot be listed: list() returned null
org.elasticsearch.index.shard.IndexShardCreationException: [admin.cgi][1] failed to create shard
Caused by: java.io.IOException: directory '/data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices/admin.cgi/1/index' exists and is a directory, but cannot be listed: list() returned null
java.nio.file.FileSystemException: /data1/data/76900ee2-f769-413c-9948-850204a96b32/nodes/0/indices: Too many open files
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files
java.io.IOException: Too many open files