# how set JVM param on Gatling3.0.0?

**URL:** <https://community.gatling.io/t/how-set-jvm-param-on-gatling3-0-0/4622>\
**Category:** Gatling (Open-Source)\
**Created:** [November 5, 2018, 9:11am UTC](https://community.gatling.io/t/how-set-jvm-param-on-gatling3-0-0/4622 "2018-11-05T09:11:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user27](https://avatars.discourse-cdn.com/v4/letter/u/a183cd/32.png) [@user27](https://community.gatling.io/u/user27)\
**Post date:** [November 5, 2018, 9:11am UTC](https://community.gatling.io/t/how-set-jvm-param-on-gatling3-0-0/4622/1 "2018-11-05T09:11:00Z")

</div>

I use the below command:

JAVA\_OPTS="${JAVA\_OPTS} -Xms8G -Xmx8G -Xmn128M"  
export JAVA\_OPTS  
mvn clean compile gatling:test -Dusers=1000 -Dduring=300

right?

---

<div class="post-metadata">

**Author:** ![Jon\_Thor\_Austen](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Jon\_Thor\_Austen](https://community.gatling.io/u/Jon_Thor_Austen)\
**Post date:** [November 5, 2018, 9:28pm UTC](https://community.gatling.io/t/how-set-jvm-param-on-gatling3-0-0/4622/2 "2018-11-05T21:28:54Z")

</div>

yes, or you can put the ops as properties within your maven surefire config in the pom.xml  
probably better to do it that way.

There is an example on this site that shows passing jvm args: [https://gatling.io/docs/2.3/extensions/maven\_plugin/](https://gatling.io/docs/2.3/extensions/maven_plugin/)

---

<div class="post-metadata">

**Author:** ![user27](https://avatars.discourse-cdn.com/v4/letter/u/a183cd/32.png) [@user27](https://community.gatling.io/u/user27)\
**Post date:** [November 6, 2018, 7:21am UTC](https://community.gatling.io/t/how-set-jvm-param-on-gatling3-0-0/4622/3 "2018-11-06T07:21:16Z")

</div>

Thanks a lot!

在 2018年11月6日星期二 UTC+8上午5:28:54，Jon Thor Austen写道：
