Simple Jprofiler setup not working

二次信任 提交于 2019-12-04 16:39:43

Yes. you need something like this (for OS X)

export JAVA_OPTS="-agentlib:jprofilerti=port=8849  \
   -Xbootclasspath/a:/Applications/jprofiler5/bin/agent.jar"

export DYLD_LIBRARY_PATH=/Applications/jprofiler5/bin/macos

Usually when you configure a new session through the wizard in JProfiler, it will tell you those exact parameters that you need to put in.

For me this wizard is StartCenter -> New Session , then select "New remote integration". This will then ask local/remote , startup mode, jvm type, profiling port and on page 6 says "Perform required modifications" and it lists those.

Alternatively you can select "Integration wizard" from the menu bar.

Madhu Cheepati

Step 1: In Linux machine open .bash_profile file from /root directory. Enter jprofiller location (using below command export) in enter code here.bash_profile file

export LD_LIBRARY_PATH=/dsvol/jprofiler6/bin/linux-x86

Step 2: Go into Tomcat installation directory. Open catalina.sh file from bin folder Enter the below details in catalina.sh file (only red color information and black color you can find by default in catalina.sh file)

export JPROFILER_HOME
JAVA_OPTS="-Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -agentpath:/opt/Performance/jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849 $CATALINA_OPTS"

Step 3: Start the server from bin folder by executing the starup.sh command

The easiest way to configure would be to follow the wizards provided by JProfiler which is described here, there are also non-GUI wizards which are very handy:

http://resources.ej-technologies.com/jprofiler/help/doc/indexRedirect.html?http&&&resources.ej-technologies.com/jprofiler/help/doc/sessions/remote.html

For example for Tomcat the following is automatically inserted into Tomcat's startup.sh script, which means you don't have to guess:


# The following lines have been added by the
# application server integration wizard of JProfiler

CATALINA_OPTS="-agentpath:/local/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849,nowait $CATALINA_OPTS"
export CATALINA_OPTS

# end of modifications

exec "$PRGDIR"/"$EXECUTABLE" run "$@"

Good luck

-agentpath:/Applications/JProfiler.app/Contents/Resources/app/bin/macos/libjprofilerti.jnilib  -Xbootclasspath/a:/Applications/JProfiler.app/Contents/Resources/app/bin/agent.jar

This is working for me, JProfiler 9.1.1; OSX 10.11.3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!