GitHub user tedyu opened a pull request:

    https://github.com/apache/spark/pull/8896

    Reset ObjectOutputStream to prevent OOME

    In the thread, Spark ClosureCleaner or java serializer OOM when trying to 
grow, Jay Luan reported that ClosureCleaner#ensureSerializable() resulted in 
OOME.
    
    The cause was that ObjectOutputStream keeps a strong reference of every 
object that was written to it.
    
    This PR tries to avoid OOME by calling reset().

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tedyu/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/8896.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #8896
    
----
commit 1d78e9044cf2033b010d765fee5424746007fd52
Author: tedyu <yuzhih...@gmail.com>
Date:   2015-09-24T02:36:47Z

    Reset ObjectOutputStream to prevent OOME

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to