Monitor the code cache size for some time (for example using jconsole) to ensure that the configured maximum value is not too low.
Überwachen Sie die Code-Cache-Größe einige Zeit lang (z. B. mithilfe von jconsole), um sicherzustellen, dass der konfigurierte Maximalwert nicht zu niedrig ist.
However, I would still recommend to tackle the root cause as soon as possible once a code cache problem has manifested itself, i.e., identify the memory leak and fix it.
Dennoch würde ich empfehlen, bei erwiesenen Performance-Problemen mit dem Code Cache so schnell wie möglich die eigentliche Ursache anzugehen, d.h. ein mögliches Leak aufzuspüren und zu beheben.
To avoid overflow, we can try an interesting and relatively new option: to let the JVM dispose some of the compiled code when the code cache fills up.
Eine interessante und relativ neue Option ist, die JVM bei vollem Code Cache automatisch einen Teil der kompilierten Methoden entsorgen zu lassen und so neuen Platz zu schaffen.
If the code cache is fully utilized, the JVM prints a warning message and then switches to interpreted-only mode: The JIT compiler gets deactivated and no bytecode will be compiled into native code anymore.
Ist der Code Cache voll, so gibt die JVM eine Warnung aus und begibt sich anschließend in den ausschließlich interpretierten Modus: Der JIT-Compiler wird deaktiviert und es werden keine Methoden mehr kompiliert.
Disable the flushing of the code cache and increase the cache size by adding the following JVM arguments into the AEM start script
Deaktivieren Sie das Leeren des Code-Caches und erhöhen Sie die Cachegröße, indem Sie die folgenden JVM-Argumente zum AEM-Anfangsskript hinzufügen
This scenario results in much slower execution of the Java code that was either evicted from the code cache or was never executed by JVM.
Ergebnis dieses Szenarios ist die deutlich langsamere Ausführung des Java-Codes, der entweder aus dem Code-Cache entfernt oder nie von JVM ausgeführt wurde.
The code cache does rarely cause performance problems, but once we have a code cache problem its effects may be devastating.
Solution: Upgrade Java version, or disable flushing of the code cache
Lösung: Java-Version aktualisieren oder Leeren des Code-Caches deaktivieren
A METHOD AND APPARATUS FOR IMPROVING THE PERFORMANCE OF A GENERATED CODE CACHE SEARCH OPERATION THROUGH THE USE OF STATIC KEY VALUES
EIN VERFAHREN UND GERÄT ZUR VERBESSERUNG DER LEISTUNG EINER ERZEUGTEN KODEPUFFERSUCHEDURCH DEN GEBRAUCH VON STATISCHEN SCHLÜSSELWERTEN
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.