# File plugin: too many files error

**URL:** <https://discuss.elastic.co/t/file-plugin-too-many-files-error/54893>\
**Category:** Logstash\
**Created:** [July 7, 2016, 3:56am UTC](https://discuss.elastic.co/t/file-plugin-too-many-files-error/54893 "2016-07-07T03:56:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![changxy](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@changxy](https://discuss.elastic.co/u/changxy)\
**Post date:** [July 7, 2016, 3:56am UTC](https://discuss.elastic.co/t/file-plugin-too-many-files-error/54893/1 "2016-07-07T03:56:05Z")

</div>

IdentityMapCodec has reached 80% capacity {:current\_size=\>16427, :upper\_limit=\>20000, :level=\>:warn}

how to fix it?

$ ulimit -a  
core file size (blocks, -c) 0  
data seg size (kbytes, -d) unlimited  
scheduling priority (-e) 0  
file size (blocks, -f) unlimited  
pending signals (-i) 63474  
max locked memory (kbytes, -l) 65535  
max memory size (kbytes, -m) unlimited  
open files (-n) 655350  
pipe size (512 bytes, -p) 8  
POSIX message queues (bytes, -q) 819200  
real-time priority (-r) 0  
stack size (kbytes, -s) 8192  
cpu time (seconds, -t) unlimited  
max user processes (-u) 4096  
virtual memory (kbytes, -v) unlimited  
file locks (-x) unlimited

version logstash-2.3.2

config like this:  
input {  
file {  
path =\> ["/test/bak/_/_.json"]  
sincedb\_path =\> "/dev/null"  
start\_position =\> "beginning"  
stat\_interval =\> 300  
discover\_interval =\> 1  
ignore\_older =\> 864000  
close\_older =\> 20  
max\_open\_files =\> 102400  
codec =\> "json"  
}  
}  
filter{}  
output {  
elasticsearch {}  
}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 7, 2016, 10:59pm UTC](https://discuss.elastic.co/t/file-plugin-too-many-files-error/54893/2 "2016-07-07T22:59:37Z")

</div>

What does your config look like?  
What version are you on?

Please provide more information.

---

<div class="post-metadata">

**Author:** ![changxy](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@changxy](https://discuss.elastic.co/u/changxy)\
**Post date:** [July 8, 2016, 1:14am UTC](https://discuss.elastic.co/t/file-plugin-too-many-files-error/54893/3 "2016-07-08T01:14:52Z")

</div>

version logstash-2.3.2

config like this:  
input {  
file {  
path =\> ["/test/bak/_/_.json"]  
sincedb\_path =\> "/dev/null"  
start\_position =\> "beginning"  
stat\_interval =\> 300  
discover\_interval =\> 1  
ignore\_older =\> 864000  
close\_older =\> 20  
max\_open\_files =\> 102400  
codec =\> "json"  
}  
}  
filter{}  
output {  
elasticsearch {}  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:49am UTC](https://discuss.elastic.co/t/file-plugin-too-many-files-error/54893/4 "2017-07-06T04:49:02Z")

</div>


