gatling.sh overrides my custom JAVA_OPTS

Hello,

I needed to assign to the JVM a big amount of memory since I’m using huge CSV files as feeders.
The /bin/gatling.sh script overrides my custom memory JVM settings in the following line:

JAVA_OPTS="${JAVA_OPTS} -Xmx1G"

so I had to manually remove it.
Wouldn’t it make more sense to remove all the hardcoded JAVA_OPT settings from the start scripts?

Thanks,
BR,
Luca

Hi Luca,

FWIW, that’s what I did for my testing, in which I needed more stack and heap. Doing so meant that I didn’t have to remember to set JAVA_OPTS before calling gatling.sh (with the line removed), and worse didn’t have to document somewhere that this was required.

Kind regards,
Tony.

Contributions welcome :slight_smile:
https://github.com/gatling/gatling/issues/3150

Noted :smiley: