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.

YourKit "profiler.sh" not working under Xubuntu

Moderators: Vladimir Kondratyev, Anton Katilin

YourKit "profiler.sh" not working under Xubuntu

Postby MrPowerGamerBR » Mon Jan 14, 2019 11:13 am

Howdy!

Today I tried installing YourKit on my Linux machine but... it doesn't seem to work (it worked fine under Windows), no matter what JDK version I use (I tried using Java 8 and Java 11)

I also tried using the latest YourKit EAP version, same problem.

Code: Select all
[YourKit Java Profiler 2018.04-b88] Log file: /home/mrpowergamerbr/.yjp/log/profiler-ui-32349.log
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.yourkit.Main.a(a:50)
   at com.yourkit.Main.mainMac(a:175)
   at com.yourkit.Main.main(a:60)
Caused by: java.lang.ExceptionInInitializerError
   at com.yourkit.k.s.a.dr.<init>(a:32)
   at com.yourkit.k.s.a.cr.<clinit>(a:91)
   at com.yourkit.k.s.a.w.a(a:233)
   at com.yourkit.k.s.a.w.<init>(a:74)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
   at java.lang.Class.newInstance(Class.java:442)
   at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)
   at com.yourkit.Main1.entry(a:550)
   ... 7 more
Caused by: com.yourkit.util.cu: unexpected value: 0
   at com.yourkit.k.cm.<init>(a:35)
   at com.yourkit.k.cm.<clinit>(a:20)
   ... 18 more


And here is the YourKit log file: https://gist.github.com/MrPowerGamerBR/dbcf3625da2cd50635426425e1399d1e
MrPowerGamerBR
 
Posts: 2
Joined: Mon Jan 14, 2019 11:06 am

Re: YourKit "profiler.sh" not working under Xubuntu

Postby Anton Katilin » Mon Jan 14, 2019 11:52 am

It's a new issue. We're investigating...
I'll post an update ASAP.
Anton Katilin
 
Posts: 5749
Joined: Wed Aug 11, 2004 8:37 am

Re: YourKit "profiler.sh" not working under Xubuntu

Postby Anton Katilin » Mon Jan 14, 2019 12:49 pm

We didn't manage to reproduce the problem on a fresh installed Xubuntu 18.04. Perhaps you have some special font settings (the problem is with font metrics), or use a different version.

Nevertheless, could you please try the proposed fix for the EAP version.

Please download this yourkit.jar https://www.yourkit.com/download/tmp/20 ... ourkit.jar and write it over <profiler EAP installation directory>/lib/yourkit.jar

Does it help?

In any case, could you please provide the new log file. We're interested in diagnostic messages logged for your system.
Anton Katilin
 
Posts: 5749
Joined: Wed Aug 11, 2004 8:37 am

Re: YourKit "profiler.sh" not working under Xubuntu

Postby MrPowerGamerBR » Mon Jan 14, 2019 2:17 pm

Woah, that was fast!

I tested with that new version, but...
Image

But I actually found the issue, after you said that it was a font issue, I recalled this answer I made on AskUbuntu ( https://askubuntu.com/questions/1060146 ... tu-18-04-1 ), reverting the Firefox fix fixed the font issue and also works without the patched YourKit version. I will update the answer in AskUbuntu later.

Anyway, thank you for helping!
MrPowerGamerBR
 
Posts: 2
Joined: Mon Jan 14, 2019 11:06 am

Re: YourKit "profiler.sh" not working under Xubuntu

Postby Anton Katilin » Mon Jan 14, 2019 2:30 pm

Thank you for the notification.
Anton Katilin
 
Posts: 5749
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 20 guests

cron