WAS6.1 java.lang.UnsatisfiedLinkError:sun/instrument/InstrumentationImpl.getObjectSize0
我正在尝试使用 classmexer 来分析某些实例内存运行时。我已将以下内容设置为 Webshpere 6.1 中的通用 JVM 参数:
-javaagent:c:/Downloads/classmexer.jar
引发以下异常:
引起:java.lang。 UnsatisfiedLinkError: sun/instrument/InstrumentationImpl.getObjectSize0(Ljava/lang/Object;)J 在 sun.instrument.InstrumentationImpl.getObjectSize(InstrumentationImpl.java:116) 在 com.javamex.classmexer.MemoryUtil.deepMemoryUsageOf0(MemoryUtil.java:178)
它独立工作正常。
有什么建议吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将依赖项和 classmexer 复制到共享库目录,可能是 AppServer/lib/ext。抛出异常是因为 WAS 不会从 shell 中设置的 PATH 中搜索所需的所有内容。这就是为什么它仍然可以独立工作。
You have to copy the dependencies and classmexer to shared library directory, probably AppServer/lib/ext. The Exception is thrown because WAS doesn't search for everything required from the PATH set in your shell. That is why it still works as standalone.