<?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 Re: Exception in thread &amp;quot;main&amp;quot; java.lang.OutOfMemoryError: GC overhead limit exceeded in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/29662#M5382</link>
    <description>That fixed it for me! Thanks Harsh</description>
    <pubDate>Thu, 16 Jul 2015 08:29:23 GMT</pubDate>
    <dc:creator>htailor</dc:creator>
    <dc:date>2015-07-16T08:29:23Z</dc:date>
    <item>
      <title>Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/25740#M5380</link>
      <description>&lt;P&gt;I have around &amp;nbsp;3 lacs files stored in directory on hdfs. &amp;nbsp;When i tried to access that folder using following command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hadoop fs -copyToLocal /user/docsearch/data/DiscardedAttachments /opt/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting following issue :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded&lt;BR /&gt;at java.lang.AbstractStringBuilder.&amp;lt;init&amp;gt;(AbstractStringBuilder.java:64)&lt;BR /&gt;at java.lang.StringBuffer.&amp;lt;init&amp;gt;(StringBuffer.java:108)&lt;BR /&gt;at java.net.URI.decode(URI.java:2756)&lt;BR /&gt;at java.net.URI.getPath(URI.java:1318)&lt;BR /&gt;at org.apache.hadoop.fs.Path.isUriPathAbsolute(Path.java:210)&lt;BR /&gt;at org.apache.hadoop.fs.Path.isAbsolute(Path.java:223)&lt;BR /&gt;at org.apache.hadoop.fs.Path.makeQualified(Path.java:335)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.makeQualified(DistributedFileSystem.java:373)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.listStatus(DistributedFileSystem.java:445)&lt;BR /&gt;at org.apache.hadoop.fs.shell.PathData.getDirectoryContents(PathData.java:213)&lt;BR /&gt;at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:337)&lt;BR /&gt;at org.apache.hadoop.fs.shell.CommandWithDestination.recursePath(CommandWithDestination.java:193)&lt;BR /&gt;at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:308)&lt;BR /&gt;at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:278)&lt;BR /&gt;at org.apache.hadoop.fs.shell.CommandWithDestination.processPathArgument(CommandWithDestination.java:147)&lt;BR /&gt;at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:260)&lt;BR /&gt;at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:244)&lt;BR /&gt;at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:124)&lt;BR /&gt;at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:190)&lt;BR /&gt;at org.apache.hadoop.fs.shell.Command.run(Command.java:154)&lt;BR /&gt;at org.apache.hadoop.fs.FsShell.run(FsShell.java:254)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)&lt;BR /&gt;at org.apache.hadoop.fs.FsShell.main(FsShell.java:304)&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also did some changes in heap size of hdfs daemons, assigned 4GB to namenode and all datanodes. Still facing same issue. Need urgent help&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:25:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/25740#M5380</guid>
      <dc:creator>sandyws</dc:creator>
      <dc:date>2022-09-16T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/28890#M5381</link>
      <description>You need to raise the client heap size. For a one-off change, you can do the below:&lt;BR /&gt;&lt;BR /&gt;~&amp;gt; export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Xmx5g"&lt;BR /&gt;~&amp;gt; hadoop fs -copyToLocal /user/docsearch/data/DiscardedAttachments /opt/&lt;BR /&gt;&lt;BR /&gt;For a more permanent change, locate Gateway Client Java Heap configs in the relevant service (HDFS, YARN or Hive) in CM, raise the value and redeploy cluster-wide configs [1].&lt;BR /&gt;&lt;BR /&gt;[1] - &lt;A target="_blank" href="https://www.youtube.com/watch?v=4S9H3wftM_0"&gt;https://www.youtube.com/watch?v=4S9H3wftM_0&lt;/A&gt;</description>
      <pubDate>Wed, 24 Jun 2015 17:25:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/28890#M5381</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-06-24T17:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/29662#M5382</link>
      <description>That fixed it for me! Thanks Harsh</description>
      <pubDate>Thu, 16 Jul 2015 08:29:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/29662#M5382</guid>
      <dc:creator>htailor</dc:creator>
      <dc:date>2015-07-16T08:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/30087#M5383</link>
      <description>Glad to hear; Please consider marking the topic as resolved so others with similar issues can find it easily.</description>
      <pubDate>Mon, 27 Jul 2015 10:25:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-lang/m-p/30087#M5383</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-07-27T10:25:38Z</dc:date>
    </item>
  </channel>
</rss>

