Eclipse>Yourkit>Profile As: always says "none applicable"
-
- Posts: 11
- Joined: Tue Jun 19, 2018 1:21 am
Eclipse>Yourkit>Profile As: always says "none applicable"
Hello,
YourKit UI is running, Eclipse is running, both on my local Mac. When I try to run my Java app in Eclipse by clicking YourKit icon in toolbar, then Profile As, it always just says "(none applicable)". I have tried restarting both YourKit UI and Eclipse a few times. I can successfully run my app via Eclipse "Run", then let YourKit UI connect to it, but your documentation says there are limitations in profiling this way. What could be causing this?
Profile Configuration tab in Eclipse for my app has "automatically launch the profiler UI" and "startup with CPU profiling" both enabled.
Versions are Eclipse Luna, Yourkit 2017.02, YourKit Java Profiler 2017.02-b75 Plugin
thanks, Jim
YourKit UI is running, Eclipse is running, both on my local Mac. When I try to run my Java app in Eclipse by clicking YourKit icon in toolbar, then Profile As, it always just says "(none applicable)". I have tried restarting both YourKit UI and Eclipse a few times. I can successfully run my app via Eclipse "Run", then let YourKit UI connect to it, but your documentation says there are limitations in profiling this way. What could be causing this?
Profile Configuration tab in Eclipse for my app has "automatically launch the profiler UI" and "startup with CPU profiling" both enabled.
Versions are Eclipse Luna, Yourkit 2017.02, YourKit Java Profiler 2017.02-b75 Plugin
thanks, Jim
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
Hello Jim
What type of run configuration is that?
What Eclipse version/flavor do you have?
Please note that YourKit Java Profiler 2017.02 is no longer supported. Please use the latest release YourKit Java Profiler 2018.04.
Best regards,
Anton
What type of run configuration is that?
What Eclipse version/flavor do you have?
Please note that YourKit Java Profiler 2017.02 is no longer supported. Please use the latest release YourKit Java Profiler 2018.04.
Best regards,
Anton
-
- Posts: 11
- Joined: Tue Jun 19, 2018 1:21 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
> What type of run configuration is that?
It's a Java app, Oracle JRE 1.8.0_152
Arguments:
-Xmx1024m
-Djava.library.path=../mid-dist-universal/dist/skeleton/lib
-Djava.util.logging.config.file=../mid-dist-universal/dist/skeleton-filtered/properties/glide.properties
-Dmid.probe.resource.dir=../mid-dist-universal/dist/skeleton/lib
-Dsun.net.maxDatagramSockets=65535
> What Eclipse version/flavor do you have?
Eclipse Luna 4.4.2 running on Mac OS X Sierra
> Please use the latest release YourKit Java Profiler 2018.04
Unfortunately my license key does not work with that version.
It's a Java app, Oracle JRE 1.8.0_152
Arguments:
-Xmx1024m
-Djava.library.path=../mid-dist-universal/dist/skeleton/lib
-Djava.util.logging.config.file=../mid-dist-universal/dist/skeleton-filtered/properties/glide.properties
-Dmid.probe.resource.dir=../mid-dist-universal/dist/skeleton/lib
-Dsun.net.maxDatagramSockets=65535
> What Eclipse version/flavor do you have?
Eclipse Luna 4.4.2 running on Mac OS X Sierra
> Please use the latest release YourKit Java Profiler 2018.04
Unfortunately my license key does not work with that version.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
Could you please send to [email protected]
- screenshot of what you see (the "non-applicable" message)
- screenshot of your run configuration settings
- logs from ~/.yjp/log
- file ~/.yjp/ide2014.txt
- Eclipse log (accessible from "Help | About Eclipse").
- screenshot of what you see (the "non-applicable" message)
- screenshot of your run configuration settings
- logs from ~/.yjp/log
- file ~/.yjp/ide2014.txt
- Eclipse log (accessible from "Help | About Eclipse").
-
- Posts: 1626
- Joined: Tue Aug 10, 2004 7:52 pm
Re: Eclipse>Yourkit>Profile As: always says "none applicable
Is it command-line Java app which has main() method? What is the type of run configuration?It's a Java app, Oracle JRE 1.8.0_152
Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
-
- Posts: 11
- Joined: Tue Jun 19, 2018 1:21 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
Hello Vladimir ,
Yes, it is a command line app with main() method. Run configuration type is Java application. Detailed screens shots of the config tabs are attached to 2 emails email which Anton requested.
Yes, it is a command line app with main() method. Run configuration type is Java application. Detailed screens shots of the config tabs are attached to 2 emails email which Anton requested.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
Thank you. We've answered your email.
-
- Posts: 11
- Joined: Tue Jun 19, 2018 1:21 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
Reinstalling YourKit plugin or starting Eclipse -clean didn't solve it, but I found a workaround which did solve it:
Find Main.java in Eclipse Project Explorer, right click on it, choose Profile As, which correctly shows 'Java Application'. After that the toolbar YourKit icon > Profile As now correctly shows 'Java Application' instead of '(none applicable)'.
Find Main.java in Eclipse Project Explorer, right click on it, choose Profile As, which correctly shows 'Java Application'. After that the toolbar YourKit icon > Profile As now correctly shows 'Java Application' instead of '(none applicable)'.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
Cool. Thank you for sharing this hint.
Does the effect persist after you restart Eclipse, or do you have to do this trick again and again?
Does the effect persist after you restart Eclipse, or do you have to do this trick again and again?
-
- Posts: 11
- Joined: Tue Jun 19, 2018 1:21 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
It's been quite a long time since I used YourKit, but started using this week and hit this same issue again, but now with YourKit 2019.1 and Eclipse Oxygen 4.7.3. My workaround it my last post above works for the YourKit icon in toolbar, but I cannot get Profile menu options to show in the Eclipse Run and Debug toolbar dropdown menus, so I think I have no way to profile when using Eclipse in debugger mode.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Eclipse>Yourkit>Profile As: always says "none applicable
There is no way to use "Debug" and "Profile" actions simultaneously, they are mutually exclusive.
To profile with debugging please manually specify appropriate -agentpath VM option and use "Debug". The simplest way to get the option is to use the "Profile local..." action on the profiler Welcome screen and choose "Other Java application".
To profile with debugging please manually specify appropriate -agentpath VM option and use "Debug". The simplest way to get the option is to use the "Profile local..." action on the profiler Welcome screen and choose "Other Java application".