Changeset 52


Ignore:
Timestamp:
02/21/12 11:09:27 (13 years ago)
Author:
phdmakk
Message:

+ added memory detection support

Location:
trunk/t3d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/t3d/t3d

    r7 r52  
    4848fi 
    4949 
    50 JAVA_CMD="$JAVA -Xmx512m -Xss128m -cp $CLASSPATH org.etsi.t3d.T3D" 
     50MT_CMD="$JAVA -Xmx512m -Xss128m -cp $CLASSPATH org.etsi.common.MemoryTest" 
     51 
     52JAVA_CMD="$JAVA -Xmx`$MT_CMD`m -Xss128m -cp $CLASSPATH org.etsi.t3d.T3D" 
    5153 
    5254if [[ $# > 0 && $1 == "--echo" ]]; then 
  • trunk/t3d/t3d.bat

    r7 r52  
    4949) 
    5050 
    51 set JAVA_CMD=%JAVA% -Xmx512m -Xss128m -cp "%CLASSPATH%" org.etsi.t3d.T3D 
     51set MT_CMD=%JAVA% -Xmx512m -Xss128m -cp "%CLASSPATH%" org.etsi.common.MemoryTest 
     52 
     53for /f %%i in ('call %MT_CMD%') do set HEAP=%%i 
     54 
     55 
     56set JAVA_CMD=%JAVA% -Xmx%HEAP%m -Xss128m -cp "%CLASSPATH%" org.etsi.t3d.T3D 
    5257 
    5358if "%1" == "--echo" ( 
Note: See TracChangeset for help on using the changeset viewer.