[
https://issues.apache.org/jira/browse/SPARK-32015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wan Kun updated SPARK-32015:
----------------------------
Description:
There is still a reference(eg. `java.lang.ApplicationShutdownHooks` ->
`org.apache.hive.common.util.ShutdownHookManager$1` -> `SparkContext`) to
`sparkContext` after the spark context is stopped, so the JVM cannot collect
that.
If we start and stop sparkSession several times, there will be a OOM exception.
!https://img-blog.csdnimg.cn/2020051111561087.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dhbmt1bmRl,size_16,color_FFFFFF,t_70!
was:
There is still a reference(eg. `java.lang.ApplicationShutdownHooks` ->
`org.apache.hive.common.util.ShutdownHookManager$1` -> `SparkContext`) to
`sparkContext` after the spark context is stopped, so the JVM cannot collect
that.
If we start and stop sparkSession several times, there will be a OOM exception.
> Remote inheritable thread local variables after spark context is stopped
> ------------------------------------------------------------------------
>
> Key: SPARK-32015
> URL: https://issues.apache.org/jira/browse/SPARK-32015
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 3.0.0
> Reporter: Wan Kun
> Priority: Major
> Attachments: screenshot-1.png
>
>
> There is still a reference(eg. `java.lang.ApplicationShutdownHooks` ->
> `org.apache.hive.common.util.ShutdownHookManager$1` -> `SparkContext`) to
> `sparkContext` after the spark context is stopped, so the JVM cannot collect
> that.
> If we start and stop sparkSession several times, there will be a OOM
> exception.
>
> !https://img-blog.csdnimg.cn/2020051111561087.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dhbmt1bmRl,size_16,color_FFFFFF,t_70!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]