-agentpath:[full path to JProfiler library]=[agent parameters]or, without agent parameters:
-agentpath:[full path to JProfiler library]
For IBM JVMs, you also have to add the VM parameter -Xshareclasses:none.
The place holders [path to JProfiler library] and [agent parameters] are to be replaced by:
You have to specify the absolute path to the native JProfiler agent library. The path to the agent library depends on the operating system and the architecture of the JVM (not the architecture of the operating system). All agent libraries listed below are relative to the JProfiler installation directory:
Windows, 32-bit | bin\windows\jprofilerti.dll |
Windows, 64-bit | bin\windows-x64\jprofilerti.dll |
Linux x86, 32-bit | bin/linux-x86/libjprofilerti.so |
Linux x86, 64-bit | bin/linux-x64/libjprofilerti.so |
Linux PPC, 32-bit | bin/linux-ppc/libjprofilerti.so |
Linux PPC64, 64-bit | bin/linux-ppc64/libjprofilerti.so |
Solaris SPARC, 32-bit | bin/solaris-sparc/libjprofilerti.so |
Solaris SPARC, 64-bit | bin/solaris-sparcv9/libjprofilerti.so |
Solaris x86, 32-bit | bin/solaris-x86/libjprofilerti.so |
Solaris x86, 64-bit | bin/solaris-x64/libjprofilerti.so |
Mac OS, 32 and 64-bit | bin/macos/libjprofilerti.jnilib |
HP-UX PA_RISC, 32-bit | bin/hpux-parisc/libjprofilerti.sl |
HP-UX PA_RISC, 64-bit | bin/hpux-parisc64/libjprofilerti.sl |
HP-UX IA64, 32-bit | bin/hpux-ia64n/libjprofilerti.so |
HP-UX IA64, 64-bit | bin/hpux-ia64w/libjprofilerti.so |
AIX, 32-bit | bin/aix-ppc/libjprofilerti.so |
AIX, 64-bit | bin/aix-ppc64/libjprofilerti.so |
FreeBSD x86, 32-bit | bin/freebsd-x86/libjprofilerti.so |
FreeBSD x86, 64-bit | bin/freebsd-x64/libjprofilerti.so |
If you immediately attach with a remote session from the JProfiler GUI on the default port, you do not have to specify any agent parameters. For non-default ports, deferred profiling and offline profiling, the following agent parameters are available:
Multiple parameters are separated by commas such as in
"offline,id=172,config=~/.jprofiler8/config.xml".
In addition to the standard parameters above, there are the following trouble-shooting and debugging parameters: