Unable to validate remote java JVM

Questions about YourKit Java Profiler
Locked
bwood
Posts: 3
Joined: Thu Dec 21, 2023 4:37 pm

Unable to validate remote java JVM

Post by bwood »

I'm attempting to create a remote profile session to a linux machine. I've confirmed the path to java on that machine via which java. I've set that location as the path to the 64-bit Java on the remote host in the connection settings.
JVM details for that instance are:
java version "1.8.0_341"
Java(TM) SE Runtime Environment (build 8.1.089)
SAP Java Server VM (build 8.1.089 11.0.16+000, Jul 11 2022 09:35:43 - 81_REL - optU - linux amd64 - 6 - bas2:334206 (mixed mode))

However, when I attempt to test the connection, I get the error "Invalid 64-bit Java specified: Incorrect bitness, i.e. not a 64-bit JVM. If I ignore the error and connect anyway, YourKit finds no applications on the server though it's certainly running.

Does the JVM on that remote server need to be started in a particular way?
Vladimir Kondratyev
Posts: 1659
Joined: Tue Aug 10, 2004 7:52 pm

Re: Unable to validate remote java JVM

Post by Vladimir Kondratyev »

Path to JVM is optional. Does profiler find your apps when no path is specified?
bwood
Posts: 3
Joined: Thu Dec 21, 2023 4:37 pm

Re: Unable to validate remote java JVM

Post by bwood »

If no path is specified, testing connection gives error "No suitable Java in PATH"
bwood
Posts: 3
Joined: Thu Dec 21, 2023 4:37 pm

Re: Unable to validate remote java JVM

Post by bwood »

Sorry, should've mentioned that PATH does include the valid path to the running JVM
Vladimir Kondratyev
Posts: 1659
Joined: Tue Aug 10, 2004 7:52 pm

Re: Unable to validate remote java JVM

Post by Vladimir Kondratyev »

Please send to support@yourkit.com the following:

1) Screenshot of paths that are entered in the wizard.

2) Full output of "java -version" command for each specified path (32-bit and 64-bit)

3) Delete all files in ~/.yjp/log directory; start profiler UI and try to search JVM on the remote host. When nothing is discovered, please send us all the created UI logs from ~/.yjp/logs directory.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
Posts: 1659
Joined: Tue Aug 10, 2004 7:52 pm

Re: Unable to validate remote java JVM

Post by Vladimir Kondratyev »

We have just released version 2023.9.104 which should fix the issue. Please give it a try and confirm that the problem is gone.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Locked