You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Supun Nakandala (Jira)" <ji...@apache.org> on 2023/01/23 20:44:00 UTC

[jira] [Created] (SPARK-42162) Memory usage on executors increased drastically for a complex query with large number of addition operations

Supun Nakandala created SPARK-42162:
---------------------------------------

             Summary: Memory usage on executors increased drastically for a complex query with large number of addition operations
                 Key: SPARK-42162
                 URL: https://issues.apache.org/jira/browse/SPARK-42162
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.3.0
            Reporter: Supun Nakandala


With the [recent changes|https://github.com/apache/spark/pull/37851]  in the expression canonicalization, a complex query with a large number of Add operations ends up consuming 10x more memory on the executors.

A heap histogram analysis shows that a large number of Add objects use the extra memory.
Before the PR [#37851|https://github.com/apache/spark/pull/37851], this issue does not happen.

The high memory usage causes the executors to lose heartbeat signals and cause task failures.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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