5

JVM实战06(代码缓存区满)

 3 years ago
source link: https://lizb0907.github.io/2021/03/01/Jvm-Battle06/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

JVM实战06(代码缓存区满)

目录

代码缓存区

1.代码缓存区用来存储编译后的代码。
2.可以用JConsole选择CodeCache查看。

代码缓存区满会引起问题

代码缓存区如果满了,则会提示CodeCache is full. Compiler has been disabled.
也就是即时编译器失效,已经编译过的代码继续能执行,还没有编译过的代码就只能以解释
方式运行,导致性能下降不少。
1.设置合理代码缓存区大小。
2.如果项目平时性能OK,但突然出现性能下降,业务没问题,可排查是否由代码缓存区满所导致。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK