How to change where memory snap-shots are saved?

Questions about YourKit Java Profiler
Post Reply
janekdb
Posts: 2
Joined: Thu Apr 14, 2005 12:19 pm

How to change where memory snap-shots are saved?

Post by janekdb »

YK 4.0 Build 552.

When I get YK to save a memory snapshot it wants to save it to /usr/share/tomcat-4 but this directory does not allow the snapshot to be written because I do not allow the tomcat user to wtite there. How can I control where memory snapshots are written to?
Head
Posts: 4
Joined: Mon Mar 28, 2005 9:25 pm

dir=/blah/blah/blah

Post by Head »

Look in the docs that come with yourkit under "Enabling profiling manually". One of the things you can set is the directory. Using tomcat you can add this to the startup_with_yjp.sh script on the -Xrunyjpagent line.
janekdb
Posts: 2
Joined: Thu Apr 14, 2005 12:19 pm

Post by janekdb »

Thanks. I added this to my applications startup script and it works:

JAVA_OPTS=${JAVA_OPTS}" -agentlib:yjpagent=dir=/var/spool/yjp"
Post Reply