Run jmeter using javaw (i.e. the DOS box disappears)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@324085 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 8837a85770
This commit is contained in:
Sebastian Bazley 2004-01-15 15:45:49 +00:00
parent dbada4dbaf
commit 7008fd423f
1 changed files with 45 additions and 0 deletions

45
bin/jmeterw.bat Normal file
View File

@ -0,0 +1,45 @@
@echo off
if not "%OS%"=="Windows_NT" goto win9xStart
:winNTStart
@setlocal
rem Need to check if we are using the 4NT shell...
if "%eval[2+2]" == "4" goto setup4NT
rem On NT/2K grab all arguments at once
set JMETER_CMD_LINE_ARGS=%*
goto doneStart
:setup4NT
set JMETER_CMD_LINE_ARGS=%$
goto doneStart
:win9xStart
rem Slurp the command line arguments. This loop allows for an unlimited number of
rem agruments (up to the command line limit, anyway).
set JMETER_CMD_LINE_ARGS=
:setupArgs
if %1a==a goto doneStart
set JMETER_CMD_LINE_ARGS=%JMETER_CMD_LINE_ARGS% %1
shift
goto setupArgs
:doneStart
rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.
rem See the unix startup file for the rationale of the following parameters,
rem including some tuning recommendations
set HEAP=-Xms256m -Xmx256m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m
set SURVIVOR=-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50%
set TENURING=-XX:MaxTenuringThreshold=2
set EVACUATION=-XX:MaxLiveObjectEvacuationRatio=20%
set RMIGC=-Dsun.rmi.dgc.client.gcInterval=600000 -Dsun.rmi.dgc.server.gcInterval=600000
set PERM=-XX:PermSize=64m -XX:MaxPermSize=64m
set DEBUG=-verbose:gc -XX:+PrintTenuringDistribution
set ARGS=%HEAP% %NEW% %SURVIVOR% %TENURING% %EVACUATION% %RMIGC% %PERM% %DEBUG%
start "JMeter" javaw %ARGS% -jar ApacheJMeter.jar %JMETER_CMD_LINE_ARGS%