> Hi, I have a tomcat 9 instance that runs without specifying options for
> the code cache.
>
> Looking at the servet status I see
>
> Code Cache Non-heap memory 2.43 MiB 163.93 MiB 240.00
> MiB 147.30
> MiB (61%)
>
> So te maximum size is 240MB
>
> Looking at Java documentation it states it should be 48MB if not altered
> by options.
At least for Java 17 this seems to be 240MiB:
-XX:ReservedCodeCacheSize=size
Sets the maximum code cache size (in bytes) for JIT-compiled code.
Append the letter k or K to indicate kilobytes, m or M to indicate
megabytes, or g or G to indicate gigabytes. The default maximum code
cache size is 240 MB; if you disable tiered compilation with the
option -XX:-TieredCompilation, then the default size is 48 MB. This
option has a limit of 2 GB; otherwise, an error is generated. The
maximum code cache size shouldn't be less than the initial code cache
size; see the option -XX:InitialCodeCacheSize.
Regards,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]