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

Use only singe thread for POJA applications #800

Open
andriy-dmytruk opened this issue Oct 3, 2024 · 2 comments
Open

Use only singe thread for POJA applications #800

andriy-dmytruk opened this issue Oct 3, 2024 · 2 comments

Comments

@andriy-dmytruk
Copy link
Contributor

Feature description

Use only single (main) thread for POJA applications. It seems this could be achieved with -XX:ActiveProcessorCount=1. Not sure about other ways.

@graemerocher
Copy link
Contributor

not sure how this can be achieved here?

@andriy-dmytruk
Copy link
Contributor Author

There is also the java.util.concurrent.ForkJoinPool.common.maximumSpares system property. If we can set it before ForkJoinPool class is loaded, then that would work.

If it cannot be achieved, then I will add it to documentation.

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