-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
High CPU Usage by TruffleCompilerThread #10730
Comments
Hi @dandelion2, Thank you for reaching out to us about this. |
Note -Dpolyglot.engine.OptimizationLevel=0 is not a valid option and does nothing. I am surprised it boots at all with this option. Also, would you mind sharing a fully runnable example? Without the script executing we will not be able to reproduce this. |
Thank you for your suggestions. Due to certain reasons, we are not able to upgrade at the moment. Could you tell me what optimization parameters are available for multi-threaded script compilation in GraalVM Community Edition 22.3? |
-Dpolyglot.engine.OptimizationLevel=0 does not exist in any version, did your LLM generate this suggestion? We have lots of options documented here: You can use: |
Thank you, we will give it a try. |
Describe GraalVM and your environment :
java -Xinternalversion
:Have you verified this issue still happens when using the latest snapshot?
You can find snapshot builds here: https://github.com/graalvm/graalvm-ce-dev-builds/releases
Describe the issue
During concurrent testing (100 threads), it was found that the CPU usage was excessively high, reaching nearly 300% on a 4-core CPU. Analysis revealed that three TruffleCompilerThread threads were responsible for this high usage. In the stress test code, both the context and the compilation results were cached to reduce redundant compilation.
Code snippet or code repository that reproduces the issue
Additional context
Current Invocation Method:java -jar -Dpolyglot.engine.OptimizationLevel=0 xxx.jar
Details
The text was updated successfully, but these errors were encountered: