<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JVM Heap Memory Graph - more memory used than available in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/jvm-heap-memory-graph-more-memory-used-than-available/m-p/106802#M2825</link>
    <description>&lt;P&gt;I'm analyzing the memory usage of my Spark application and I see something strange when checking JVM Heap Memory Graph (see screenshot below). Each line on the graph is representing one executor.&lt;/P&gt;&lt;P&gt;Why the memory usage sometimes reaches over 10GB, when my spark.executor.memory is set to be 7GB? How is this possible that more memory is used than actually is available?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 13:12:10 GMT</pubDate>
    <dc:creator>dbuserng</dc:creator>
    <dc:date>2025-01-23T13:12:10Z</dc:date>
    <item>
      <title>JVM Heap Memory Graph - more memory used than available</title>
      <link>https://community.databricks.com/t5/administration-architecture/jvm-heap-memory-graph-more-memory-used-than-available/m-p/106802#M2825</link>
      <description>&lt;P&gt;I'm analyzing the memory usage of my Spark application and I see something strange when checking JVM Heap Memory Graph (see screenshot below). Each line on the graph is representing one executor.&lt;/P&gt;&lt;P&gt;Why the memory usage sometimes reaches over 10GB, when my spark.executor.memory is set to be 7GB? How is this possible that more memory is used than actually is available?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 13:12:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/jvm-heap-memory-graph-more-memory-used-than-available/m-p/106802#M2825</guid>
      <dc:creator>dbuserng</dc:creator>
      <dc:date>2025-01-23T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: JVM Heap Memory Graph - more memory used than available</title>
      <link>https://community.databricks.com/t5/administration-architecture/jvm-heap-memory-graph-more-memory-used-than-available/m-p/107720#M2893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/144942"&gt;@dbuserng&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The memory usage in your Spark application can exceed the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.executor.memory&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;setting of 7GB for several reasons:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;•&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG data-stringify-type="bold"&gt;Off-Heap Memory Usage&lt;/STRONG&gt;&lt;SPAN&gt;: Spark allows for off-heap memory allocation, which is not managed by the JVM garbage collector. This is controlled by the settings&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.memory.offHeap.enabled&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.memory.offHeap.size&lt;/CODE&gt;&lt;SPAN&gt;. If off-heap memory is enabled, the total memory usage can exceed the JVM heap size allocated by&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.executor.memory&lt;/CODE&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check if off-heap memory is enabled and adjust the settings&amp;nbsp;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.memory.offHeap.enabled&lt;/CODE&gt;&amp;nbsp;and&amp;nbsp;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.memory.offHeap.size&lt;/CODE&gt;&amp;nbsp;accordingly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 08:03:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/jvm-heap-memory-graph-more-memory-used-than-available/m-p/107720#M2893</guid>
      <dc:creator>Sidhant07</dc:creator>
      <dc:date>2025-01-30T08:03:49Z</dc:date>
    </item>
  </channel>
</rss>

