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>2.0.3</version>
                    <executions>
                        <execution>
                            <id>jmeter-tests</id>
                            <goals>
                                <goal>jmeter</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <jMeterProcessJVMSettings>
                            <xms>1024</xms>
                            <xmx>1024</xmx>
                            <arguments>
                                <argument>-Xprof</argument>
                                <argument>-Xfuture</argument>
                            </arguments>
                        </jMeterProcessJVMSettings>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    [...]
</project>
+---+

SOCKS proxy configuration relies on JVM arguments, socksProxyHost and socksProxyPort:

+---+
<project>
    [...]
        <build>
            <plugins>
                <plugin>
                    <groupId>com.lazerycode.jmeter</groupId>
                    <artifactId>jmeter-maven-plugin</artifactId>
                    <version>2.0.3</version>
                    <executions>
                        <execution>
                            <id>jmeter-tests</id>
                            <goals>
                                <goal>jmeter</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <jMeterProcessJVMSettings>
                            <arguments>
                                <argument>-DsocksProxyHost=localhost</argument>
                                <argument>-DsocksProxyPort=8080</argument>
                            </arguments>
                        </jMeterProcessJVMSettings>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    [...]
</project>
+---+

相关文章:

  • 2021-06-15
  • 2021-06-06
  • 2021-08-27
  • 2021-05-01
  • 2021-08-02
  • 2022-12-23
  • 2021-07-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
相关资源
相似解决方案