Profiling your Java applications with JProfiler

  • Download JProfiler v5.2.1 from here.
  • Read build-in help Reference → Managing Sessions → Remote Session Invocation Table. System should be able to find jprofilerti.dll in system path. In my case run sequence is the following:
    set PATH=%PATH%;%Applications%\JProfiler\bin\windows
    set VM_OPT=-Xmx1200m -Xbootclasspath/a:%Applications%\JProfiler\bin\agent.jar -agentlib:jprofilerti
     
    call java %VM_OPT% -jar lib/root.jar

    or for Linux:

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/jprofiler/linux-x86
     
    VM_OPT="-Xmx1200m -Xbootclasspath/a:$HOME/jprofiler/agent.jar -agentlib:jprofilerti"
     
    java $VM_OPT -jar lib/root.jar $*
  • Other options:
    -agentlib:jprofilerti=port=8849 to specify the port
    -agentlib:jprofilerti=nowait,id=100,config=/work/config.xml to run in nowait mode (note: config.xml should contain the license information)

software/jprofiler.txt · Last modified: 2009/09/30 23:15 by dmitry
 
 
Recent changes RSS feed Driven by DokuWiki