Skip to content

Instantly share code, notes, and snippets.

@leewin12
Created July 17, 2019 02:42
Show Gist options
  • Save leewin12/11a206b13d6bbce2d1040df54cf899d9 to your computer and use it in GitHub Desktop.
Save leewin12/11a206b13d6bbce2d1040df54cf899d9 to your computer and use it in GitHub Desktop.
jvm config and nohup without nohup.out
nohup java -jar {{ jvm_config }} -verbose:gc -XX:+UseG1GC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=100M -Xloggc:logs/gc.log -XX:NumberOfGCLogFiles=4 -XX:GCLogFileSize=1M -XX:+UseGCLogFileRotation -Dspring.profiles.active={{ BUILD_PROFILE }} -Dfile.encoding=utf-8 {{ project_name }}.jar 1>/dev/null 2> >(exec nohup logger -t {{ project_name }}) &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment