Offline Data Recording

Questions about YourKit Java Profiler
Locked
Puggs
Posts: 1
Joined: Tue Jan 13, 2015 4:39 am

Offline Data Recording

Post by Puggs »

Hi

We have a production server that after a random number of days juts starts using 100% of all 8 CPUs.

Unfortunately it usually does it when I am limited to a poor internet connection so can not connect and get data form the profiler.

Is there a way of recording a log file on the server and then opening that in YourKit?

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

Re: Offline Data Recording

Post by Anton Katilin »

Hi Puggs

Yes, you can use the profiler without the UI.

Different options are available:

Command line tool:
http://www.yourkit.com/docs/java/help/c ... e_tool.jsp

API:
http://www.yourkit.com/docs/java/help/api.jsp

Triggers (in particular, you may be interested in "How to specify triggers on startup"):
http://www.yourkit.com/docs/java/help/triggers.jsp

Startup options to initiate profiling and instruct the profiler to capture a snapshot when the application exits:
http://www.yourkit.com/docs/java/help/s ... ptions.jsp

Best regards,
Anton
Locked