Best Way to Profile Remote App

Questions about YourKit Java Profiler
Post Reply
sdoca
Posts: 1
Joined: Tue Aug 04, 2015 5:39 pm

Best Way to Profile Remote App

Post by sdoca »

Hi,

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?

Thanks!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Best Way to Profile Remote App

Post by Anton Katilin »

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:
https://www.yourkit.com/docs/java/help/agent.jsp
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:
https://www.yourkit.com/docs/java/help/api.jsp

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

Best regards,
Anton
Post Reply