[midPoint] OperationResult memory leaking, "No ScriptExpressionEvaluationContext for current thread found."

Forest Crowley fbc216 at lehigh.edu
Sat Mar 28 01:02:51 CET 2020


Hi Pavol,

Thanks for looking into this. I created a ticket in the Evolveum Jira, here
is a link to it: https://jira.evolveum.com/browse/MID-6145 . I was able to
do some further troubleshooting and included additional details and a
sample. Setting workerThreads to 0 did not seem to help.

Thanks!

Forest

On Fri, Mar 27, 2020 at 12:35 PM Pavol Mederly <mederly at evolveum.com> wrote:

> Hello Forest,
>
> I am afraid that this is not your bug, but midPoint's.
>
> If you would create a JIRA issue at jira.evolveum.com I would try to
> diagnose it. (As a minimum we could improve the warning message.)
>
> And, a quick question: if you set workerThreads for the task to 0, is the
> issue still present?
>
> Best regards,
>
> Pavol Mederly
> Software developerevolveum.com
>
> On 18/03/2020 21:56, Forest Crowley wrote:
>
> Hi List,
>
> I've noticed since moving onto Midpoint 4.0.2 from 3.9 that my logs have
> been filled with warnings such as this:
>
> 2020-03-18 14:23:38,491 [MODEL] [pool-3-thread-7] WARN
> (com.evolveum.midpoint.model.common.expression.functions.CustomFunctions):
> No ScriptExpressionEvaluationContext for current thread found. Using
> initialization-time task and operation result: Task(id:1565719367356-0-1,
> name:TestCaseReconcile, oid:27ea7035-a8db-42cd-b2a2-cb997b30e6f9)
>
> At the same time I have also noticed that while large tasks are being
> executed the heap slowly fills up and eventually Midpoint becomes
> unresponsive. I took a heap dump and found a massive OperationResult object
> retaining over 90% of my 14GB heap. Forcing garbage collection with
> something like VisualVM doesn't seem to free the memory, even after the
> task is done running.
>
> My assumption is that the giant OperationResult is made up of whatever
> data is being appended to it by the CustomFunctions executions. I've traced
> the CustomFunctions class and the warning seems intermittent, in the same
> thread sometimes for a given function it'll throw the warning, sometimes it
> won't.
>
> Does anyone know why my custom function calls are not able to get a
> ScriptExpressionEvaluationContext? Any ideas on how I could troubleshoot
> this further?
>
> Thanks,
>
> Forest
>
> --
> Forest B. Crowley
> Information Security
> Lehigh University
> 610-758-3838
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttps://lists.evolveum.com/mailman/listinfo/midpoint
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>


-- 
Forest B. Crowley
Information Security
Lehigh University
610-758-3838
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200327/e1105c62/attachment.htm>


More information about the midPoint mailing list