Skip to content

Improve resource exhaustion handling #580

@slinkydeveloper

Description

@slinkydeveloper

When users reach the limit of threads number, the JVM will fail with simply

java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached

Is it possible to make this failure "nicer"? or give an indication if this is a real OOM or it hits the limit of number of threads in Linux? How other java server frameworks handle that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions