You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2018/01/27 19:23:57 UTC
svn commit: r1822431 - in /jmeter/trunk/bin: jmeter jmeter.bat
Author: pmouawad
Date: Sat Jan 27 19:23:57 2018
New Revision: 1822431
URL: http://svn.apache.org/viewvc?rev=1822431&view=rev
Log:
Increase Heap size from 512m to 1g
Comment out additional JVM options following Felix notes
Modified:
jmeter/trunk/bin/jmeter
jmeter/trunk/bin/jmeter.bat
Modified: jmeter/trunk/bin/jmeter
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/jmeter?rev=1822431&r1=1822430&r2=1822431&view=diff
==============================================================================
--- jmeter/trunk/bin/jmeter (original)
+++ jmeter/trunk/bin/jmeter Sat Jan 27 19:23:57 2018
@@ -20,7 +20,7 @@
## JVM_ARGS - optional java args, e.g. -Dprop=val
##
## e.g.
-## JVM_ARGS="-Xms512m -Xmx512m" jmeter etc.
+## JVM_ARGS="-Xms1g -Xmx1g" jmeter etc.
##
## Do not set the variables in this script. Instead put them into a script
## setenv.sh in JMETER_HOME/bin to keep your customizations separate.
@@ -35,11 +35,11 @@
##
## JMETER_GC_ALGO (Optional) Java runtime options to specify JVM garbage collection
## algorithm
-## Defaults to "-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20 -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem"
+## Defaults to "-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20"
##
## JMETER_HEAP (Optional) Java runtime options for memory management
## used when JMeter is started.
-## Defaults to "-Xms512m -Xmx512m -X:MaxMetaspaceSize=256m"
+## Defaults to "-Xms1g -Xmx1g -X:MaxMetaspaceSize=256m"
##
## JMETER_HOME (Optional) May point to your JMeter install dir. If empty
## it will be set relativ to this script.
@@ -156,7 +156,7 @@ esac
# This is the base heap size -- you may increase or decrease it to fit your
# system's memory availability:
-: "${JMETER_HEAP:="-Xms512m -Xmx512m -XX:MaxMetaspaceSize=256m"}"
+: "${JMETER_HEAP:="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"}"
# Set language
# Default to en_EN
@@ -173,7 +173,9 @@ esac
# RUN_IN_DOCKER="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
# Finally, some tracing to help in case things go astray:
-: "${JMETER_GC_ALGO:="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20 -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem"}"
+# You may want to add those settings:
+# -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem
+: "${JMETER_GC_ALGO:="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20"}"
# Always dump on OOM (does not cost anything unless triggered)
Modified: jmeter/trunk/bin/jmeter.bat
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/jmeter.bat?rev=1822431&r1=1822430&r2=1822431&view=diff
==============================================================================
--- jmeter/trunk/bin/jmeter.bat (original)
+++ jmeter/trunk/bin/jmeter.bat Sat Jan 27 19:23:57 2018
@@ -37,10 +37,10 @@ rem JVM_ARGS - (Optional) Java opti
rem Defaults to '-Duser.language="en" -Duser.region="EN"'
rem
rem GC_ALGO - (Optional) JVM garbage collector options
-rem Defaults to '-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20 -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem'
+rem Defaults to '-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20'
rem
rem HEAP - (Optional) JVM memory settings used when starting JMeter
-rem Defaults to '-Xms512m -Xmx512m -XX:MaxMetaspaceSize=256m'
+rem Defaults to '-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m'
rem
rem =====================================================
@@ -138,7 +138,7 @@ rem http://docs.oracle.com/javase/8/docs
if not defined HEAP (
rem See the unix startup file for the rationale of the following parameters,
rem including some tuning recommendations
- set HEAP=-Xms512m -Xmx512m -XX:MaxMetaspaceSize=256m
+ set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m
)
rem Uncomment this to generate GC verbose file with Java prior to 9
@@ -146,9 +146,10 @@ rem set VERBOSE_GC=-verbose:gc -Xloggc:g
rem Uncomment this to generate GC verbose file with Java 9 and above
rem set VERBOSE_GC=-Xlog:gc*,gc+age=trace,gc+heap=debug:file=gc_jmeter_%%p.log
-
+rem You may want to add those settings
+rem -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem
if not defined GC_ALGO (
- set GC_ALGO=-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20 -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem
+ set GC_ALGO=-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20
)
set SYSTEM_PROPS=-Djava.security.egd=file:/dev/urandom