JVM

jinfo -flag MaxHeapSize 1987

jinfo -flag ThreadStackSize 1987
java -XX:+PrintFlagsFinal -version > flags.txt

jps

jinfo -flag UseG1GC 1987

jinfo -flag UseParallelGC 1987

jinfo -flag UseConcMarkSweepGC 1987

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

jinfo -flags 2001

jstat -class 2060

jstat -gc 2060

jstat -compiler 2114

-XX:+HeapDumpOnOutOfMemoryError 

-XX:HeapDumpPath=./

jmap -dump:format=b,file=heap.hprof 6436

jstack 2320 > 232.txt

mvn clean package -Dmaven.test.skip

nohup java -jar jvm-1.0-SNAPSHOT.jar &

top

top -p 4186 -H

printf "%x" 4212

 ps -ef|grep tomcat
 kill -9 2320

nohup java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9005 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.net.preferIPv4Stack=true -Djava.rmi.server.hostname=192.168.80.128 -jar jvm-1.0-SNAPSHOT.jar &

 cat redis-6381.conf | grep -v "#" | grep -v "^$" > redis-6382.conf

btrace 14140 PrintArgSimple.java

btrace -cp E:\idea2\jvm\target\classes 13336 PrintArgComplex.java

startup.sh  jpda

netstat -nap | grep 54321

mvn install:install-file -Dfile=E:\maven\LocalWareHouse\com\btrace\btrace\1.0-SNAPSHOT\btrace-agent.jar -DgroupId=com.btrace -DartifactId=btrace -Dversion=1.0-SNAPSHOT -Dpackaging=jar
 

tomcat-users.xml

manager.xml

http://127.0.0.1:8080/manager/html

http://127.0.0.1:8080/probe/

-XX:+UseParallelGC -XX:MetaspaceSize=64M -XX:MaxGCPauseMillis=100 -XX:GCTimeRatio=99 -XX:YoungGenerationSizeIncrement=30

 

 

 

你可能感兴趣的:(JVM)