My Oracle Support Banner

After Code Cache Flushing Worked, Using More CPU Resource and Slowdown Occurs (Doc ID 1969265.1)

Last updated on AUGUST 21, 2023

Applies to:

Oracle WebLogic Server - Version 10.3.6 to 12.1.3.0.0
Information in this document applies to any platform.

Symptoms

The Java Virtual Machine (JVM) generates native code and stores it in a memory area called the code cache. You can set the code cache size by setting the property -XX:ReservedCodeCacheSize and monitor it by tools like JConsole. When the code cache becomes full, the Java VM flushes and sweeps it. In Java 7 and higher, code cache flushing is enabled by default.

The issue is that sometimes WLS gets slow and uses more CPU resources (but less than 100%) after code cache flushing. After the flushing, the used size of cache stays low (doesn't restart compilation), and the JVM works in interpreter mode. WLS execute threads use CPU resources more than usual and take more time to respond. After restarting the WLS instance, everything is back to normal.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.