TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.28k stars 604 forks source link

[Bug] TheHive4 keeps crushing when doing a large merge request #2443

Open AliJaafar47 opened 1 year ago

AliJaafar47 commented 1 year ago

Request Type

Bug

Work Environment

Question Answer
OS version (server) Debian
OS version (client) 10
Virtualized Env. True
Dedicated RAM 8 GB
vCPU 4

| Package Type | Docker | | Database | Cassandra | | Index type | Elasticsearch | | Attachments storage | Local |

Problem Description

Describe the problem/bug as clearly as possible.

Steps to Reproduce

Merge a number of cases

Complementary information

warn] o.t.s.u.Retry [00003994|346a0092] An error occurs (java.lang.IllegalStateException: Cannot acce ss element because its enclosing transaction is closed and unbound), retrying (2) [warn] o.t.s.ErrorHandler [00003994|346a0092] POST /api/v1/query?name=get-case-for-merge returned 400

[warn] a.c.ClusterHeartbeat [|] Cluster Node [akka://application@127.0.0.1:45988] - Scheduled sending of heartbeat was delayed. Previous heartbeat was sent [2091] ms ago, expected interval is [1000] ms. This may cause failure detection to mark members as unreachable. The reason can be thread starvation, CPU overload, o r GC.

[error] a.a.ActorSystemImpl [|] Uncaught error from thread [application-akka.actor.default-dispatcher- 5]: GC overhead limit exceeded, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSy stem[application] java.lang.OutOfMemoryError: GC overhead limit exceeded at sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:114) at java.lang.Class.getGenericInterfaces(Class.java:913) at java.util.HashMap.comparableClassFor(HashMap.java:352) at java.util.HashMap$TreeNode.find(HashMap.java:1898) at java.util.HashMap$TreeNode.find(HashMap.java:1901) at java.util.HashMap$TreeNode.find(HashMap.java:1901) at java.util.HashMap$TreeNode.find(HashMap.java:1901) at java.util.HashMap$TreeNode.find(HashMap.java:1901) at java.util.HashMap$TreeNode.getTreeNode(HashMap.java:1913) at java.util.HashMap.removeNode(HashMap.java:825)