sebb        2005/03/12 06:07:44

  Modified:    bin      Tag: rel-2_0 jmeterw.bat jmeter.bat
  Log:
  jmeterw.bat now uses jmeter.bat
  Bug 32464 - document Direct Draw settings
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.1   +6 -45     jakarta-jmeter/bin/jmeterw.bat
  
  Index: jmeterw.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/bin/jmeterw.bat,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- jmeterw.bat       20 Mar 2004 14:48:04 -0000      1.3
  +++ jmeterw.bat       12 Mar 2005 14:07:44 -0000      1.3.2.1
  @@ -16,47 +16,8 @@
   rem   See the License for the specific language governing permissions and
   rem   limitations under the License.
   
  -if not "%OS%"=="Windows_NT" goto win9xStart
  -:winNTStart
  [EMAIL PROTECTED]
  -
  -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 %JVM_ARGS% %ARGS% -jar ApacheJMeter.jar 
%JMETER_CMD_LINE_ARGS%
  +set JM_START=start
  +set JM_LAUNCH=javaw.exe
  +call jmeter %*
  +set JM_START=
  +set JM_LAUNCH=
  \ No newline at end of file
  
  
  
  1.29.2.2  +20 -3     jakarta-jmeter/bin/jmeter.bat
  
  Index: jmeter.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/bin/jmeter.bat,v
  retrieving revision 1.29.2.1
  retrieving revision 1.29.2.2
  diff -u -r1.29.2.1 -r1.29.2.2
  --- jmeter.bat        18 Dec 2004 13:22:56 -0000      1.29.2.1
  +++ jmeter.bat        12 Mar 2005 14:07:44 -0000      1.29.2.2
  @@ -15,6 +15,8 @@
   rem   See the License for the specific language governing permissions and
   rem   limitations under the License.
   
  +if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe
  +
   if not "%OS%"=="Windows_NT" goto win9xStart
   :winNTStart
   @setlocal
  @@ -61,6 +63,21 @@
   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%
   
  -java %JVM_ARGS% %ARGS% -jar ApacheJMeter.jar %JMETER_CMD_LINE_ARGS%
  +rem Additional settings that might help improve GUI performance on some 
platforms
  +rem See: http://java.sun.com/products/java-media/2D/perf_graphics.html
  +
  +set DDRAW=
  +rem  Setting this flag to true turns off DirectDraw usage, which sometimes 
helps to get rid of a lot of rendering problems on Win32.
  +rem set DDRAW=%DDRAW% -Dsun.java2d.noddraw=true
  +
  +rem  Setting this flag to false turns off DirectDraw offscreen surfaces 
acceleration by forcing all createVolatileImage calls to become createImage 
calls, and disables hidden acceleration performed on surfaces created with 
createImage .
  +rem set DDRAW=%DDRAW% -Dsun.java2d.ddoffscreen=false
  +
  +rem Setting this flag to true enables hardware-accelerated scaling.
  +rem set DDRAW=%DDRAW% -Dsun.java2d.ddscale=true
  +
  +rem Collect the settings defined above
  +set ARGS=%HEAP% %NEW% %SURVIVOR% %TENURING% %EVACUATION% %RMIGC% %PERM% 
%DEBUG% %DDRAW%
  +
  +%JM_START% %JM_LAUNCH% %JVM_ARGS% %ARGS% -jar ApacheJMeter.jar 
%JMETER_CMD_LINE_ARGS%
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to