Hi, thanks for reaching out to the community. Could you share a bit more details about the cluster setup (session cluster, per-job cluster deployment), Flink version and maybe also share the logs with us? Sharing your user code and the libraries you are using can also be helpful in figuring out what is going wrong.
Cheers, Till On Mon, Aug 24, 2020 at 10:22 AM 耿延杰 <gyj199...@qq.com> wrote: > Hi, > > I catch "OutOfMemoryError: Metaspace" on Batch Task When Write into > Clickhouse. > Attached *.java file is my task code. > > And I find that, after running 12 tasks, the 13th task will be failed. And > the exception always is "OutOfMemoryError: Metaspace". see "task-failed.png" > > I conf -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/hprofFile > and dump the hprof file. > I analyse this hprof file. And find this error occurs may not caused by my > user-code. > So I came here ask for your help. To confirm whether the memory leak > should be caused by Flink. > > Attached file "java_pid29294.hprof" is the dump file. > > Thanks. > > > > ------------------------------ > *从QQ邮箱发来的超大附件* > > <http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=71666339b499dbc2277cdd0e13640117095206000051525e14545b010349075a0a504e01570607155c020200015550080d55570e3577335258100266450d570a00545a0d1b0c434a56006304&code=9fc95d38> > java_pid29294.hprof > <http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=71666339b499dbc2277cdd0e13640117095206000051525e14545b010349075a0a504e01570607155c020200015550080d55570e3577335258100266450d570a00545a0d1b0c434a56006304&code=9fc95d38> > (81.44M, 2020年09月23日 16:05 到期) > 进入下载页面 > <http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=71666339b499dbc2277cdd0e13640117095206000051525e14545b010349075a0a504e01570607155c020200015550080d55570e3577335258100266450d570a00545a0d1b0c434a56006304&code=9fc95d38> > : > http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=71666339b499dbc2277cdd0e13640117095206000051525e14545b010349075a0a504e01570607155c020200015550080d55570e3577335258100266450d570a00545a0d1b0c434a56006304&code=9fc95d38 >