通過ps -ef | grep java檢視到java程序相應jvm啟動引數
/opt/ln/java/bin/java
-server
-Xms4g
-Xmx4g
-XX:MetaspaceSize=512m
-XX:MaxMetaspaceSize=512m
-Xmn2g
-XX:MaxDirectMemorySize=1g
-XX:SurvivorRatio=10
-XX:+UseConcMarkSweepGC
-XX:CMSMaxAbortablePrecleanTime=5000
-XX:+CMSClassUnloadingEnabled
-XX:CMSInitiatingOccupancyFraction=80
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+ExplicitGCInvokesConcurrent
-Dsun.rmi.dgc.server.gcInterval=2592000000
-Dsun.rmi.dgc.client.gcInterval=2592000000
-XX:ParallelGCThreads=24 -Xloggc:/home/admin/logs/gc.log
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/home/admin/logs/java.hprof
-Djava.awt.headless=true
-Dsun.net.client.defaultConnectTimeout=10000
-Dsun.net.client.defaultReadTimeout=30000
-DJM.LOG.PATH=/home/admin/logs
-DJM.SNAPSHOT.PATH=/home/admin/snapshots
-Dfile.encoding=UTF-8
-Dhsf.publish.delayed=true
-Dproject.name=user
-D***.boot.wait=true
-Dlog4j.defaultInitOverride=true
-Dserver.port=7001
-Dmanagement.port=7002
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
-javaagent:/home/staragent/plugins/codecoverage/local_data/cc-agent.jar=output=tcpserver,address=127.0.0.1,port=47653
-classpath /home/admin/user/target/user
-Dapp.location=/home/admin/user/target/user
-Djava.endorsed.dirs= -Djava.io.tmpdir=/home/admin/user/.default/temp com.ln.***.boot.loader.SarLauncher