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!
Best Way to Profile Remote App
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Best Way to Profile Remote App
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
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
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
If you mean the command line tool, then yes, you can use it for this purpose:I think the best way to set this up is to use the CLI tool.
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