复制一个startup.sh,名字为startup_jpro.sh
修改,在最后的 exec "$PRGDIR"/"$EXECUTABLE" start "$@" 前面加如下内容:
[code] # The following lines have been added by the # application server integration wizard of JProfiler
CATALINA_OPTS="-agentpath:/opt/jprofiler/bin/linux-x64/libjprofilerti.so=port=8849,nowait $CATALINA_OPTS" export CATALINA_OPTS
# end of modifications [code]
注意其中的/opt/jprofiler,是你放jpro的lib包的地方。
然后用Jprofiler的向导创建remote的session即可。 向导提示的很详细。
|