error when starting Gatling "Too small initial heap for new size specified"

Hi,

I am using Gatling 2, jdk7, scala 2.10 on mac os x

Sometime when I start gatling I get the following error:

Al-MacBook-Air:bin Nata$ ./gatling.sh
GATLING_HOME is set to /Users/Nata/Downloads/gatling-charts-highcharts-2.0.0-M3a
Error occurred during initialization of VM
Too small initial heap for new size specified
Exception in thread “main” org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.gatling.app.ZincCompilerLauncher$.apply(ZincCompilerLauncher.scala:54)
at io.gatling.app.SimulationClassLoader$.fromSourcesDirectory(SimulationClassLoader.scala:32)
at io.gatling.app.Gatling$$anonfun$15.apply(Gatling.scala:171)
at io.gatling.app.Gatling$$anonfun$15.apply(Gatling.scala:171)
at scala.Option.getOrElse(Option.scala:120)
at io.gatling.app.Gatling.start(Gatling.scala:171)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:59)
at io.gatling.app.Gatling$.runGatling(Gatling.scala:80)
at io.gatling.app.Gatling$.main(Gatling.scala:54)
at io.gatling.app.Gatling.main(Gatling.scala)

I just re-run Gatling again and the error is gone.

I wonder why does this happen and am I missing any configuration settings?

Thanks,
Natalie

Hi,

Please change gatling.core.zinc.jvmArgs in gatling.conf: remove -Xmn and leave only Xss. That was a mistake to set it up.

Cheers,

Stéphane

Thanks Stéphane,

It happened to me again after I have removed Xmn option. Here is the first part of gatling.conf

You have to uncomment the property in order to be effective, ie remove the #.

zinc {
jvmArgs = “-Xss2M”
}

Sorry if I wasn’t explicit enough.

Hi Stéphane,

sorry, I must have been in a hurry :slight_smile: That has solved the problem.

Many thanks,
Natalie

Hi I see the JVM uses -Xmn100M which is too small to me. I want to enlarge it but no clue where to change it.
I m using sbt and gatling plugin. But I dont see gatling.conf on my machine.
Can somebody give the light?
Jeffrey

https://github.com/bbc/gatling-load-tests/blob/master/build.sbt#L14