Gatling 2 Eclipse OutOfMemory

Hi,
I installed the Scala-Eclipse IDE and ported my scenario, which runs without problems from command line. Starting Engine with right cliché as Scala application results in a java.lang.OutOfMemoryError: Java heap space.

eclipse.ini:

-startup
…/…/…/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
–launcher.library
…/…/…/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
-vmargs
-Xmn256m
-Xmx4096m
-Xss2m
-XX:MaxPermSize=256m
-XX:+HeapDumpOnOutOfMemoryError
-XX:+AggressiveOpts
-XX:+OptimizeStringConcat
-XX:+UseFastAccessorMethods
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+CMSClassUnloadingEnabled
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

Any hints are welcome

–Ulrich

Just like for a Java application, eclipse doesn’t launch Scala applications with the JVM options defined in eclipse.ini. Those are just used to launch eclipse itself.

Go in “Run configurations” > “Arguments” and configure “VM Arguments”.
Still, is using that much heap space expected? If not, my 2 cents: you’re saving a lot of data into the Sessions. Full response bodies maybe?

it works

You’re welcome.
Have fun!