Change Snapshot location

Questions about YourKit Java Profiler
Locked
jensdon
Posts: 1
Joined: Tue Nov 07, 2023 8:29 am

Change Snapshot location

Post by jensdon »

How can I change the snapshot location with the dir parameter?

Tried something like this but it doesnt work:

Code: Select all

java -jar yjp-controller-api-redist.jar --host=localhost --port=10002 capture-performance-snapshot dir=/tmp/yourkit/
Vladimir Kondratyev
Posts: 1660
Joined: Tue Aug 10, 2004 7:52 pm

Re: Change Snapshot location

Post by Vladimir Kondratyev »

You cannot change the snapshot directory via the parameters of yjp-controller-api-redist.jar, as this would create a security flaw. However, there are alternative methods available: https://www.yourkit.com/docs/java-profi ... ot_dir.jsp

Please note that the command line tool yjp-controller-api-redist.jar is scheduled for removal, and we recommend switching to the HTTP API:
https://www.yourkit.com/docs/java-profi ... tp_api.jsp

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
arnoldmatt
Posts: 3
Joined: Fri May 24, 2024 2:04 pm

Re: Change Snapshot location

Post by arnoldmatt »

Thanks Vladimir! Sounds like the HTTP API is the way to go for future captures.
Locked