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

Disable automatic detection of virtual threads #5270

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

pditommaso
Copy link
Member

The use of Java virtual threads is supported as experimental feature. This PR disables the automatic use of virtual threads with Java 21 or later.

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Copy link

netlify bot commented Sep 1, 2024

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 957955e
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/66d4316c663f910008c3e7b4

@pditommaso pditommaso merged commit b3ba2c2 into master Sep 2, 2024
21 checks passed
@pditommaso pditommaso deleted the disable-virtual-threads branch September 2, 2024 13:37
Copy link
Member

@bentsherman bentsherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. See #4995 for a proposed solution to the problems reported around virtual threads.

I think the problem is not the virtual threads themselves but the lack of a pool size. They say "you don't need a pool anymore, just make a virtual thread!" but if every thread is doing heavy I/O (e.g. publishing) then you will still overwhelm the system.

So we need some kind of queue that allows for unlimited threads but limits the level of concurrent processing and I/O. Maybe that's just the existing platform thread pool... need to think on it more.

pditommaso added a commit that referenced this pull request Sep 4, 2024
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants