Skip to content

[Bug]: 长稳40并发,服务日志出现大量 java.util.ConcurrentModificationException #122

Description

Checklist

  • I have searched for related issues but did not get the expected help.
  • This bug has not been fixed in the latest version.
  • Please note that if your bug description lacks corresponding environment information and a minimal reproducible demo, it will be difficult for us to reproduce and resolve the issue, which will reduce the possibility of receiving feedback, or even lead to the issue being closed.

🐞 Detailed Description of the Problem

服务日志出现大量 java.util.ConcurrentModificationException(共 170 次,仍在发生):

java.util.ConcurrentModificationException
at HashMap$HashIterator.nextNode(HashMap.java:1597)
at ContextEngine.saveContexts(ContextEngine.java:319)   ← 单例 agent 的共享 HashMap 被并发遍历
at ReActAgent.invokeForStream(ReActAgent.java:1396)

Detailed Environment Information Description

长稳机器规格 linux 4C8G,监控策略:监控的是 runtime起来的DeepAgent 服务的 JVM 的 内存(heap/nonheap/RSS) + CPU + 线程数 + GC各区使用率与次数耗时,并叠加运行进度(已跑时长/累计成功率/轮次)。

Additional Information

Version Information

Thanks for your contribution 🎉!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions