Andrey Zagrebin created FLINK-15989:
---------------------------------------

             Summary: Rewrap OutOfMemoryError in allocateUnpooledOffHeap with 
better message
                 Key: FLINK-15989
                 URL: https://issues.apache.org/jira/browse/FLINK-15989
             Project: Flink
          Issue Type: Improvement
            Reporter: Andrey Zagrebin
             Fix For: 1.10.1, 1.11.0


Now if Flink allocates direct memory in 
MemorySegmentFactory#allocateUnpooledOffHeapMemory and its limit is exceeded 
for any reason, e.g. user code over-allocated direct memory, 
ByteBuffer#allocateDirect will throw a generic "OutOfMemoryError: Direct buffer 
memory". We can catch it and add a message which provides more explanation and 
points to an option taskmanager.memory.task.off-heap.size to increase as a 
possible solution.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to