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.

How to change where memory snap-shots are saved?

Moderators: Vladimir Kondratyev, Anton Katilin

How to change where memory snap-shots are saved?

Postby janekdb » Thu Apr 14, 2005 12:25 pm

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?
janekdb
 
Posts: 2
Joined: Thu Apr 14, 2005 12:19 pm

dir=/blah/blah/blah

Postby Head » Tue Apr 19, 2005 8:49 pm

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.
Head
 
Posts: 4
Joined: Mon Mar 28, 2005 9:25 pm

Postby janekdb » Wed Apr 20, 2005 2:59 pm

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

JAVA_OPTS=${JAVA_OPTS}" -agentlib:yjpagent=dir=/var/spool/yjp"
janekdb
 
Posts: 2
Joined: Thu Apr 14, 2005 12:19 pm


Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest

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.