You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ken Krugler (JIRA)" <ji...@apache.org> on 2019/07/30 20:49:00 UTC

[jira] [Commented] (FLINK-13472) taskmanager.jvm-exit-on-oom doesn't work reliably with YARN

    [ https://issues.apache.org/jira/browse/FLINK-13472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896510#comment-16896510 ] 

Ken Krugler commented on FLINK-13472:
-------------------------------------

Hi [~pawelbartoszek] - In my experience, when a Flink workflow fails when running on YARN, often the Job Manager is left alive, so it looks like the job is still running, but it's only using a small amount of memory.

I don't know if this is a Flink bug or a YARN issue, but I'd suggest first discussing it on the user mailing list, before filing a bug in Jira, thanks.

> taskmanager.jvm-exit-on-oom doesn't work reliably with YARN
> -----------------------------------------------------------
>
>                 Key: FLINK-13472
>                 URL: https://issues.apache.org/jira/browse/FLINK-13472
>             Project: Flink
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.6.3
>            Reporter: Pawel Bartoszek
>            Priority: Major
>
> I have added *taskmanager.jvm-exit-on-oom* flag to the task manager starting arguments. During my testing (simulating oom) I noticed that sometimes YARN containers were still in RUNNING state even though they should haven been killed on OutOfMemory errors with the flag on.
> I could find RUNNING containers with the last log lines like this. 
> {code:java}
> 2019-07-26 13:32:51,396 ERROR org.apache.flink.runtime.taskmanager.Task                     - Encountered fatal error java.lang.OutOfMemoryError - terminating the JVM
> java.lang.OutOfMemoryError: Metaspace
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
> 	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:369){code}
>  
> Does YARN make it tricky to forcefully kill JVM after OutOfMemory error? 
>  
> *Workaround*
>  
> When using -XX:+ExitOnOutOfMemoryError JVM flag containers get always terminated!



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)