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

Last updated on NOVEMBER 05, 2016

Applies to:

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

Symptoms

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:

      Cause

      Sign In with your My Oracle Support account

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

      My Oracle Support provides customers with access to over a
      Million Knowledge Articles and hundreds of Community platforms