<?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>question spark-shell java.lang.OutOfMemoryError: PermGen space in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-shell-java-lang-OutOfMemoryError-PermGen-space/m-p/8772#M1578</link>
    <description>&lt;P&gt;I'm using the spark-shell to run a linear regression on a small data set with 5000 observations, but I get a "java.lang.OutOfMemoryError: PermGen space" error message. How can I increase the MaxPermSize for the spark-shell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 08:57:26 GMT</pubDate>
    <dc:creator>steff</dc:creator>
    <dc:date>2022-09-16T08:57:26Z</dc:date>
    <item>
      <title>spark-shell java.lang.OutOfMemoryError: PermGen space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-shell-java-lang-OutOfMemoryError-PermGen-space/m-p/8772#M1578</link>
      <description>&lt;P&gt;I'm using the spark-shell to run a linear regression on a small data set with 5000 observations, but I get a "java.lang.OutOfMemoryError: PermGen space" error message. How can I increase the MaxPermSize for the spark-shell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:57:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-shell-java-lang-OutOfMemoryError-PermGen-space/m-p/8772#M1578</guid>
      <dc:creator>steff</dc:creator>
      <dc:date>2022-09-16T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: spark-shell java.lang.OutOfMemoryError: PermGen space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-shell-java-lang-OutOfMemoryError-PermGen-space/m-p/8790#M1579</link>
      <description>&lt;P&gt;(By the way, there is a separate forum for Spark:&amp;nbsp;&lt;A target="_blank" href="http://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/bd-p/Spark"&gt;http://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/bd-p/Spark&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the error is definitely in the shell / REPL, then I believe you just want to set&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;SPARK_REPL_OPTS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;SPARK_REPL_OPTS&lt;SPAN&gt;="-XX:MaxPermSize=256m" spark-shell&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find this other setting can help with permgen usage in Scala, which is an issue when running tests too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;SPARK_REPL_OPTS&lt;SPAN style="line-height: 1.2;"&gt;="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m" spark-shell&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 06:47:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-shell-java-lang-OutOfMemoryError-PermGen-space/m-p/8790#M1579</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-04-15T06:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: spark-shell java.lang.OutOfMemoryError: PermGen space</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-shell-java-lang-OutOfMemoryError-PermGen-space/m-p/8806#M1580</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great that solved my problem.&amp;nbsp;&lt;SPAN style="font-size: 11px; line-height: 1.2;"&gt;i'll use the Spark dedicated forum from now on for Spark related questions thanks for pointing that out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 16:26:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/spark-shell-java-lang-OutOfMemoryError-PermGen-space/m-p/8806#M1580</guid>
      <dc:creator>steff</dc:creator>
      <dc:date>2014-04-15T16:26:10Z</dc:date>
    </item>
  </channel>
</rss>

