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.

Cannot start application with profiler on MacOS Catalina

Moderators: Vladimir Kondratyev, Anton Katilin

Cannot start application with profiler on MacOS Catalina

Postby SandroG » Mon Dec 16, 2019 2:28 pm

Hi, unfortunately I cannot start application with profiler, and cannot connect to a local app with the profiler without starting the app with the profiler.

MacOS Catalina 10.15 and am trying to profile a Java/Scala application, using AdoptOpenJDK 12.

The error I get is:

Code: Select all
 Error occurred during initialization of VM
Could not find agent library /Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib in absolute path, with error: dlopen(/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib, 1): no suitable image found. Did find:
/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib: code signature in (/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs


See more details here: https://youtrack.jetbrains.com/issue/ID ... 859478.0-0

Thanks!
SandroG
 
Posts: 4
Joined: Mon Dec 16, 2019 2:21 pm

Re: Cannot start application with profiler on MacOS Catalina

Postby SandroG » Mon Dec 16, 2019 2:56 pm

This is with YourKit 2019-8-b127 (unfortunately I cannot seem to edit my initial post).
SandroG
 
Posts: 4
Joined: Mon Dec 16, 2019 2:21 pm

Re: Cannot start application with profiler on MacOS Catalina

Postby Vladimir Kondratyev » Tue Dec 17, 2019 9:21 am

- Can you start profiler UI on your mac?

- What is the output of command
Code: Select all
java -agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib -version


Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
 
Posts: 1518
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Re: Cannot start application with profiler on MacOS Catalina

Postby SandroG » Tue Dec 17, 2019 2:44 pm

Vladimir Kondratyev wrote:- Can you start profiler UI on your mac?

- What is the output of command
Code: Select all
java -agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib -version


Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"


Hi,

yes, the Profiler UI works perfectly well and I can normally profile remote servers with no issues at all.

The output of the command is:

Code: Select all
$ java -agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib -version
Error occurred during initialization of VM
Could not find agent library /Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib in absolute path, with error: dlopen(/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib, 1): no suitable image found.  Did find:
   /Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib: code signature in (/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs


I have also tried deleting and reinstalling YourKit Profiler 2019.8-b127, with the same results.

Thanks!
SandroG
 
Posts: 4
Joined: Mon Dec 16, 2019 2:21 pm

Re: Cannot start application with profiler on MacOS Catalina

Postby Vladimir Kondratyev » Tue Dec 17, 2019 3:03 pm

I suppose that problem is in Adopt JDK, not in YourKit profiler library. Please give us URL where we can download exact JDK which you are using.

Do you have the same issue with Open JDK or Oracle JDK? Please try.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
 
Posts: 1518
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Re: Cannot start application with profiler on MacOS Catalina

Postby SandroG » Tue Dec 17, 2019 3:17 pm

Vladimir Kondratyev wrote:I suppose that problem is in Adopt JDK, not in YourKit profiler library. Please give us URL where we can download exact JDK which you are using.

Do you have the same issue with Open JDK or Oracle JDK? Please try.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"


Hi,

thank you for the help - the issue was indeed with AdoptOpenJDK 12 installed using brew cask:

After updating to AdoptOpenJDK 13, and setting it as the active JDK in IntelliJ IDEA, the issue disappeared and profiling now works.

Thanks!
SandroG
 
Posts: 4
Joined: Mon Dec 16, 2019 2:21 pm

Re: Cannot start application with profiler on MacOS Catalina

Postby Anton Katilin » Tue Dec 17, 2019 3:30 pm

Thank you for sharing the solution.
Anton Katilin
 
Posts: 5951
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

cron

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.