You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Phoebe Kwok <ph...@primer.ai> on 2022/03/22 19:37:31 UTC

Flink OOM issue

Hello,

We encountered OOM in the pipeline sink step on a consistent basis. How can
we debug this?

Below is the error:

java.lang.OutOfMemoryError: Metaspace. The metaspace out-of-memory error
has occurred. This can mean two things: either the job requires a larger
size of JVM metaspace to load classes or there is a class loading leak. In
the first case 'taskmanager.memory.jvm-metaspace.size' configuration option
should be increased. If the error persists (usually in cluster after
several job (re-)submissions) then there is probably a class loading leak
in user code or some of its dependencies which has to be investigated and
fixed. The task executor has to be shutdown...

Thanks!

Re: Flink OOM issue

Posted by 胡伟华 <hu...@gmail.com>.
Hi, Phoebe
Which version of Flink are you using?
This OOM shows insufficient meta space. As the error message says, you can increase 'taskmanager.memory.jvm-metaspace.size’(default value is 256m) and check if this error persists


> 2022年3月23日 上午3:37,Phoebe Kwok <ph...@primer.ai> 写道:
> 
> java.lang.OutOfMemoryError: Metaspace