Skip to content

Memory leak in the jooby-netty implementation #2167

@steintore

Description

@steintore

In our project we use Jooby, and have more recently upgraded to version 2, currently running on the latest version 2.9.4.

I've spent a couple of days hunting down a memory leak within our application and have found out that the class:
io.netty.handler.codec.DefaultHeaders$HeaderEntry is causing some issue.

How to recreate:
Create an empty project with latest version of Jooby + Netty and Gradle. Run a POST-request to the running server, examine that the above mentioned class increases for every call (which is normal), but GC only manages to handle about 60% of it.

I have also created a project with Ktor + Netty, but this does NOT happen there, GC manages to clear what it should.

I have not looked into the implementation here, but hopefully you might now where to look?
It does seem to only apply to POST-requests, and it is quite hard to see it, we found it because we did not deploy for 4-5 days straight.

We have swapped to Jetty to test, and cannot see any memory leakage like this.

Please let me know if more information is required to solve this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions