Closed
Description
Describe GraalVM and your environment :
- GraalVM version or commit id if built from source: 17.0.9
- CE or EE: CE
- JDK version: JDK17
- OS and OS Version: Mac OS Sonoma 14.0
- Architecture: arm64
- Wildfly Version: 26.1.3
- The output of
java -Xinternalversion
:
OpenJDK 64-Bit Server VM (17.0.9+9-jvmci-23.0-b22) for bsd-aarch64 JRE (17.0.9+9-jvmci-23.0-b22), built on Oct 18 2023 05:07:37 by "graal" with clang Apple LLVM 12.0.0 (clang-1200.0.32.29)
Describe the issue
I want to run javascript code in my java web application that runs on Widfly 26. I get this warning every time:
10:41:32,229 ERROR [stderr] (default task-1) [To redirect Truffle log output to a file use one of the following options:
10:41:32,229 ERROR [stderr] (default task-1) * '--log.file=<path>' if the option is passed using a guest language launcher.
10:41:32,229 ERROR [stderr] (default task-1) * '-Dpolyglot.log.file=<path>' if the option is passed using the host Java launcher.
10:41:32,229 ERROR [stderr] (default task-1) * Configure logging using the polyglot embedding API.]
10:41:32,229 ERROR [stderr] (default task-1) [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
10:41:32,229 ERROR [stderr] (default task-1) The guest application code will therefore be executed in interpreted mode only.
10:41:32,229 ERROR [stderr] (default task-1) Execution only in interpreted mode will strongly impact the guest application performance.
10:41:32,229 ERROR [stderr] (default task-1) For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
10:41:32,229 ERROR [stderr] (default task-1) To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
I am running wildfly on GraalVM so I dont know what would be the solution here. I dont want to supress the warning because I need the better performance of the normal mode.
I have imported these dependecies:
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<version>23.0.5</version>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
<version>23.0.5</version>
<scope>runtime</scope>
</dependency>
Code snippet or code repository that reproduces the issue
testgraalvm.zip