Java native memory leak deploying thousands of JSP files every few minutes
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- JBoss Enterprise Web Server (EWS) Tomcat
- Red Hat Enterprise Linux (RHEL) Tomcat
Issue
- Deploying thousands of JSP files every few minutes causes the Java process size to increase
Resolution
Stop needless redeployment of JSP files; only redeploy updated files.
If you have applications that use JSF, try the following settings in their web.xml to cut back on JSF overhead:
<context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>-1</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>false</param-value>
</context-param>
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.