In addition to Sergey's suggestion of SYS(3050), you might also want to call SYS(1104) periodically, especially after code sections that may use a lot of memory (e.g. SELECT - SQL).
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up