在unix上使用jprofiler监控问题

snsy543 2008-06-25 04:46:29
最近系统总出现内存占用满的问题,听说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


请大家帮帮忙!

...全文
319 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
tangjinyu 2008-07-29
  • 打赏
  • 举报
回复
我在solaris上运行时,也遇到无法启动jvm,提示‘退出,核心陷阱’,后根据楼主的提示,修改了java命令后的一些参数,终于可以启起来了。
谢谢

23,110

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧