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

Pavol Mederly mederly at evolveum.com
Fri Mar 27 17:35:50 CET 2020


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 
<https://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 developer
evolveum.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 list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200327/2cda2f15/attachment.htm>


More information about the midPoint mailing list