Skip to content

Spawning AHC 2.0 w/ Netty 4 instances very fast leads to fd/thread/memory starvation #969

Closed
@dotta

Description

@dotta

After updating the Play codebase to AHC 2.0-alpha9, I've started to experience issues with non terminating tests because of OutOfMemoryException. Until today, I wrongly assumed this was caused by the changes I made in AHC to support reactive streams, but the assumption turned out to be wrong. In fact, I can reproduce even by using AHC 2.0-alpha8, which doesn't include the reactive stream support.

Here is a link to the truly long thread dump demonstrating that AHC 2.0-alpha8 is leaking threads
https://gist.github.com/dotta/6e388962cf0d904e8170

This issue is currently preventing playframework/playframework#5082 to successfully build.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions