注释错误:JVM:尝试检索Java代理附件失败 [英] Notes error: JVM: Attempt to retrieve Java agent attachments failed

查看:178
本文介绍了注释错误:JVM:尝试检索Java代理附件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用JDBC连接到POSTGREE数据库时遇到问题. Lotus在控制台上出现以下错误:

I'm having a problem when using a JDBC connection to POSTGREE database. Lotus appears on the console the following error:

16/02/2012 15:34:36   Agent  error: JVMDUMP006I Processando Evento de Dump "systhrow",  detalhe "java/lang/OutOfMemoryError" - Aguarde. 
16/02/2012 15:34:36   Agent  error: JVMDUMP032I  
16/02/2012 15:34:36   Agent  error: JVMDUMP010I Snap Dump gravado em /local/notesdata/Snap.20120216.153437.18971.0001.trc 
16/02/2012 15:34:36   Agent  error: JVMDUMP032I  
16/02/2012 15:34:36   Agent  error: JVMDUMP010I Heap Dump gravado em /local/notesdata/heapdump.20120216.153437.18971.0002.phd 
16/02/2012 15:34:36   Agent  error: JVMDUMP032I  
16/02/2012 15:34:37   Agent  error: JVMDUMP010I Java Dump gravado em /local/notesdata/javacore.20120216.153437.18971.0003.txt 
16/02/2012 15:34:37   Agent  error: JVMDUMP013I Evento de Dump Processado "systhrow", detalhe "java/lang/OutOfMemoryError". 
16/02/2012 15:34:37   Agent  error: Exce∑∫∑˙o no encadeamento "Thread-60"
16/02/2012 15:34:37   Agent  error: java.lang.OutOfMemoryError
16/02/2012 15:34:37   Agent  error:  at 
16/02/2012 15:34:37   Agent  error: java.util.Arrays
16/02/2012 15:34:37   Agent  error: .
16/02/2012 15:34:37   Agent  error: copyOfRange
16/02/2012 15:34:37   Agent  error: (
16/02/2012 15:34:37   Agent  error: Arrays.java
16/02/2012 15:34:37   Agent  error: :
16/02/2012 15:34:37   Agent  error: 4
16/02/2012 15:34:37   Agent  error: 0
16/02/2012 15:34:37   Agent  error: 5
16/02/2012 15:34:37   Agent  error: 4
16/02/2012 15:34:37   Agent  error: )
16/02/2012 15:34:37   Agent  error:  at 
16/02/2012 15:34:37   Agent  error: java.util.Arrays
16/02/2012 15:34:37   Agent  error: .
16/02/2012 15:34:37   Agent  error: copyOf
16/02/2012 15:34:37   Agent  error: (
16/02/2012 15:34:37   Agent  error: Arrays.java
16/02/2012 15:34:37   Agent  error: :
16/02/2012 15:34:37   Agent  error: 3
16/02/2012 15:34:37   Agent  error: 7
16/02/2012 15:34:37   Agent  error: 8
16/02/2012 15:34:37   Agent  error: 6
16/02/2012 15:34:37   Agent  error: )
16/02/2012 15:34:37   Agent  error:  at 
16/02/2012 15:34:37   Agent  error: java.io.ByteArrayOutputStream
16/02/2012 15:34:37   Agent  error: .
16/02/2012 15:34:37   Agent  error: write
16/02/2012 15:34:37   Agent  error: (
16/02/2012 15:34:37   Agent  error: ByteArrayOutputStream.java
16/02/2012 15:34:37   Agent  error: :
16/02/2012 15:34:37   Agent  error: 9
16/02/2012 15:34:37   Agent  error: 3
16/02/2012 15:34:37   Agent  error: )
16/02/2012 15:34:37   Agent  error:  at 
16/02/2012 15:34:37   Agent  error: lotus.domino.ClassHashtable
16/02/2012 15:34:37   Agent  error: .
16/02/2012 15:34:37   Agent  error: explodeArchive
16/02/2012 15:34:37   Agent  error: (Unknown Source)
16/02/2012 15:34:37   Agent  error:  at 
16/02/2012 15:34:37   Agent  error: lotus.domino.ClassHashtable
16/02/2012 15:34:37   Agent  error: .
16/02/2012 15:34:37   Agent  error: addAttachment
16/02/2012 15:34:37   Agent  error: (Unknown Source)
16/02/2012 15:34:37   Agent  error:  at 
16/02/2012 15:34:37   Agent  error: lotus.domino.AgentLoader
16/02/2012 15:34:37   Agent  error: .
16/02/2012 15:34:37   Agent  error: addAttachment
16/02/2012 15:34:37   Agent  error: (Unknown Source)
16/02/2012 15:34:37   JVM: The addAttachment (Ljava/lang/String;[B)V() method failed.

清除后的异常是:

JVMDUMP006I Processando Evento de Dump "systhrow",  detalhe "java/lang/OutOfMemoryError" - Aguarde. 
JVMDUMP032I  
JVMDUMP010I Snap Dump gravado em /local/notesdata/Snap.20120216.153437.18971.0001.trc 
JVMDUMP032I  
JVMDUMP010I Heap Dump gravado em /local/notesdata/heapdump.20120216.153437.18971.0002.phd 
JVMDUMP032I  
JVMDUMP010I Java Dump gravado em /local/notesdata/javacore.20120216.153437.18971.0003.txt 
JVMDUMP013I Evento de Dump Processado "systhrow", detalhe "java/lang/OutOfMemoryError". 
Exce∑∫∑˙o no encadeamento "Thread-60"

java.lang.OutOfMemoryError
 at java.util.Arrays.copyOfRange(Arrays.java:4054)
 at java.util.Arrays.copyOf(Arrays.java:3786)
 at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:93)
 at lotus.domino.ClassHashtable.explodeArchive(Unknown Source)
 at lotus.domino.ClassHashtable.addAttachment(Unknown Source)
 at lotus.domino.AgentLoader.addAttachment(Unknown Source)
JVM: The addAttachment (Ljava/lang/String;[B)V() method failed.

有人知道如何解决这个问题吗?

Does anyone know how to solve this problem?

推荐答案

所以重要的部分是:

lotus.domino.AgentLoader.addAttachment(Unknown Source)

AgentLoader.addAttachment是在首次开始执行代理程序时运行的方法.它的作用是检查代理程序中是否包含代理程序中的任何JAR,然后下载(如果在客户端上),并将它们分离到系统中,然后再将其加载到JVM中.

AgentLoader.addAttachment is a method that runs when your agent is first starting to be executed. What it does is checks your agent for any JARs contained within the agent and downloads (if on client) and detaches them to the system before loading them into the JVM.

您的代理完成后,将清理它们.因此,每次代理运行时,都必须执行此步骤.

When your agent completes it cleans these up. So every time the agent runs it has to do this step.

由于某些原因,可能会发生此错误.

This error can occur for a few reasons.

原因1 :(主要的)

网络和处理上都存在开销,无法将负载/罐子分离到系统中.如果您负担很重,则系统可能没有足够的内存来完成操作.

There is overhead both in network and processing to detach load/jars to the system. If you are under a heavy load it is possible that the system does not have enough memory to complete the action.

原因2:

某些第三方API不能以这种方式工作.例如,我看到的Google API会以这种方式失败.

Some third party APIs will not work in this fashion. Google API for example I have seen fail in this way.

原因3:

V8.0(SPR KPAL6YWRN9)中与Web服务有关的内存泄漏.此后已解决.

There was a memory leak in V8.0 (SPR KPAL6YWRN9) in relation to web services. This has since been fixed.

如何解决此问题:

删除代理中包含的所有jar,并将其放入jvm/lib/ext文件夹中.您将需要重新启动Domino/Notes.然后,jar将仅由JVM加载一次.

Remove any jars you have contained in your agent and drop them into the jvm/lib/ext folder. You will need to restart Domino/Notes. The jars will then be loaded by the JVM only once.

如果此时仍然出现错误,则很可能是另一个Java代理在其自身之后没有正确进行清理.

If you are still getting the error at that point, then is more likely another Java agent is not cleaning up correctly after itself.

这篇关于注释错误:JVM:尝试检索Java代理附件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆