Guest User

Untitled

a guest
Jul 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # BASE
  4. export BINDIR=$(dirname "$0")
  5. export HOME=$(realpath $BINDIR/..)
  6.  
  7. # LOGGING
  8. echo "HOME: $HOME"
  9. echo "BIN: $BINDIR"
  10.  
  11. export CMD="$BINDIR/launcher "
  12. export CMD="$CMD -J-verbose:gc"
  13. export CMD="$CMD -J-Xloggc:/var/log/{name}.%p_%t.gc"
  14. export CMD="$CMD -J-XX:+PrintGCDetails"
  15. export CMD="$CMD -J-XX:+PrintGCDateStamps"
  16. export CMD="$CMD -J-XX:+UseGCLogFileRotation"
  17. export CMD="$CMD -J-XX:NumberOfGCLogFiles=5"
  18. export CMD="$CMD -J-XX:GCLogFileSize=10M"
  19. export CMD="$CMD -J-XX:-TraceClassUnloading"
  20. export CMD="$CMD -J-XX:+HeapDumpOnOutOfMemoryError"
  21. export CMD="$CMD -J-XX:HeapDumpPath=/var/log/{name}-heapdumps"
  22. export CMD="$CMD -J-Xms100m -J-Xmx100m"
  23. export CMD="$CMD -J-Dlogback.configurationFile=$HOME/etc/stage.logback.xml"
  24. export CMD="$CMD -J-Dconfig.file=$HOME/etc/general.conf"
  25. export CMD="$CMD --"
  26.  
  27. # CALL
  28. echo "$CMD "$@""
  29. echo "..."
  30. exec $CMD "$@"
Add Comment
Please, Sign In to add comment