User Tools

Site Tools


faq:technical:how_do_i_run_the_garbage_collector_in_a_macro_or_plugin

FAQ: How do I run the garbage collector in a macro or plugin?

If a macro or plugin runs out of memory, you can force garbage collection.

The Java Virtual Machine does garbage collection automatically as necessary, but this can also be forced at a particular time in a plugin or a macro.

In a macro use the call() function (needs version 1.37e):

call("java.lang.System.gc");

In a plugin use the call:

System.gc();
faq/technical/how_do_i_run_the_garbage_collector_in_a_macro_or_plugin.txt ยท Last modified: 2019/04/12 13:13 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki