camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.11k stars 1.56k forks source link

GraalVM, skip interpreter mode warning #4553

Closed yanavasileva closed 2 months ago

yanavasileva commented 2 months ago

The following output is printed on start of Tomcat/WildFly pre-packaged distros after we bumped graalvm-sdk version in #4299. The error is produce on each execution of a script.

Details ``` 20:47:11,532 ERROR [stderr] (MSC service thread 1-6) [To redirect Truffle log output to a file use one of the following options: 20:47:11,533 ERROR [stderr] (MSC service thread 1-6) * '--log.file=' if the option is passed using a guest language launcher. 20:47:11,535 ERROR [stderr] (MSC service thread 1-6) * '-Dpolyglot.log.file=' if the option is passed using the host Java launcher. 20:47:11,564 ERROR [stderr] (MSC service thread 1-6) * Configure logging using the polyglot embedding API.] 20:47:11,566 ERROR [stderr] (MSC service thread 1-6) [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation. 20:47:11,566 ERROR [stderr] (MSC service thread 1-6) The guest application code will therefore be executed in interpreted mode only. 20:47:11,569 ERROR [stderr] (MSC service thread 1-6) Execution only in interpreted mode will strongly impact the guest application performance. 20:47:11,570 ERROR [stderr] (MSC service thread 1-6) For more information on using GraalVM see https://www.graalvm.org/java/quickstart/. 20:47:11,570 ERROR [stderr] (MSC service thread 1-6) To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property. 20:47:11,990 ERROR [stderr] (MSC service thread 1-6) [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation. 20:47:11,991 ERROR [stderr] (MSC service thread 1-6) The guest application code will therefore be executed in interpreted mode only. 20:47:11,993 ERROR [stderr] (MSC service thread 1-6) Execution only in interpreted mode will strongly impact the guest application performance. 20:47:11,996 ERROR [stderr] (MSC service thread 1-6) For more information on using GraalVM see https://www.graalvm.org/java/quickstart/. 20:47:11,997 ERROR [stderr] (MSC service thread 1-6) To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property. 20:47:12,135 ERROR [stderr] (MSC service thread 1-6) [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation. 20:47:12,135 ERROR [stderr] (MSC service thread 1-6) The guest application code will therefore be executed in interpreted mode only. 20:47:12,137 ERROR [stderr] (MSC service thread 1-6) Execution only in interpreted mode will strongly impact the guest application performance. 20:47:12,140 ERROR [stderr] (MSC service thread 1-6) For more information on using GraalVM see https://www.graalvm.org/java/quickstart/. 20:47:12,141 ERROR [stderr] (MSC service thread 1-6) To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property. 20:47:12,147 ERROR [stderr] (MSC service thread 1-6) [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation. 20:47:12,148 ERROR [stderr] (MSC service thread 1-6) The guest application code will therefore be executed in interpreted mode only. 20:47:12,149 ERROR [stderr] (MSC service thread 1-6) Execution only in interpreted mode will strongly impact the guest application performance. 20:47:12,152 ERROR [stderr] (MSC service thread 1-6) For more information on using GraalVM see https://www.graalvm.org/java/quickstart/. 20:47:12,153 ERROR [stderr] (MSC service thread 1-6) To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property. 20:47:12,232 ERROR [stderr] (MSC service thread 1-6) [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation. 20:47:12,232 ERROR [stderr] (MSC service thread 1-6) The guest application code will therefore be executed in interpreted mode only. 20:47:12,234 ERROR [stderr] (MSC service thread 1-6) Execution only in interpreted mode will strongly impact the guest application performance. 20:47:12,237 ERROR [stderr] (MSC service thread 1-6) For more information on using GraalVM see https://www.graalvm.org/java/quickstart/. 20:47:12,238 ERROR [stderr] (MSC service thread 1-6) To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property. 20:47:12,243 ERROR [stderr] (MSC service thread 1-6) [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation. 20:47:12,245 ERROR [stderr] (MSC service thread 1-6) The guest application code will therefore be executed in interpreted mode only. 20:47:12,250 ERROR [stderr] (MSC service thread 1-6) Execution only in interpreted mode will strongly impact the guest application performance. 20:47:12,251 ERROR [stderr] (MSC service thread 1-6) For more information on using GraalVM see https://www.graalvm.org/java/quickstart/. 20:47:12,251 ERROR [stderr] (MSC service thread 1-6) To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property. ```

Acceptance Criteria (Required on creation)`

Hints

Links

Breakdown

### Pull Requests
- [ ] https://github.com/camunda/camunda-bpm-platform/pull/4562
- [ ] https://github.com/camunda/camunda-bpm-platform-maintenance/pull/1276
- [ ] https://github.com/camunda/camunda-bpm-platform-maintenance/pull/1277
- [ ] https://github.com/camunda/camunda-bpm-platform-maintenance/pull/1278

Dev2QA handover

yanavasileva commented 2 months ago

Findings:

Decision: we revert the update and do more detailed investigation on how to handle the warnings for the next set of patches.

yanavasileva commented 2 months ago

After downport, the warnings are gone. On CI they can be observed in webapp-IT stages.