Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Running Yourkit with GraalVM polyglot

Moderators: Vladimir Kondratyev, Anton Katilin

Running Yourkit with GraalVM polyglot

Postby a701440 » Thu May 14, 2020 3:13 pm

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

Re: Running Yourkit with GraalVM polyglot

Postby Anton Katilin » Fri May 15, 2020 6:42 am

Hi,

Does it work with "disableall"?

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

Best regards,
Anton
Anton Katilin
 
Posts: 5947
Joined: Wed Aug 11, 2004 8:37 am

Re: Running Yourkit with GraalVM polyglot

Postby a701440 » Tue May 19, 2020 1:56 pm

No it does not help. Same problem.
a701440
 
Posts: 3
Joined: Thu May 14, 2020 3:08 pm

Re: Running Yourkit with GraalVM polyglot

Postby Anton Katilin » Tue May 19, 2020 5:48 pm

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

Re: Running Yourkit with GraalVM polyglot

Postby a701440 » Tue May 19, 2020 7:05 pm

Actually I'll take it back the disableall does work. Then obviously cpu tracing does not work with that option.
a701440
 
Posts: 3
Joined: Thu May 14, 2020 3:08 pm

Re: Running Yourkit with GraalVM polyglot

Postby Anton Katilin » Tue May 19, 2020 7:45 pm

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


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.