Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Byte-buddy memory leak #145

Open
insdami opened this issue Nov 29, 2022 · 1 comment
Open

Byte-buddy memory leak #145

insdami opened this issue Nov 29, 2022 · 1 comment

Comments

@insdami
Copy link

insdami commented Nov 29, 2022

Hi, we are experiencing a memory leak which according to the latest dump comes from Kanela (byte buddy).

We are using Kanela:

val agent = "io.kamon"           % "kanela-agent"     % "1.0.16"

via native packager

addSbtPlugin("com.lightbend.sbt" % "sbt-javaagent" % "0.1.6")

javaAgents += Kamon.agent

along with Kamon "2.5.11".

The application is an akka-http with gRPC one which is intialised as explained in guide

Screenshot 2022-11-29 at 14 03 47

Screenshot 2022-11-29 at 14 03 34

Do you know what could be happening that the hashmap keeps growing over time? Let me know if I can provide more details to understand the problem better.

@ivantopo
Copy link
Contributor

Hey @insdami, do you have any info about how big does it get over time?

I remember looking into this a long time ago and realizing that even though the type pool is "big" (I have seen it take up to 50mb), it was always contained. That would make this more of a (relatively) high memory usage problem rather than a memory leak. Have you seen it go completely out of control?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants