# Lumberjack java.nio.BufferOverflowException

**URL:** https://discuss.elastic.co/t/lumberjack-java-nio-bufferoverflowexception/52337
**Category:** Logstash
**Created:** [June 9, 2016, 2:13pm UTC](https://discuss.elastic.co/t/lumberjack-java-nio-bufferoverflowexception/52337 "2016-06-09T14:13:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![YLombardi](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YLombardi](https://discuss.elastic.co/u/YLombardi)
#### Post date: [June 9, 2016, 2:13pm UTC](https://discuss.elastic.co/t/lumberjack-java-nio-bufferoverflowexception/52337/1 "2016-06-09T14:13:40Z")

</div>

Hi.

Sometime my logstash crash and I have this error in logstash.err :

> **[Exception in thread "\[main\]](https://pastebin.com/evNHP4J5)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

And this in logstash.log :

> **[logstash.log - Pastebin.com](https://pastebin.com/pryieXdF)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

It seems to be a problem of memory.  
I increased the LS\_HEAP\_SIZE to 2g but it doesn't solve the problem.

Here is my config :

> input {  
> lumberjack {  
> port =\> 5000  
> type =\> "logs"  
> ssl\_certificate =\> "/etc/logstash/mycrt.crt"  
> ssl\_key =\> "/etc/logstash/mykey.key"  
> codec =\> json {  
> charset =\> "Windows-1252"  
> }  
> }  
> lumberjack {  
> port =\> 5001  
> type =\> "logs"  
> ssl\_certificate =\> "/etc/logstash/mycrt.crt"  
> ssl\_key =\> "/etc/logstash/mykey.key"  
> codec =\> plain {  
> charset =\> "Windows-1252"  
> }  
> }  
> }  
> output {  
> if "\_grokparsefailure" in [tags] or "\_dateparsefailure" in [tags] {  
> file {  
> path =\> "/var/log/logstash/parsefailure.log"  
> }  
> }  
> elasticsearch {  
> hosts =\> ["myhost:9200"]  
> sniffing =\> true  
> manage\_template =\> false  
> index =\> "logstash-%{+YYYY.MM.dd}"  
> }  
> stdout {  
> codec =\> rubydebug  
> }  
> }

What can I do to solve this problem ?

---

<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:53am UTC](https://discuss.elastic.co/t/lumberjack-java-nio-bufferoverflowexception/52337/2 "2017-07-06T04:53:53Z")

</div>


