<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Pavol,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks for looking into this. I created a ticket in the Evolveum Jira, here is a link to it: <a href="https://jira.evolveum.com/browse/MID-6145" style="font-family:Arial,Helvetica,sans-serif">https://jira.evolveum.com/browse/MID-6145</a> . I was able to do some further troubleshooting and included additional details and a sample. Setting workerThreads to 0 did not seem to help. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks!</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Forest</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 27, 2020 at 12:35 PM Pavol Mederly <<a href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hello Forest,</p>
<p>I am afraid that this is not your bug, but midPoint's.</p>
<p>If you would create a JIRA issue at <a href="https://jira.evolveum.com" target="_blank">jira.evolveum.com</a> I would
try to diagnose it. (As a minimum we could improve the warning
message.)</p>
<p>And, a quick question: if you set workerThreads for the task to
0, is the issue still present?</p>
<p>Best regards,<br>
</p>
<pre cols="72">Pavol Mederly
Software developer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
<div>On 18/03/2020 21:56, Forest Crowley
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span></span></span><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span></span></span>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi List, </span></span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</span></span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif">I've
noticed since moving onto Midpoint 4.0.2 from 3.9 that
my logs have been filled with warnings such as this:</span></span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</span></span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span></span></span></div>
<div class="gmail_default">
<div><font face="monospace"><span class="gmail_default"></span>2020-03-18
14:23:38,491 [MODEL] [pool-3-thread-7] WARN
(com.evolveum.midpoint.model.common.expression.functions.CustomFunctions):<span class="gmail_default"></span> 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)</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div>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. </div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Does anyone know why my custom function calls are not
able to get a ScriptExpressionEvaluationContext? Any ideas
on how I could troubleshoot this further?</div>
<div><br>
</div>
<div>Thanks, </div>
<div><br>
</div>
<div>Forest</div>
<div><br>
</div>
</div>
<div>-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Forest B. Crowley
<div>Information Security </div>
<div><span style="font-size:12.8px">Lehigh
University</span></div>
<div><span style="font-size:12.8px">610-758-3838</span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Forest B. Crowley<div>Information Security </div><div><span style="font-size:12.8px">Lehigh University</span></div><div><span style="font-size:12.8px">610-758-3838</span><br></div></div></div></div></div></div></div></div></div></div></div>