Posted by a ceTe Software moderator
Hello,
After looking into this further, it looks like "out of memory" exception is not coming from heap area but coming from native(non java) memory area. So can you try to enable incremental gc using -Xincgc instead -Xms and -Xmx and another option to try is, after call to the draw method call System.runFinalization() method.
If both solutions do not work, please send us the code that you are uing so that we can try to recreate it on our end.
Thanks,
ceTe Software Support Team