Skip to content

Commit

Permalink
jstat
Browse files Browse the repository at this point in the history
  • Loading branch information
deipss committed Mar 28, 2024
1 parent 54600e4 commit af40640
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Solution/记一个jvm优化.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ nav_order: 6
后面发现是因为公司默认使用ParNew对年轻代进行回收,CMS进行老年代回收。140M是
公司默认的。

- jstat gcutil 5000 20
- jstat -gcutil `<jpid>` 5000 20
查看到有YGC频繁,每次30ms、FGC2小时一次

- jstat gcnew 5000 20
- jstat gcnewcapbility 5000 20
- jstat -gcnew `<jpid>` 5000 20
- jstat -gcnewcapbility `<jpid>` 5000 20

# 3. 解决办法
- 可以指定新生代最大的内存
Expand Down

0 comments on commit af40640

Please sign in to comment.