在unix上使用jprofiler监控问题
最近系统总出现内存占用满的问题,听说jprofiler可以查看内存占用情况,于是从网上下了个;
客户端及unix上都安装好了,但在unix上配置完了后,整么也连不上:
客户端提示信息如下:
Integration type: [Generic application]
Selected JVM: Sun 1.4.2 (hotspot)
Startup mode: Wait for JProfiler GUI
(1) Please insert
-Xrunjprofiler:port=8849 -Xbootclasspath/a:/export/home/eoms/jprofiler5/bin/agent.jar
into the start command of your remote application right after the java command.
(2) Please add
/export/home/eoms/jprofiler5/bin/solaris-sparc
to the environment variable LD_LIBRARY_PATH.
A remote session named Remote application on 192.168.182.6 will be created that connects to a running instance of the remote application that is started with the modified start command.
于是unix中相关配置如下:
修改/etc/profile文件,在最后加入:
JPROFILER_HOME=/export/home/eoms/jprofiler5/bin/solaris-sparc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME
修改catalina.sh文件:
CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS -Xrunjprofiler:port=8849 -Xbootclasspath/a:/export/home/eoms/jprofiler5/bin/agent.jar"
启用jprofile报错:
Unrecognized option: -agentlib:jprofilerti=port=8849
Could not create the Java virtual machine.
Unrecognized option: -agentlib:jprofilerti=port=8849
Could not create the Java virtual machine.
Unrecognized option: -agentlib:-Xrunjprofiler:port=8849
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not find -Xrun library: libjprofiler.so
请大家帮帮忙!