Performance Issue When Using ServerSideIncludeServlet Servlet

(Doc ID 1914352.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.5 and later
Information in this document applies to any platform.

Symptoms

Deployed into 10.3.5 WLS server, an application contains 'jsp' and 'sec' pages :
The main_test.jsp  page is including test_header.sec page :

<hr>
Including header_test.sec:<br>
<jsp:include page="/test_ssi/test_header.sec" />
<p>
<hr>

and,  test_header.sec page  is including two 3 other 'sec' pages (test_prebody.sec,
test_bypass.sec, test_wrap_nav.sec) as the following :

<!--#include virtual="/test_ssi/test_prebody.sec"-->
<!--#include virtual="/test_ssi/test_bypass.sec"-->
<!--#include virtual="/test_ssi/test_wrap_nav.sec"-->

The 'sec' pages and '#include' directives are handled by  weblogic.servlet.ServerSideIncludeServlet servlet declared in web.xml :

<servlet>
<servlet-name>SSI</servlet-name>
<servlet-class>weblogic.servlet.ServerSideIncludeServlet</servlet-class>
<init-param>
<param-name>inputEncoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>SSI</servlet-name>
<url-pattern>*.sec</url-pattern>
</servlet-mapping>

The problem is that the ServerSideIncludeServlet servlet processing  is taking a lot of CPU as the included sec files are read with a 1 byte buffer.

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