Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Adding Startup Options when Starting YourKit

Moderators: Vladimir Kondratyev, Anton Katilin

Adding Startup Options when Starting YourKit

Postby NewToYourKit » Mon Nov 10, 2014 6:51 pm

Hi Everyone, I am new to YourKit and just started using it. I started YourKit by running the yjp.sh in bin. The application started and I was able to attach my Java process.

However, it only buffers up to 1 hour of profile. I looked up that there's a startup option telemetrylimit to increase the number of hours for the buffer. But it doesn't indicate how I may add this flag when running with yjp.sh.

Just wonder how may I add startup options when I am running with the yjp.sh? I looked in the JAVA_OPTS but don't think that's the right place to add it.

Any help, pointer or tips will be helpful. Thank you very very much. Have a great day. :)
NewToYourKit
 
Posts: 4
Joined: Mon Nov 10, 2014 6:15 pm

Re: Adding Startup Options when Starting YourKit

Postby Anton Katilin » Mon Nov 10, 2014 7:57 pm

Hi,

I'm afraid I don't understand your question.

Startup options are applicable to profiled applications, yjp.sh starts the profiler UI. These are different things. The startup options should not be applied to yjp.sh unless you plan to profiler the profiler.
http://www.yourkit.com/docs/java/help/s ... ptions.jsp

Do you want to apply the options when attaching the profiler to already running JVM (the attach mode)?
http://www.yourkit.com/docs/java/help/attach_agent.jsp
If yes please use a popup menu action in the list of locally running applications.

Best regards,
Anton
Anton Katilin
 
Posts: 5675
Joined: Wed Aug 11, 2004 8:37 am

Re: Adding Startup Options when Starting YourKit

Postby NewToYourKit » Mon Nov 10, 2014 8:15 pm

Thanks Anton for your response. Yes I want to do the later. I ran yjp.sh, then use the UI to attach to a Java process but the profiling only tracks up to 1 hour. I wonder in the UI where I can adjust the buffer to track at least for the past 5 hours. Anyway of doing that in the UI? Thanks very much for your time and help again :)
NewToYourKit
 
Posts: 4
Joined: Mon Nov 10, 2014 6:15 pm

Re: Adding Startup Options when Starting YourKit

Postby NewToYourKit » Mon Nov 10, 2014 8:29 pm

I just looked through each UI option on top of the attached JVM process. There's an icon (fourth one from the left) is for disabling and enabling the telemetry. However, I believe I need an option to specify the telemetry buffer to be 5 hours instead of 1 hour? Just curious how may I do that in the UI? Thanks very much.
NewToYourKit
 
Posts: 4
Joined: Mon Nov 10, 2014 6:15 pm

Re: Adding Startup Options when Starting YourKit

Postby NewToYourKit » Mon Nov 10, 2014 8:35 pm

Based on instructions on the website, it seems telemetryperiod=<milliseconds> is the only option to extend the buffer. But if show, where do I specify it? That goes back to my first post, I start the application with the command "./yjp.sh". But where do I specific this telemetryperiod=<milliseconds>, as it needs to be configured before starting the profile I believe.
NewToYourKit
 
Posts: 4
Joined: Mon Nov 10, 2014 6:15 pm

Re: Adding Startup Options when Starting YourKit

Postby Anton Katilin » Tue Nov 11, 2014 8:27 am

First, you need "telemetrylimit", not "telemetryperiod":
http://www.yourkit.com/docs/java/help/s ... metrylimit

Second, if you use the attach mode, you need to specify the options when you attach.
As I wrote in my first comment, you should perform attach by using a popup menu item which offers an ability to specify startup options.
Anton Katilin
 
Posts: 5675
Joined: Wed Aug 11, 2004 8:37 am

Re: Adding Startup Options when Starting YourKit

Postby Anton Katilin » Tue Nov 11, 2014 8:30 am

You should right click the application in this list and use "Attach to application (with custom startup options)":
Image
Anton Katilin
 
Posts: 5675
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 12 guests