You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/09/07 07:19:00 UTC

[jira] [Commented] (SPARK-21941) Stop storing unused attemptId in SQLTaskMetrics

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

Apache Spark commented on SPARK-21941:
--------------------------------------

User 'ash211' has created a pull request for this issue:
https://github.com/apache/spark/pull/19153

> Stop storing unused attemptId in SQLTaskMetrics
> -----------------------------------------------
>
>                 Key: SPARK-21941
>                 URL: https://issues.apache.org/jira/browse/SPARK-21941
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 2.2.0
>            Reporter: Andrew Ash
>
> Currently SQLTaskMetrics has a long attemptId field on it that is unused, with a TODO saying to populate the value in the future.  We should save this memory by leaving the TODO but taking the unused field out of the class.
> I have a driver that heap dumped on OOM and has 390,105 instances of SQLTaskMetric -- removing this 8 bytes field will save roughly 390k*8 = 3.1MB of heap space.  It's not going to fix my OOM, but there's no reason to put this pressure on the GC if we don't get anything by storing it.
> https://github.com/apache/spark/blob/v2.2.0/sql/core/src/main/scala/org/apache/spark/sql/execution/ui/SQLListener.scala#L485



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org