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

ERROR ResourceLeakDetector:171 - LEAK: ByteBuf.release() was not called before it's garbage-collected #545

Open
JayathmaChathurangani opened this issue Jul 25, 2018 · 1 comment

Comments

@JayathmaChathurangani
Copy link

JayathmaChathurangani commented Jul 25, 2018

When I do a load test for this simple service (relevant classes are there below)

@Path("/hello")
public class MyService {

    @POST
    @Path("/payloadCheck")
    @Consumes("application/json")
    @Produces("application/json")
    public Response get(MessageFormat msg) {
        return Response.status(Response.Status.OK).entity(msg).build();
    }
}

public class MessageFormat {
    private String size;
    private String payload;

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }
}

public class Application {
    public static void main(String[] args) {
        new MicroservicesRunner()
                .deploy(new MyService())
                .start();
    }
}

The error on the terminal is
ERROR ResourceLeakDetector:171 - 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:

How to fix this?
(For a single request it works fine)

@this
Copy link
Member

this commented Oct 2, 2018

Please check with the latest v2.6.4 release.

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