On 29/06/2018 11:09 PM, Anton Fediushin wrote: > It is GC's fault for sure, I built my program with profile-gc and it > allocated a lot there. Question is, why doesn't it free this memory? Probably doesn't know that it should deallocate so eagerly. A GC.collect(); call may help.