1

I am trying to use the classmexer to profile some instance memory runtime.I have set the following as Generic JVM arguments in Webshpere 6.1:

-javaagent:c:/Downloads/classmexer.jar

Following exception is thrown:

Caused by: java.lang.UnsatisfiedLinkError: sun/instrument/InstrumentationImpl.getObjectSize0(Ljava/lang/Object;)J at sun.instrument.InstrumentationImpl.getObjectSize(InstrumentationImpl.java:116) at com.javamex.classmexer.MemoryUtil.deepMemoryUsageOf0(MemoryUtil.java:178)

It works fine standalone though.

Any suggestions?

4

1 回答 1

0

您必须将依赖项和 classmexer 复制到共享库目录,可能是 AppServer/lib/ext。抛出异常是因为 WAS 没有从您的 shell 中设置的 PATH 中搜索所需的所有内容。这就是为什么它仍然可以独立运行的原因。

于 2011-09-18T08:35:01.937 回答