- Mastering Java 11
- Dr. Edward Lavieri
- 130字
- 2025-02-25 06:41:47
Memory allocation
The code heap containing non-method code is used for JVM internal code and consists of a 3 MB fixed memory block. The rest of the code cache memory is equally allocated for the profiled code and non-profiled code segments. You have control of this via command line commands.
The following command can be used to define the code heap size for the non-method compiled code:
-XX:NonMethodCodeHeapSize
The following command can be used to define the code heap size for the profiled compiled methods:
-XX:ProfiledCodeHeapSize
The following command can be used to define the code heap size for the non-profiled compiled methods:
-XX:NonProfiledCodeHeapSize
This feature certainly stands to improve Java application efficiency. It also impacts other processes that employ the code cache.