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

Fix suggestion: #214 : Virtual Threads are not a good idea. #218

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Euphillya
Copy link

As I mentioned in my report, virtual threads can completely freeze and cause the plugin to shut down. When this happens, we have to stop the server, which leads to a series of errors because the threads will still try to execute. The more actions are pending, the longer the shutdown process takes.

Maybe later this problem will no longer exist, but in Java 21, it is still present.

@Euphillya Euphillya changed the title Fix suggestion: https://github.com/FancyMcPlugins/FancyNpcs/issues/214 Fix suggestion: #214 Jan 10, 2025
@Euphillya Euphillya changed the title Fix suggestion: #214 Fix suggestion: #214 : Virtual Threads are not a good idea. Jan 10, 2025
@OliverSchlueter
Copy link
Member

I'll inform myself more about virtual threads and find out if it's an actual issue. Did you experience a server crashing because of this?

@Euphillya
Copy link
Author

I'll inform myself more about virtual threads and find out if it's an actual issue. Did you experience a server crashing because of this?

yes of course, we had to downgrade the version to make everything work again

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