App runs on JVM which doesn't support attach mechanism

Questions about YourKit Java Profiler
Post Reply
niemar
Posts: 1
Joined: Fri Oct 20, 2017 10:56 am

App runs on JVM which doesn't support attach mechanism

Post by niemar »

Hello,
I am trying to profile my webapp which runs inside a tomcat server. I have followed all procedures in configuring my profiler to work. but i always end up with the same issue. Attach is not supported by the JVM.
Here is a log file generated:


17.02-66* 0.003: Log file: C:\Users\localadmin\.yjp\log\Main-9584.log
17.02-66* 0.004: Command line:
C:\Program Files\YourKit Java Profiler 2017.02-b66\bin\\..\jre\bin\java.exe
-cp
C:\Program Files\YourKit Java Profiler 2017.02-b66\bin\\..\lib\yjp.jar
com.yourkit.Main
-attach
17.02-66* 0.004: Executable: C:\Program Files\YourKit Java Profiler 2017.02-b66\jre\bin\java.exe
17.02-66* 0.004: Windows Server 2008 R2; version 6.1.7601; 32-bit process
17.02-66* 0.005: hid: 16022D994943983WX9WX0X4UZ351W894YW411W42ZV 64-bit machine
17.02-66* 0.005: Today is 20171020
17.02-66* 0.005: full_build_stamp: 2017.02.66 201709051525
17.02-66* 0.005: Agent library path: C:\Program Files\YourKit Java Profiler 2017.02-b66\bin\win32\yjpagent.dll
17.02-66* 0.005: getTimeNsInfo: "PerformanceFrequency=14318180"
17.02-66* 0.005: shmem: Global\YOURKIT SHARE G: OK, isFirst=0
17.02-66* 0.005: shmem: Local\YOURKIT SHARE L: OK, isFirst=0
17.02-66* 0.008: shmem: Global\YOURKIT SHARE2 G: OK, isFirst=0
17.02-66* 0.008: shmem: Local\YOURKIT SHARE2 L: OK, isFirst=0
17.02-66* 0.012: shmem: Global\YOURKIT SHARE5 G: OK, isFirst=0
17.02-66* 0.012: shmem: Local\YOURKIT SHARE5 L: OK, isFirst=0
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: App runs on JVM which doesn't support attach mechanism

Post by Anton Katilin »

What is the exact error message?

Anyway, if the attach approach doesn't work, start Tomcat with the profiler agent instead.
See https://www.yourkit.com/docs/java/help/ ... remote.jsp
or https://www.yourkit.com/docs/java/help/ ... filing.jsp
Post Reply