[ https://issues.apache.org/jira/browse/FLINK-16408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178758#comment-17178758 ]
Echo Lee edited comment on FLINK-16408 at 8/17/20, 6:44 AM: ------------------------------------------------------------ Hi [~trohrmann] If I cancel and submit the same application and keep repeating it, will this classloader be reused? I use flink 1.11.0 standalone mode. It seems that the metaspace of taskmanager is increasing every time I restart the job. What do you think [~trohrmann] ? !Metaspace-OOM.png! was (Author: echo lee): Hi [~trohrmann] If I cancel and submit the same application and keep repeating it, will this classloader be reused? I use Flink 1.11.0. It seems that the metaspace of taskmanager is increasing every time I restart the job. What do you think [~trohrmann] ? !Metaspace-OOM.png! > Bind user code class loader to lifetime of a slot > ------------------------------------------------- > > Key: FLINK-16408 > URL: https://issues.apache.org/jira/browse/FLINK-16408 > Project: Flink > Issue Type: Improvement > Components: Runtime / Coordination > Affects Versions: 1.9.2, 1.10.0 > Reporter: Till Rohrmann > Assignee: Till Rohrmann > Priority: Critical > Labels: pull-request-available > Fix For: 1.11.0 > > Attachments: Metaspace-OOM.png > > > In order to avoid class leaks due to creating multiple user code class > loaders and loading class multiple times in a recovery case, I would suggest > to bind the lifetime of a user code class loader to the lifetime of a slot. > More precisely, the user code class loader should live at most as long as the > slot which is using it. -- This message was sent by Atlassian Jira (v8.3.4#803005)