Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the jvm code cache area exist in heap or metaspace?

Tags:

jvm

There's nothing I can found this question .

Does the JVM code cache area exist in heap or metaspace in jdk 8?

like image 281
shaoyihe Avatar asked Dec 22 '25 09:12

shaoyihe


1 Answers

Neither in Heap nor in Metaspace. In HotSpot JVM Code Cache is a separate off-heap area. Its size is controlled by -XX:ReservedCodeCacheSize option.

On the "Memory" tab of Java Mission Control you'll find the Code Cache among other JVM memory pools:

JVM memory pools

More about JVM memory areas

like image 125
apangin Avatar answered Dec 23 '25 23:12

apangin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!