# Logstash crashed with IdentityMapUpperLimitException

**URL:** <https://discuss.elastic.co/t/logstash-crashed-with-identitymapupperlimitexception/52394>\
**Category:** Logstash\
**Created:** [June 10, 2016, 1:19am UTC](https://discuss.elastic.co/t/logstash-crashed-with-identitymapupperlimitexception/52394 "2016-06-10T01:19:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baneshbanna](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@baneshbanna](https://discuss.elastic.co/u/baneshbanna)\
**Post date:** [June 10, 2016, 1:19am UTC](https://discuss.elastic.co/t/logstash-crashed-with-identitymapupperlimitexception/52394/1 "2016-06-10T01:19:12Z")

</div>

Logstash crashed with the following error.

LogStash::Codecs::IdentityMapCodec::IdentityMapUpperLimitException: LogStash::Codecs::IdentityMapCodec::IdentityMapUpperLimitException  
visit at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:37  
check\_map\_limits at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:327  
record\_codec\_usage at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:306  
stream\_codec at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:297  
accept at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:179  
accept at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb:250  
observe\_read\_file at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:79  
each at org/jruby/RubyArray.java:1613  
observe\_read\_file at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:78  
loop at org/jruby/RubyKernel.java:1479  
observe\_read\_file at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:74  
subscribe at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:39  
each at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:187  
each at org/jruby/RubyArray.java:1613  
each at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:176  
each at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:120  
call at org/jruby/RubyProc.java:281  
synchronized at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:357  
synchronize at org/jruby/ext/thread/Mutex.java:149  
synchronized at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:357  
each at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:118  
subscribe at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:280  
subscribe at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:23  
subscribe at /opt/logstash/vendor/jruby/lib/ruby/1.9/forwardable.rb:201  
run at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb:294  
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/pipeline.rb:342  
start\_input at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/pipeline.rb:336

{:timestamp=\>"2016-06-09T20:06:31.928000+0100", :message=\>"IdentityMapCodec has reached 80% capacity", :current\_size=\>19993, :upper\_limit=\>20000, :level=\>:warn}

Please suggest

---

<div class="post-metadata">

**Author:** ![nabbaraju](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nabbaraju](https://discuss.elastic.co/u/nabbaraju)\
**Post date:** [August 4, 2016, 2:42pm UTC](https://discuss.elastic.co/t/logstash-crashed-with-identitymapupperlimitexception/52394/2 "2016-08-04T14:42:52Z")

</div>

I have the same issue too:  
IdentityMapCodec has reached 100% capacity {:current\_size=\>20000, :upper\_limit=\>20000, :level=\>:error}  
LogStash::Codecs::IdentityMapCodec::IdentityMapUpperLimitException: LogStash::Codecs::IdentityMapCodec::IdentityMapUpperLimitException  
visit at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:37  
check\_map\_limits at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:325  
record\_codec\_usage at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:304  
stream\_codec at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:295  
accept at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-codec-multiline-2.0.11/lib/logstash/codecs/identity\_map\_codec.rb:177  
accept at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb:250  
observe\_read\_file at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:79  
each at org/jruby/RubyArray.java:1613  
observe\_read\_file at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:78  
loop at org/jruby/RubyKernel.java:1479  
observe\_read\_file at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:74  
subscribe at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:39  
each at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:187  
each at org/jruby/RubyArray.java:1613  
each at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:176  
each at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:120  
call at org/jruby/RubyProc.java:281  
synchronized at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:357  
synchronize at org/jruby/ext/thread/Mutex.java:149  
synchronized at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:357  
each at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:118  
subscribe at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb:280  
subscribe at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/observing\_tail.rb:23  
subscribe at /app/oracle/logstash-2.3.3/vendor/jruby/lib/ruby/1.9/forwardable.rb:201  
run at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb:294  
inputworker at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:342  
start\_input at /app/oracle/logstash-2.3.3/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:336

---

<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:44am UTC](https://discuss.elastic.co/t/logstash-crashed-with-identitymapupperlimitexception/52394/3 "2017-07-06T04:44:51Z")

</div>


