I am trying to run the performance test in parallel for different services for 4 hours but the flow is getting aborted with in 1 hour and throwing out of memory error. After sometime it is throwing Out of memory , heap memory errors
Errors: Uncaught error from thread [GatlingSystem-akka.actor.default-dispatcher-4]: GC overhead limit exceeded, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[GatlingSystem] java.lang.OutOfMemoryError: GC overhead limit exceeded
tried approaches:updated jvm args in pom.xml
<jvmArg>-Xms512m</jvmArg>
<jvmArg>-Xmx12048m</jvmArg>
Can some please suggest any approach to how to run Gatling test without eating up memory and help in running test for longer duration with different services