Forcing Garbage Collection

Is there a way to force the garbage collection ?

I used this quite often years back. I will say that my earlier loop construction methods were occasionally sub-par, so I lean on it much less these days. Double check on how loops are being processed and closed out if that may be relevant to your workflows.

5 Likes

Hi @TIER1APP_YCRASH , as an example of advice re loops that @iCFO gave, see this post in which the OP did not actually need to collect the results of a loop, so instead could potentially replace the loop end with a variable loop end. This means the collected data is no longer needed and becomes inaccessible (de-referenced).

When the underlying java code finds that the collected data is “de-referenced” the (automatic) garbage collection should then be able handle the clean up more effectively.

3 Likes