Changeset 2783
- Timestamp:
- 02/12/10 15:25:25
- Files:
-
- trunk/build/quickstart/linux/startjboss (modified) (1 diff)
- trunk/build/quickstart/windows/startjboss.bat (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/quickstart/linux/startjboss
r2780 r2783 10 10 11 11 usage() { 12 echo " $PRG [-heap size] [-newsize size] [-perm gensize] "12 echo " $PRG [-heap size] [-newsize size] [-permsize size] " 13 13 echo "" 14 echo " where:"14 echo " Where:" 15 15 echo "" 16 16 echo " -heap sets the heap size and should be n for bytes" 17 echo " nK for kilo-bytes "18 echo " nM for mega-bytes "19 echo " nG for giga-bytes "17 echo " nK for kilo-bytes (e.g. 256K)" 18 echo " nM for mega-bytes (e.g. 256M)" 19 echo " nG for giga-bytes (e.g. 1G)" 20 20 echo "" 21 21 echo " -newsize sets the new generation size and has the same form as -heap" 22 22 echo " the value should be around one third of the heap" 23 23 echo "" 24 echo " -permsize sets the permgen size and has the same form as -heap"24 echo " -permsize sets the permgen size and has the same form as -heap" 25 25 echo " The value should probably not be less than 256M" 26 echo "" 27 echo "" 28 echo "Default settings:" 29 echo "heap = $heap" 30 echo "newsize = $newsize" 31 echo "permsize = $permsize" 32 echo "" 26 33 echo "" 27 34 } trunk/build/quickstart/windows/startjboss.bat
r2738 r2783 7 7 8 8 SET BASE_DIR=%CD% 9 SET PRG=%0 10 11 :: Set defaults 12 SET heap=1G 13 SET newsize=330M 14 SET permsize=256M 15 16 GOTO branch 17 18 :heap 19 SHIFT 20 SET heap=%1 21 SHIFT 22 GOTO branch 23 24 :newsize 25 SHIFT 26 SET newsize=%1 27 SHIFT 28 GOTO branch 29 30 :permsize 31 SHIFT 32 SET permsize=%1 33 SHIFT 34 GOTO branch 35 36 :doneWithArgs 9 37 10 38 SET JBOSS_VERSION=jboss-5.1.0.GA … … 34 62 SET BW_DATA_DIR_DEF=-Dorg.bedework.data.dir=%BW_DATA_DIR%\ 35 63 64 SET JAVA_OPTS=%JAVA_OPTS% -Xms%heap% -Xmx%heap% 65 SET JAVA_OPTS=%JAVA_OPTS% -XX:NewSize=%newsize% -XX:MaxNewSize=%newsize% 66 SET JAVA_OPTS=%JAVA_OPTS% -XX:PermSize=%permsize% -XX:MaxPermSize=%permsize% 67 36 68 SET RUN_CMD=.\%JBOSS_VERSION%\bin\run.bat -c %JBOSS_CONFIG% %JBOSS_BIND% %JBOSS_PORTS% %LOG_THRESHOLD% %ACTIVEMQ_DIRPREFIX% %BW_DATA_DIR_DEF% 37 69 … … 43 75 44 76 %RUN_CMD% 77 GOTO:EOF 78 79 80 :: Iterate over the command line arguments; 81 :: DOS Batch labels can't contain hyphens, so convert them 82 :: (otherwise, we could just "GOTO %1") 83 :branch 84 IF "%1" == "-usage" GOTO usage 85 IF "%1" == "-heap" GOTO heap 86 IF "%1" == "-newsize" GOTO newsize 87 IF "%1" == "-permsize" GOTO permsize 88 GOTO doneWithArgs 45 89 90 :usage 91 ECHO. 92 ECHO. 93 ECHO. 94 ECHO startjboss.bat [-heap size] [-newsize size] [-permsize size] 95 ECHO. 96 ECHO Where: 97 ECHO. 98 ECHO -heap sets the heap size and should be n for bytes 99 ECHO nK for kilo-bytes (e.g. 256K) 100 ECHO nM for mega-bytes (e.g. 256M) 101 ECHO nG for giga-bytes (e.g. 1G) 102 ECHO. 103 ECHO -newsize sets the new generation size and has the same form as -heap 104 ECHO the value should be around one third of the heap 105 ECHO. 106 ECHO -permsize sets the permgen size and has the same form as -heap 107 ECHO The value should probably not be less than 256M 108 ECHO. 109 ECHO. 110 ECHO. Default settings: 111 ECHO. heap = %heap% 112 ECHO. newsize = %newsize% 113 ECHO. permgen = %permsize%
