Skip to content

Netty Leak & App Crash with OutOfDirectMemoryError #903

Closed
@pivotal-david-osullivan

Description

@pivotal-david-osullivan

A sample app which creates a DefaultCloudFoundryOperations, Applications and LogRequest object and queries a given app's logs.

When deployed locally and in a CF container and queried via curl, for example, I see the error: LEAK: ByteBuf.release() was not called before it's garbage-collected., and eventually the container crashes with OutOfDirectMemoryError: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 402653191, max: 419430400).

This appears to be the same 2 symptoms discussed in #806 which were addressed in v2.17.0. I've enabled advanced leak detection on local instance, the output is attached and the hints seem to refer to 'reactor.left.httpCodec' among others.

Versions in use: reactor-core: 3.1.8, reactor-netty: 0.7.8, client: 3.11.0, Buildpack: 4.13

Please let me know if I can provide any more info.

Stack.log

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions