My Oracle Support Banner

WebLogic Server 12.1.1 Loads All Precompiled JSPs Into Native Memory Causing Out of Memory Problems (Doc ID 1571737.1)

Last updated on JUNE 12, 2023

Applies to:

Oracle WebLogic Server - Version to [Release 12c]
Information in this document applies to any platform.


It is observed that when deploying an application that contains precompiled code (using weblogic appc for example), all of this code is immediately loaded into the permanent generation memory space (permgen) without further notice. When the permanent generation memory space is set too low and application contains several static HTML references, a native OutOfMemoryError will be shown on log files.

This will also cause that startup performance goes down, as it'll load every single pre-compiled JSP into PermGen, taking as much time as needed to load each file.

To replicate this problem, you can follow these instructions:

  1. Create a large number of JSP files that include static HTML references. For this example, 2000 JSPs will be created.

    1. Create an initial JSP called DummyJsp0, which contains the following:


      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
       Installing the patch
       Modyfing your deployment descriptors

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