Parameters to set while starting JMeter.
Parameters to set while starting JMeter.
Steps:
- Create a file startJmeter.cmd at location: “C:\Jmeter\apache-jmeter-2.9\apache-jmeter-2.9”
- Add the below lines to set different parameters.
set
JNDI_CTX_FACTORY=-Djava.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
set
JMX_PROVIDER=-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote
set HEAP=-server -Xms1024m
-Xmx1024m
set NEW=-XX:NewSize=512m
-XX:MaxNewSize=512m
set
TENURING=-XX:MaxTenuringThreshold=2
set RMIGC=-Dsun.rmi.dgc.client.gcInterval=600000
-Dsun.rmi.dgc.server.gcInterval=600000
set PERM=-XX:PermSize=128m
-XX:MaxPermSize=128m
set DEBUG=-verbose:gc
-Xloggc:gc.log -XX:+PrintTenuringDistribution
set
JMETER_PLUGINS_CONFIG=-DjmeterPlugin.jmxmon.interval=2000
-DjmeterPlugin.perfmon.interval=2000
set JVM_ARGS=%HEAP% %NEW%
%SURVIVOR% %TENURING% %RMIGC% %PERM% %DEBUG% %JNDI_CTX_FACTORY% %JMX_PROVIDER%
%JMETER_PLUGINS_CONFIG%
java %JVM_ARGS% -jar .\bin\ApacheJMeter.jar
3. Double Click on startJmeter.cmd to launch
Jmeter.
Comments
Post a Comment