Skip to content

Instantly share code, notes, and snippets.

@jyc
Created December 29, 2011 01:32
Show Gist options
  • Select an option

  • Save jyc/1531009 to your computer and use it in GitHub Desktop.

Select an option

Save jyc/1531009 to your computer and use it in GitHub Desktop.
#!/bin/bash
. common.sh
MEMORY="2048M"
FLAGS="-Xmx$MEMORY -server -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseAdaptiveGCBoundary -XX:SurvivorRatio=16 -XX:ParallelGCThreads=3 -XX:+AggressiveOpts"
screen -dmS $SCREEN_NAME java $FLAGS -jar $JAR_NAME nogui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment