Unable to start Profiler.exe / attach to Local Application

Questions about YourKit Java Profiler
Post Reply
JnS
Posts: 2
Joined: Mon May 15, 2017 7:48 pm

Unable to start Profiler.exe / attach to Local Application

Post by JnS »

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
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

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

Post by Anton Katilin »

Version 2016.02 is not supported. Please use the latest version 2017.02:
https://www.yourkit.com/download
JnS
Posts: 2
Joined: Mon May 15, 2017 7:48 pm

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

Post by JnS »

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".
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

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

Post by Anton Katilin »

Did you install the profiler with Windows installer?

Does the process you want to profile run under the same user?
Post Reply