jprofiler远程监控配置问题

解决:ErroroccurredduringinitializationofVM

Couldnotfindagentlibraryonthelibrarypathorinthelocaldirectory:jprofilerti

查找资料后,发现是版本依赖的问题,查看命令如下:

a、ldd/usr/jprofiler5/bin/linux-x86/libjprofilerti.so

输出信息:

libstdc++.so.6=>/usr/lib64/libstdc++.so.6(0x00002b655fe72000)

libz.so.1=>/usr/lib64/libz.so.1(0x00002b6560172000)

libexpat.so.1=>notfound

libpthread.so.0=>/lib64/libpthread.so.0(0x00002b6560387000)

libc.so.6=>/lib64/libc.so.6(0x00002b65605a2000)

libm.so.6=>/lib64/libm.so.6(0x00002b65608f8000)

libgcc_s.so.1=>/lib64/libgcc_s.so.1(0x00002b6560b7c000)

/lib64/ld-linux-x86-64.so.2(0x00000035daa00000)

b、ldd/usr/jprofiler5/bin/linux-x86/libjprofilerti.so

输出信息:

linux-gate.so.1=>(0xffffe000)

libstdc++-libc6.2-2.so.3=>notfound

libz.so.1=>/usr/lib/libz.so.1(0xf7e41000)

libexpat.so.0=>/lib/libexpat.so.0(0xf7e20000)

libpthread.so.0=>/lib/libpthread.so.0(0xf7e09000)

libc.so.6=>/lib/libc.so.6(0xf7cc4000)

/lib/ld-linux.so.2(0x002e4000)

解决办法:将没有找到的这两个文件,分别从jprofiler的/bin/linux-x86、bin/linux-x86/下的libexpat.so.1、libstdc++-libc6.2-2.so.3拷贝到/usr/lib、/usr/lib64目录下

相关推荐