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.

Best Way to Profile Remote App

Moderators: Vladimir Kondratyev, Anton Katilin

Best Way to Profile Remote App

Postby sdoca » Tue Aug 04, 2015 5:49 pm


I have been reading through the manual to see if I could figure this out on my own, but am stuck. What we would like to do is set up a profiler on a remote server and record CPU, memory, thread usage for a specified time period (e.g. midnight to 6:oo a.m.). Ideally, we can turn the profiler on, let it run, turn it off and then review the data. Over the course of a few days, we would collect the same types of data over several periods and as we tweak different settings (memory, JVM memory, thread pool sizes) see what gets us the best performance.

I think the best way to set this up is to use the CLI tool.

Can somebody point me in the right direction?

Posts: 1
Joined: Tue Aug 04, 2015 5:39 pm

Re: Best Way to Profile Remote App

Postby Anton Katilin » Thu Aug 06, 2015 11:15 am

Hello sdoca

First, you should enable profiling on the remote machine by either using the wizard
https://www.yourkit.com/docs/java/help/ ... remote.jsp
or by manually specifying appropriate -agentpath JVM option:

I think the best way to set this up is to use the CLI tool.

If you mean the command line tool, then yes, you can use it for this purpose:
https://www.yourkit.com/docs/java/help/ ... e_tool.jsp

Alternatively, you can directly call the profiler API, class Controller:

Actually, the command line tool is just a frontend to a limited subset of Controller functionality.

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

Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 18 guests