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.

App runs on JVM which doesn't support attach mechanism

Moderators: Vladimir Kondratyev, Anton Katilin

App runs on JVM which doesn't support attach mechanism

Postby niemar » Fri Oct 20, 2017 11:11 am

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
niemar
 
Posts: 1
Joined: Fri Oct 20, 2017 10:56 am

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

Postby Anton Katilin » Sun Oct 22, 2017 10:32 am

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


Return to Java Profiler

Who is online

Users browsing this forum: v.romantsov and 19 guests

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.