LichongQ / record

for record something necessary
0 stars 0 forks source link

jdk命及jvm参数 #11

Open LichongQ opened 6 years ago

LichongQ commented 6 years ago

jstack线程堆栈分析:https://www.jianshu.com/p/6690f7e92f27 jps/jstack pid/jstat -gcutil pid/jmap -dump:format=b,file=heap.bin pid top -Hp pid atop

LichongQ commented 6 years ago

新生代容量:-Xmn 堆大小:-Xms、-Xmx 永久代:-XX:PermSize -XX:MaxPermSize 使用并行收集器:parallel scavenge + parallel old的吞吐量优先收集器 使用CMS收集器:-XX:+UseConcMarkSweepGC 自动分配新生代和老年代容量:-XX:+UseAdaptiveSizePolicy