You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Janardhan Reddy <ja...@olacabs.com> on 2016/08/17 18:01:26 UTC

off heap memory deallocation

Hi,

When does off heap memory gets deallocated ? Does it get deallocated only
when gc is triggered ? When does the gc gets triggered other than when the
direct memory reached -XX::MaxDirectMemory limit passed in jvm flag.

Thanks

Re: off heap memory deallocation

Posted by Maximilian Michels <mx...@apache.org>.
Hi,

Off-heap memory currently only gets deallocated once MaxDirectMemory
has been reached. We can't manually clear the memory because some of
the code assumes that it can still access old memory after it has been
released. In case of offheap memory, that would give us a segmentation
fault.

We currently recommend not to use offheap memory with lazy memory
allocation (preallocation: false).

Best,
Max

On Wed, Aug 17, 2016 at 8:01 PM, Janardhan Reddy
<ja...@olacabs.com> wrote:
> Hi,
>
> When does off heap memory gets deallocated ? Does it get deallocated only
> when gc is triggered ? When does the gc gets triggered other than when the
> direct memory reached -XX::MaxDirectMemory limit passed in jvm flag.
>
> Thanks