~/.yjp/ide.txt stores *resolved* paths to libyjpagent.so

Questions about YourKit Java Profiler
Post Reply
Andrei.L
Posts: 35
Joined: Thu Mar 12, 2009 5:23 am

~/.yjp/ide.txt stores *resolved* paths to libyjpagent.so

Post by Andrei.L »

Hi,

we are using yourkit since ever but now after update to YourKit Java Profiler 2013 build 13074 we found that ~/.yjp/ide.txt file stores *fully resolved* path to libyjpagent.so.

Unfortunately we install yourkit on shared network folder which is automounted, so that the real path differs from the original one (it's a link).

So if we use yourkit from /net/socadmin/data/rhel5/yourkit/current/bin/linux-x86-64/libyjpagent.so it resolves the link to /.automount/socadmin/root/data/rhel5/yourkit/current/bin/linux-x86-32/libyjpagent.so and startup on the next day doesn't work because this location is automounted only if using original path.

Below the files we see in yourkit config: the old "ide-integration.config" one with the "right" path and the new "ide.txt" with the wrong path:

cat ~/.yjp/ide-integration.config
#Thu Feb 07 10:16:14 CET 2013
should-ask-for-bitness=true
agent-path=/net/socadmin/data/rhel5/yourkit/current/bin/linux-x86-64/libyjpagent.so

cat ~/.yjp/ide.txt
agent-32=/.automount/socadmin/root/data/rhel5/yourkit/current/bin/linux-x86-32/libyjpagent.so
agent-64=/.automount/socadmin/root/data/rhel5/yourkit/current/bin/linux-x86-64/libyjpagent.so
profiler-dir=/.automount/socadmin/root/data/rhel5/yourkit/current
should-ask-for-bitness=true
default-64-bit=true

We don't know where this ide.txt is created, but It would be great if this file could just keep the original path as entered by user.

Regards,
Andrey
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: ~/.yjp/ide.txt stores *resolved* paths to libyjpagent.so

Post by Anton Katilin »

Hello Andrey

~/.yjp/ide.txt intentionally stores resolved paths. This file should not be edited by users. Instead, this file is generated as the result of applying the "Integrate with IDE" action. The profiler automatically offers to re-run it each time a user runs a new build, ensuring that each user always has appropriate settings.

Furthermore, there is a chance you're violating the EULA which prohibits to "install and run the Software from a network server":
http://www.yourkit.com/purchase/license.html

Best regards,
Anton
Andrei.L
Posts: 35
Joined: Thu Mar 12, 2009 5:23 am

Re: ~/.yjp/ide.txt stores *resolved* paths to libyjpagent.so

Post by Andrei.L »

Anton Katilin wrote:Hello Andrey
...
Furthermore, there is a chance you're violating the EULA which prohibits to "install and run the Software from a network server":
http://www.yourkit.com/purchase/license.html

Best regards,
Anton
Hmm, we have 5 floating licenses, how else we should install the software on 400 workstations??
I will check this next week.
Thanks for fast response!
Andrey
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: ~/.yjp/ide.txt stores *resolved* paths to libyjpagent.so

Post by Anton Katilin »

It's assumed that the profiler is installed locally on each workstation even when a floating license permitting unlimited number of simultaneously installed copies is used, and ide.txt may not be the only feature for which this assumption matters.

Installing the profiler on multiple workstations can be performed by using configuration management software, for example, like suggested here http://askubuntu.com/questions/146432/i ... le-systems
Post Reply