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

Enhancement for configurable automatic dump upon thread exhaustion #138

Open
aogburn opened this issue Oct 20, 2023 · 1 comment
Open

Enhancement for configurable automatic dump upon thread exhaustion #138

aogburn opened this issue Oct 20, 2023 · 1 comment

Comments

@aogburn
Copy link
Contributor

aogburn commented Oct 20, 2023

For some scenarios, reaching thread pool exhaustion can be a critical state always requiring thread dumps for an RCA. So it would be helpful for the executor to have a configurable option allowing an automatic dump upon thread exhaustion.

@franz1981
Copy link
Contributor

if (UPDATE_STATISTICS) rejectedTaskCounter.increment();

this seems to suggest we just send a RejectedEx while would be great to have a rethrow as OOM somewhere, because OOM due to native thread exhaustion won't make the JVM to die if configured with ExitOnOOM, see https://bugs.openjdk.org/browse/JDK-8155004

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