Hello Guys, I have an app running on GraalVM JDK with javascript embedded in a java app in polyglot mode. I am trying to run it with the Yourkit agent. For some reason running with the yourkit agent breaks some class loading in the Graal JVM.
Any ideas what may be going on?
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.graalvm.polyglot.Engine$ImplHolder
at org.graalvm.sdk/org.graalvm.polyglot.Engine.getImpl(Engine.java:273)
at org.graalvm.sdk/org.graalvm.polyglot.Engine$Builder.build(Engine.java:511)
It works fine when I remove the JVM argument:
-agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib=builtinprobes=none
Running Yourkit with GraalVM polyglot
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Running Yourkit with GraalVM polyglot
Hi,
Does it work with "disableall"?
-agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib=disableall
Best regards,
Anton
Does it work with "disableall"?
-agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib=disableall
Best regards,
Anton
-
- Posts: 3
- Joined: Thu May 14, 2020 3:08 pm
Re: Running Yourkit with GraalVM polyglot
No it does not help. Same problem.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Running Yourkit with GraalVM polyglot
Is the profiler agent log file ~/.yjp/log/<session name>-<pid>.log created? Could you please send it attached to [email protected]
We would appreciate if you could share an example demonstrating the problem and/or provide instructions on how to reproduce it.
We would appreciate if you could share an example demonstrating the problem and/or provide instructions on how to reproduce it.
-
- Posts: 3
- Joined: Thu May 14, 2020 3:08 pm
Re: Running Yourkit with GraalVM polyglot
Actually I'll take it back the disableall does work. Then obviously cpu tracing does not work with that option.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Running Yourkit with GraalVM polyglot
It's great that this option helps, thank you for the update.
We are still interested in receiving the requested detail from you, which would help us running further investigation on our side.
We are still interested in receiving the requested detail from you, which would help us running further investigation on our side.