[
https://issues.apache.org/jira/browse/OOZIE-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16742913#comment-16742913
]
Andras Salamon commented on OOZIE-3409:
---------------------------------------
{{TestLocalOozieExample}} failure is caused by this patch, I need to work on it:
{noformat}
20:51:02 [INFO] -------------------------------------------------------
20:51:02 [INFO] T E S T S
20:51:02 [INFO] -------------------------------------------------------
20:51:28 [INFO] Running org.apache.oozie.example.TestLocalOozieExample
20:51:28 [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time
elapsed: 25.311 s <<< FAILURE! - in
org.apache.oozie.example.TestLocalOozieExample
20:51:28 [ERROR]
testLocalOozieExampleEnd(org.apache.oozie.example.TestLocalOozieExample) Time
elapsed: 24.524 s <<< ERROR!
20:51:28 java.lang.NoSuchFieldError: IS_SECURITY_ENABLED
20:51:28 at
org.apache.jasper.el.ELContextImpl.<clinit>(ELContextImpl.java:83)
20:51:28 at
org.apache.jasper.el.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:42)
20:51:28 at
org.apache.jasper.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:59)
20:51:28 at
org.apache.oozie.util.ELEvaluator.evaluate(ELEvaluator.java:210)
{noformat}
> Oozie Server : Possible memory leak in EL evaluation
> ----------------------------------------------------
>
> Key: OOZIE-3409
> URL: https://issues.apache.org/jira/browse/OOZIE-3409
> Project: Oozie
> Issue Type: Bug
> Affects Versions: 5.1.0
> Reporter: Praneeth
> Assignee: Andras Salamon
> Priority: Major
> Attachments: OOZIE-3409-01.patch
>
>
> I have noticed that there is a potential memory leak in the Oozie server due
> to one of its dependencies - {{commons-el:commons-el:1.0}}. Our oozie servers
> have been running out of memory occasionally. It happens more often when we
> have more activity. Upon analysis of the heap dump, it seems that the culprit
> here is the {{org.apache.commons.el.ExpressionEvaluatorImpl}} from
> {{commons-el}} which is used in the Oozie server through
> {{org.apache.oozie.util.ELEvaluator}} [1] . {{ExpressionEvaluatorImpl}} uses
> a static {{Map}} [2] to cache the EL evaluations. This map never gets
> cleared, eventually taking up all the memory. So, in an environment with
> heavy usage and long running oozie servers, this would lead to an OOM. The
> configurations for workflow actions we have are possibly larger than normal
> which is worsening the situation as the Map has to maintain larger strings.
> #
> [https://github.com/apache/oozie/blob/release-5.1.0/core/src/main/java/org/apache/oozie/util/ELEvaluator.java#L143]
> #
> [http://svn.apache.org/viewvc/commons/dormant/el/trunk/src/java/org/apache/commons/el/ExpressionEvaluatorImpl.java?view=markup#l94]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)