YourKit Manually Configure Target JVM for Remote Profiling: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 27: Line 27:


  java ... -agentpath:<''profiler-agent-path''>=alloceach=10,allocsizelimit=4096 ...
  java ... -agentpath:<''profiler-agent-path''>=alloceach=10,allocsizelimit=4096 ...
Startup options: {{External|https://www.yourkit.com/docs/java/help/startup_options.jsp}}

Revision as of 00:22, 9 June 2018

External

Internal

Overview

Start the JVM with the following configuration:

java ... -agentpath:<profiler-agent-path>[=options] ...

Linux example

java ... -agentpath:<profiler-directory>/bin/linux-x86-64/libyjpagent.so

To check that Java can load the profiler agent, run:

java -agentpath:<profiler-agent-path>=help

Options

Example:

java ... -agentpath:<profiler-agent-path>=alloceach=10,allocsizelimit=4096 ...

Startup options:

https://www.yourkit.com/docs/java/help/startup_options.jsp