Skip to content

Configuring the jvm that the jmeter process runs in

Mark Collin edited this page Jan 18, 2014 · 3 revisions

The JMeter Maven plugin will run the JMeter process in its own JVM. You have full control over this JVM and can set the -Xms and -Xmx as well as any command line arguments you require. We suggest that you set the -Xms and -Xmx to the same values for optimal performance.

+---+
<project>
    [...]
        <build>
            <plugins>
                <plugin>
                    <groupId>com.lazerycode.jmeter</groupId>
                    <artifactId>jmeter-maven-plugin</artifactId>
                    <version>1.9.0</version>
                    <executions>
                        <execution>
                            <id>jmeter-tests</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>jmeter</goal>
                            </goals>
                            <configuration>
                                <jMeterProcessJVMSettings>
                                    <xms>1024</xms>
                                    <xmx>1024</xmx>
                                    <arguments>
                                        <argument>-Xprof</argument>
                                        <argument>-Xfuture</argument>
                                    </arguments>
                                </jMeterProcessJVMSettings>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    [...]
</project>
+---+