<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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 moz-do-not-send="true"
href="https://jira.evolveum.com">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 class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 18/03/2020 21:56, Forest Crowley
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAL+tFR9y=i8z-zcYNCHUyeO4uaRrt6GGHkseQQrDLZRCiO406w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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" data-smartmail="gmail_signature">
<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 class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>