jprobe 安装后感

2010-02-26  吴一满 

前段时间 时间安装 Jprofile  总是报错 后来改用jprobe 当时装 的是Jprobe 8.2 
配置后使用成功。
春节后 使用版过期 ,重新装 装的是最新的版本8.3 结果报错 和当初装Jprofile 一样错误:Could not find agent library in absolute path, 晕倒。
后来在它的release note 看到solution :
 
Older versions of Linux may be affected by library compatibility issues when profiling applications with JProbe. The following error message may occur on Red Hat Enterprise Linux 4.x platforms (or Linux systems offering C and C++ libraries that predate GCC 4.1.1):

Could not find agent library in absolute path: [JPROBE_HOME]/bin/ia32/libjprobe.so

Where [JPROBE_HOME] is replaced with the path to the JProbe installation on the system.

Workarounds:

To work around this issue, you need to perform one of the following three options:

1. Rename or remove the existing ${JPROBE_HOME}/bin/ia32/libstdc++.so.6 library.

This causes the system to choose an existing C++ library instead of the one packaged with JProbe.

2. Set LD_PRELOAD=/usr/lib/libstdc++.so.6 prior to launching the JProbe Engine.

This causes the system to attempt using an existing C++ library instead of the one packaged with JProbe.

3. Install the newer C/C++ library dependencies.

This typically involves upgrading gcc on the Linux system in question.

 

然后我删除 libstdc++.so.6, 这个error 就再没有出现。

终于用上了Jprobe 了。

估计Jprofile 也可以用这个方法搞定

400°/3967 人阅读/4 条评论 发表评论

金鑫  2010-02-27

很详细的记录,赞


金鑫  2010-02-27

LZ是否还有后续使用的文章呢?


欧洁  2010-02-27

C++ library 不兼容导致


王恩建  2010-02-27

之前有忘了谁也在测试窝问类似的问题,估计楼主的方法能够解决。


登录 后发表评论