jetty.project icon indicating copy to clipboard operation
jetty.project copied to clipboard

Memory leak in `ArrayRetainableByteBufferPool$RetainedBucket`

Open KGOH opened this issue 8 months ago • 3 comments

Jetty version(s) 11.0.17

Java version/vendor openjdk version "21.0.3" 2024-04-16 LTS OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)

OS type/version Inside of a eclipse-temurin:21-alpine docker container

Description On several (not all) different instances of my application that are using the same functionality I observe a constantly growing direct memory usage image (the saw-tooth pattern is due to manual application restarts)

I created a heap dump using jmap -dump:format=b,file=heap.hprof $PID. I inspected it with VisualVM and Eclipse MAT and both point to org.eclipse.jetty.io.ArrayRetainableByteBufferPool$RetainedBucket

Here are screenshots from VisualVM and Eclipse MAT from the dump inspection: image image image image

How to reproduce? 🤷

KGOH avatar May 30 '24 12:05 KGOH