# Logstashの「LEAK: ByteBuf」に関するエラーについて

**URL:** <https://discuss.elastic.co/t/logstash-leak-bytebuf/256045>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [November 19, 2020, 10:14pm UTC](https://discuss.elastic.co/t/logstash-leak-bytebuf/256045 "2020-11-19T22:14:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ueba-dev-i](https://avatars.discourse-cdn.com/v4/letter/u/6bbea6/32.png) [@ueba-dev-i](https://discuss.elastic.co/u/ueba-dev-i)\
**Post date:** [November 19, 2020, 10:14pm UTC](https://discuss.elastic.co/t/logstash-leak-bytebuf/256045/1 "2020-11-19T22:14:41Z")

</div>

Logstashにおいて、高負荷な状態が継続し、以下アラートが発出致しました。

> ```
> [ERROR][io.netty.util.ResourceLeakDetector] LEAK: ByteBuf.release() was not called before it's garbage-collected. See http://netty.io/wiki/reference-counted-objects.html for more information.
> Recent access records: 
> Created at:
> io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:331)
> io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:185)
> io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:171)
> io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:105)
> org.logstash.beats.V2Batch.<init>(V2Batch.java:12)
> org.logstash.beats.BeatsParser.decode(BeatsParser.java:60)
> io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502)
> io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441)
> io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278)
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38)
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:353)
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> java.lang.Thread.run(Thread.java:748)
> 
> ```

その後も高負荷の状態が継続したことから、Logstashに異常が発生しているものと推察しております。  
Logstashの高負荷状態が上記エラーの影響によるものか知見のある方がいらっしゃいましたら、お力添えを頂けますと幸いです。

Logstashのバージョンは 7.3.1 となります。

---

<div class="post-metadata">

**Author:** ![ueba-dev-i](https://avatars.discourse-cdn.com/v4/letter/u/6bbea6/32.png) [@ueba-dev-i](https://discuss.elastic.co/u/ueba-dev-i)\
**Post date:** [November 24, 2020, 2:26am UTC](https://discuss.elastic.co/t/logstash-leak-bytebuf/256045/2 "2020-11-24T02:26:47Z")

</div>

上記エラーは関係ありませんでした。  
クローズさせていただきます。

---

<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:** [December 22, 2020, 2:26am UTC](https://discuss.elastic.co/t/logstash-leak-bytebuf/256045/3 "2020-12-22T02:26:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
