Skip to content

Comments

chore: disable virtual threads by default#2333

Merged
johanandren merged 2 commits intomainfrom
default-disable-virtual-threads
Aug 6, 2025
Merged

chore: disable virtual threads by default#2333
johanandren merged 2 commits intomainfrom
default-disable-virtual-threads

Conversation

@efgpinto
Copy link
Contributor

@efgpinto efgpinto commented Aug 6, 2025

Not using virtual threads by default until jdk 25 is out, which fixes this issue.

Refs https://github.com/lightbend/kalix/issues/13949

@github-actions github-actions bot added java-sdk-protobuf team-runtime Runtime and SDKs sub-team labels Aug 6, 2025
# Virtual threads usage can be enabled by changing the executor to be "virtual-thread-executor"
# by default, using the fork join executor for now due to existing issue: https://openjdk.org/jeps/491
executor = "fork-join-executor"
virtual-thread-executor {
Copy link
Member

Choose a reason for hiding this comment

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

Should this section be commented out, as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not from a functional perspective... don't see any reason to comment it out. Unless you think it is confusing as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should drop it, we have git history with the full old thing anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.. You mean dropping the virtual-thread-executor { ... } section, right? or dropping even the config at all and have it hard coded so users cannot change it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just the vt config details block that is no longer used for anything

@johanandren johanandren merged commit cb52ab3 into main Aug 6, 2025
55 checks passed
@johanandren johanandren deleted the default-disable-virtual-threads branch August 6, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java-sdk-protobuf team-runtime Runtime and SDKs sub-team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants