Running Yourkit with GraalVM polyglot

Questions about YourKit Java Profiler
Post Reply
a701440
Posts: 3
Joined: Thu May 14, 2020 3:08 pm

Running Yourkit with GraalVM polyglot

Post by a701440 »

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
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Running Yourkit with GraalVM polyglot

Post by Anton Katilin »

Hi,

Does it work with "disableall"?

-agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib=disableall

Best regards,
Anton
a701440
Posts: 3
Joined: Thu May 14, 2020 3:08 pm

Re: Running Yourkit with GraalVM polyglot

Post by a701440 »

No it does not help. Same problem.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Running Yourkit with GraalVM polyglot

Post by Anton Katilin »

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.
a701440
Posts: 3
Joined: Thu May 14, 2020 3:08 pm

Re: Running Yourkit with GraalVM polyglot

Post by a701440 »

Actually I'll take it back the disableall does work. Then obviously cpu tracing does not work with that option.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Running Yourkit with GraalVM polyglot

Post by Anton Katilin »

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.
Post Reply