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.

Unable to start Profiler.exe / attach to Local Application

Moderators: Vladimir Kondratyev, Anton Katilin

Unable to start Profiler.exe / attach to Local Application

Postby JnS » Fri May 26, 2017 5:17 pm

Since I've updated to JDK 8 131 I'm not able to start the profile.exe file.
When I use java -jar yjp.jar the profiler starts but I'm not able to attach to local applications, though profiler status shows "Ready for attach" (the app is started via Gradle).

This is the log message:

16.02-46 348.131: com.yourkit.g.u.k: Attaching agent to: PID=5264 com.jns.recipebook.RecipeBookApp
16.02-46 348.148: com.yourkit.f.a: Process type: _64_BIT
16.02-46 348.150: com.yourkit.f.a: Process path: D:\Programmierung\JDK_8_131\bin\java.exe
16.02-46 348.150: com.yourkit.f.a: Trying to attach as to a 64-bit JVM:
D:\Programmierung\JRE_8_131\bin\javaw.exe
-Xbootclasspath/a:D:\Programmierung\YourKit_Profiler\jre64\lib\tools.jar
-Dfile.encoding=UTF-8
-cp
D:\Programmierung\YourKit_Profiler\lib\yjp.jar
com.yourkit.Attach
5264
D:\Programmierung\YourKit_Profiler\bin\win64\yjpagent.dll

16.02-46 386.907: com.yourkit.f.a: Command failed:
exit code: -1073741819

16.02-46 386.907: com.yourkit.g.u.k$7: com.yourkit.runtime.PresentableException: Command failed:
exit code: -1073741819

at com.yourkit.f.a.a(a:157)
at com.yourkit.g.u.k$7.a(a:50)
at com.yourkit.g.da$1.run(a:1)
at com.yourkit.g.da$b.run(a:14)


Profiler version: 2016.02-b46
JnS
 
Posts: 2
Joined: Mon May 15, 2017 7:48 pm

Re: Unable to start Profiler.exe / attach to Local Applicati

Postby Anton Katilin » Sun May 28, 2017 11:49 am

Version 2016.02 is not supported. Please use the latest version 2017.02:
https://www.yourkit.com/download
Anton Katilin
 
Posts: 5568
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to start Profiler.exe / attach to Local Applicati

Postby JnS » Thu Jun 01, 2017 1:59 pm

After I've updated to version 2017.02 I eventually managed to start the profiler agent with the Gradle Daemon which runs the app. But now I'm only able to profile the Gradle Daemon instead of the corresponding app, which shows status "Ready to attach".
JnS
 
Posts: 2
Joined: Mon May 15, 2017 7:48 pm

Re: Unable to start Profiler.exe / attach to Local Applicati

Postby Anton Katilin » Thu Jun 01, 2017 2:14 pm

Did you install the profiler with Windows installer?

Does the process you want to profile run under the same user?
Anton Katilin
 
Posts: 5568
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

cron