Notes 错误:JVM:尝试检索 Java 代理附件失败

发布于 2025-01-07 01:55:41 字数 4302 浏览 1 评论 0原文

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

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.

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

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.

Cleaned up the exception is:

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一页 2025-01-14 01:55:41

所以重要的部分是:

lotus.domino.AgentLoader.addAttachment(Unknown Source)

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

当您的代理完成后,它会清理这些内容。所以每次代理运行时都必须执行这一步。

出现此错误的原因有多种。

原因 1:(主要原因)

将负载/jar 分离到系统的网络和处理过程中都会产生开销。如果您的负载很重,系统可能没有足够的内存来完成该操作。

原因 2:

某些第三方 API 无法以这种方式工作。例如,我见过 Google API 以这种方式失败。

原因 3

V8.0 (SPR KPAL6YWRN9) 中存在与 Web 服务相关的内存泄漏。此问题已得到解决。

如何解决问题:

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

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

So the important part is this:

lotus.domino.AgentLoader.addAttachment(Unknown Source)

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.

Reason 1: (main one)

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.

Reason 2:

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

Reason 3:

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

How to resolve the issue:

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.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文