-Xrunjprofiler JVM argument:
offline as a library parameter enables offline profiling.
In this case, a connection with JProfiler's GUI is not possible.
id=nnnn. Your settings in the
profiling settings dialog
are used for offline profiling. The session ID can be seen in the top right corner
of the application settings dialog.
config={path to config.xml}. The config file is located in
the .jprofiler directory in your user home directory (on Windows, the user home
directory is typically c:\Documents and Settings\$USER).
If you profile on a machine where JProfiler is not installed, you will need to transfer the contents of the bin/{your platform} directory as well as the JAR file bin/agent.jar and the config file {User home directory}/.jprofiler3/config.xml.
Example:
java -Xint "-Xrunjprofiler:offline,id=109,config=C:\Documents and Settings\bob\.jprofiler3\config.xml"
"-Xbootclasspath/a:C:\Program Files\JProfiler\bin\agent.jar"
-classpath myapp.jar com.mycorp.MyApp
Please study the remote session invocation table
to generate the correct invocation for your JVM. Also, please don't forget that the platform-specific
native library path has to be modified, just like for
remote profiling.