run-compact-java 396 B

123456789101112131415
  1. #!/bin/bash
  2. JAVA_FLAGS="-Xmx512m -Xms4m -XX:NewSize=1m -XX:MaxNewSize=4m -Xss4m -XX:+UseSerialGC -XX:-UsePerfData -XX:+DisableExplicitGC -XX:PermSize=16m -XX:MaxPermSize=64m -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=30"
  3. if [ "$1" = "-native" ]
  4. then
  5. shift
  6. JAVA=/usr/bin/java
  7. else
  8. JAVA=$(/usr/bin/dirname $(readlink -f ${BASH_SOURCE[0]}))/java.manifest
  9. fi
  10. set -x
  11. exec $JAVA $JAVA_FLAGS $*