码迷,mamicode.com
首页 > 其他好文 > 详细

Jmeter-Maven-Plugin高级应用:Configuring the jvm that the jmeter process runs in

时间:2016-10-22 14:11:27      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:footer   tor   cal   href   data   maven   ref   option   time   

Configuring the jvm that the jmeter process runs in

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>
+---+

Jmeter-Maven-Plugin高级应用:Configuring the jvm that the jmeter process runs in

标签:footer   tor   cal   href   data   maven   ref   option   time   

原文地址:http://www.cnblogs.com/ceshi2016/p/5987150.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!