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

Start YourKit on OSX from Shortcut

Moderators: Vladimir Kondratyev, Anton Katilin

Start YourKit on OSX from Shortcut

Postby skanjo » Mon Jan 11, 2016 9:58 pm

I recently bought YourKit and installed on MacBook Pro running El Capitan. I have Java 6, 7, and 8 installed with Java 8 the default system JVM. I also have my own user config to specify Java version to use by default, also defaulted to Java 8. After poking around I found the yjp.sh file and in that found the YJP_JAVA_HOME environment variable. After setting that and directly executing yjp.sh it started. Why won't it start from the application shortcut?
skanjo
 
Posts: 2
Joined: Mon Jan 11, 2016 9:42 pm

Re: Start YourKit on OSX from Shortcut

Postby skanjo » Mon Jan 11, 2016 10:05 pm

What I failed to mention is that the message I receive when clicking the application shortcut indicates Java is not installed. It seems that the shortcut is executing yjp_mac. I get the same message when directly executing that file. Where is the config for that executable?
skanjo
 
Posts: 2
Joined: Mon Jan 11, 2016 9:42 pm

Re: Start YourKit on OSX from Shortcut

Postby Anton Katilin » Tue Jan 12, 2016 2:35 pm

Yes, you should start yjp_mac or <YourKit>.app

JVMs are searched in

~/Library/Java/JavaVirtualMachines
/Library/Java/JavaVirtualMachines
/System/Library/Java/JavaVirtualMachines

Exactly what error message do you get?

The problem must be related with the way you installed Java 8 which is used by default.
Did you install it with the standard installer? Is it located in the mentioned directories?
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Start YourKit on OSX from Shortcut

Postby Anton Katilin » Tue Jan 12, 2016 2:55 pm

Update: to check which JVMs were probed and other detail:
- delete current logs: rm ~/.yjp/log/*
- run the .app or yjp_mac
- log file ~/.yjp/log/yjp_mac-<PID>.log should be created - could you please provide its content.
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 9 guests