Ivano 48MB was the default in the olden days. It is 240MB now. I believe the change came in Java 8 to accommodate the fact that the HotSpot compiler now compiles all methods when they are hit for the first time.
Thanks From: Ivano Luberti <lube...@archicoop.it.INVALID> Sent: Thursday, July 25, 2024 8:43 AM To: users@tomcat.apache.org Subject: java code cache size question 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 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. Is there someone able to suggest if tomcat can override autonomously the default? We start tomcat usinf tomcat.service file Thanks in advance. -- Archimede Informatica tratta i dati personali in conformità a quanto stabilito dal Regolamento UE n. 2016/679 (GDPR) e dal D. Lgs. 30 giugno 2003 n. 196 per come modificato dal D.Lgs. 10 agosto 2018 n. 101. Informativa completa <https://urldefense.com/v3/__http://www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw2Vh7VXOA$<https://urldefense.com/v3/__http:/www.archicoop.it/fileadmin/pdf/InformativaTrattamentoDatiPersonali.pdf__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw2Vh7VXOA$>> Il contenuto di questo messaggio e dei suoi eventuali allegati è riservato. Nel caso in cui Lei non sia il destinatario, La preghiamo di contattare telefonicamente o via e-mail il mittente ai recapiti sopra indicati e di cancellare il messaggio e gli eventuali allegati dal Suo sistema senza farne copia o diffonderli. Le opinioni espresse sono quelle dell'autore e non rappresentano necessariamente quelle della Società. This message and any attachment are confidential.If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. Any opinions presented are solely those of the author and do not necessarily represent those of the Company. dott. Ivano Mario Luberti Archimede Informatica società cooperativa a r. l. Via Gereschi 36, 56127 Pisa tel.: +39 050/580959 | fax: +39 050/8932061 web: https://urldefense.com/v3/__http://www.archicoop.it__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw0MF78dPA$<https://urldefense.com/v3/__http:/www.archicoop.it__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw0MF78dPA$> linkedin: https://urldefense.com/v3/__http://www.linkedin.com/in/ivanoluberti__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw1gFelivQ$<https://urldefense.com/v3/__http:/www.linkedin.com/in/ivanoluberti__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw1gFelivQ$> facebook: https://urldefense.com/v3/__http://www.facebook.com/archimedeinformaticapisa/__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw0eJD3Tnw$<https://urldefense.com/v3/__http:/www.facebook.com/archimedeinformaticapisa/__;!!F9svGWnIaVPGSwU!pQ2s33hmFIHLlMyJvPGfzKU57_CwW5e05nIrx4PpW6Wn0t4riJCR-Ptgal2gV6M0E09ae3bE8qpG9QbDl6tLGE21Rw0eJD3Tnw$>