指定jvm参数启动jar

深藏阁楼爱情的钟 2022-10-12 01:03 313阅读 0赞
  1. /usr/local/java/jdk1.8.0_131/bin/java -jar -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/spb_zcmweb/8103/dump/heap/
  2. -Djava.io.tmpdir=/data/spb_zcmweb/8103/tmp/
  3. -Dserver.port=8103
  4. -Dcom.sun.management.jmxremote
  5. -Dcom.sun.management.jmxremote.port=5103
  6. -Dcom.sun.management.jmxremote.rmi.port=6103
  7. -Dcom.sun.management.jmxremote.authenticate=false
  8. -Dcom.sun.management.jmxremote.ssl=false
  9. -Dcom.sun.management.jmxremote.access.file=/usr/local/java/jdk1.8.0_131/jre/lib/management/jmxremote.access
  10. -Xmx2G -Xms2G -XX:+DisableExplicitGC -verbose:gc -Xloggc:/data/spb_zcmweb/8103/log/gc.%t.log -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCTaskTimeStamps -XX:+PrintGCDetails -XX:+PrintGCDateStamps
  11. -Dserver.connection-timeout=60000
  12. -Dserver.tomcat.accept-count=1000
  13. -Dserver.tomcat.max-threads=300
  14. -Dserve

发表评论

表情:
评论列表 (有 0 条评论,313人围观)

还没有评论,来说两句吧...

相关阅读