<?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: Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95406#M8755</link>
    <description>&lt;P&gt;I have seen a similar issue a couple weeks ago. Ambari was running fine, but after some time I had to restart ambari-server because Ambari Metrics was spamming the ambari log.&lt;/P&gt;&lt;P&gt;If you have Ambari Metrics installed and enabled, could you please stop the service, restart ambari server and see if the problem still occurs? Also make sure you Ambari Metrics Service is configured correctly, especially the heap (usually too low by default). Check this link for heap tuning &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 14:14:48 GMT</pubDate>
    <dc:creator>jstraub</dc:creator>
    <dc:date>2015-10-14T14:14:48Z</dc:date>
    <item>
      <title>Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95405#M8754</link>
      <description>&lt;P&gt;Ambari (2.1.1) is configued to run with 12 GBs of RAM in a small 4 node cluster. It still freezes up after running fine for a period of time and then just hangs. &lt;/P&gt;&lt;P&gt;Here are some of the errors seen in the log files - &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambari-server.log&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;12 Oct 2015 13:04:56,303 ERROR [qtp-client-18920] MetricsPropertyProvider:183 - Error getting timeline metrics. Can not connect to collector, socket error.

12 Oct 2015 13:19:16,643 ERROR [qtp-client-18897] MetricsPropertyProvider:183 - Error getting timeline metrics. Can not connect to collector, socket error.

12 Oct 2015 16:02:46,153  WARN [qtp-client-19308] nio:726 - handle failed

13 Oct 2015 02:19:55,555  WARN [Timer-0] ThreadPoolAsynchronousRunner:608 - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@4214238c -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;ambari-server.out&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3175"
Exception in thread "alert-event-bus-3179" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3179"
Exception in thread "alert-event-bus-3178" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3178"
Exception in thread "alert-event-bus-3180" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3180"
Exception in thread "alert-event-bus-3181" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3181"
Exception in thread "alert-event-bus-3182" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3182"
Exception in thread "alert-event-bus-3183" Exception in thread "alert-event-bus-3184" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3183"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "alert-event-bus-3184"
&lt;/PRE&gt;&lt;P&gt;Thread Dump shows threads in following states (count - state)&lt;/P&gt;&lt;PRE&gt;   3    java.lang.Thread.State: BLOCKED (on object monitor)
  18    java.lang.Thread.State: RUNNABLE
   9    java.lang.Thread.State: TIMED_WAITING (on object monitor)
  15    java.lang.Thread.State: TIMED_WAITING (parking)
   4    java.lang.Thread.State: WAITING (on object monitor)
  10    java.lang.Thread.State: WAITING (parking)
&lt;/PRE&gt;&lt;P&gt;An impetus consultant working on the effort notice that there were too many open connections to postgres DB.&lt;/P&gt;&lt;P&gt;Any ideas are appreciated. &lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 12:34:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95405#M8754</guid>
      <dc:creator>bsaini</dc:creator>
      <dc:date>2015-10-14T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95406#M8755</link>
      <description>&lt;P&gt;I have seen a similar issue a couple weeks ago. Ambari was running fine, but after some time I had to restart ambari-server because Ambari Metrics was spamming the ambari log.&lt;/P&gt;&lt;P&gt;If you have Ambari Metrics installed and enabled, could you please stop the service, restart ambari server and see if the problem still occurs? Also make sure you Ambari Metrics Service is configured correctly, especially the heap (usually too low by default). Check this link for heap tuning &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:14:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95406#M8755</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-10-14T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95407#M8756</link>
      <description>&lt;P&gt;You need to increase the memory settings for Ambari.  I ran into this a while back with certain views.&lt;/P&gt;&lt;P&gt;I added/adjusted the following in:&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/ambari-env.sh&lt;/PRE&gt;&lt;P&gt;For "AMBARI_JVM_ARGS"&lt;/P&gt;&lt;PRE&gt;-Xmx4G -XX:MaxPermSize=512m&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Oct 2015 15:47:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95407#M8756</guid>
      <dc:creator>dstreev</dc:creator>
      <dc:date>2015-10-14T15:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95408#M8757</link>
      <description>&lt;P&gt;FWIW, PermGen space has been removed from Java 8, this last param will generate a warning.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:48:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95408#M8757</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-10-14T19:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95409#M8758</link>
      <description>&lt;P&gt;Using views requires increasing both the Xmx and MaxPermSize, documentation mentioning that is located here: &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_ambari_views_guide/content/ch_using_ambari_views.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_ambari_views_guide/content/ch_using_ambari_views.html&lt;/A&gt;.  If you hit this dead lock again please capture the jstack output for the Ambari Server process and work with support to see what the issue is.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:29:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95409#M8758</guid>
      <dc:creator>pcodding</dc:creator>
      <dc:date>2015-10-14T20:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95410#M8759</link>
      <description>&lt;P&gt;If you are seeing deadlock on Ambari 2.1.2 , it would be due to Ambari Views Instance creation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.jira.com/browse/EAR-2415" target="_blank"&gt;https://hortonworks.jira.com/browse/EAR-2415&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 08:19:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95410#M8759</guid>
      <dc:creator>smishra1</dc:creator>
      <dc:date>2015-10-15T08:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari freezes after running fine for a period of time. Shows OOM errors &amp; requires a restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95411#M8760</link>
      <description>&lt;P&gt;&lt;STRONG&gt;A. Run Ambari Metrics in Distributed Mode rather than embedded &lt;/STRONG&gt;If you are running with more than 3 nodes, I strongly suggest 
running in distributed mode and writing hbase.root.dir contents to hdfs 
directly, rather than to the local disk of a single node. This applies 
to already installed and running IOP clusters.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Ambari Web UI, select the Ambari Metrics service and navigate to Configs. Update the following properties:&lt;UL&gt;&lt;LI&gt;General &amp;gt; Metrics Service operation mode=distributed

&lt;IMG src="https://ip1.i.lithium.com/1457554fc92753fef33d361a2cb8e2576c15ed3a/68747470733a2f2f69322e77702e636f6d2f646576656c6f7065722e69626d2e636f6d2f6861646f6f702f77702d636f6e74656e742f75706c6f6164732f73697465732f32382f323031362f30312f616d735f706572666f726d616e63655f74756e696e675f4131312e6a70673f726573697a653d333439253243313139" alt="ams_performance_tuning_A11" /&gt;&lt;/LI&gt;&lt;LI&gt;Advanced ams-hbase-site &amp;gt; hbase.cluster.distributed=true

&lt;A href="https://i2.wp.com/developer.ibm.com/hadoop/wp-content/uploads/sites/28/2016/01/ams_performance_tuning_A13.jpg"&gt;&lt;IMG src="https://ip1.i.lithium.com/7c4ad534fcdc265acc1c8beb0d01cfcaa2755890/68747470733a2f2f69322e77702e636f6d2f646576656c6f7065722e69626d2e636f6d2f6861646f6f702f77702d636f6e74656e742f75706c6f6164732f73697465732f32382f323031362f30312f616d735f706572666f726d616e63655f74756e696e675f4131332e6a70673f726573697a653d3832352532433533" alt="ams_performance_tuning_A13" /&gt;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Advanced ams-hbase-site &amp;gt; hbase.root.dir=hdfs://namenode.fqdn.example.org:8020/amshbase

&lt;A href="https://i2.wp.com/developer.ibm.com/hadoop/wp-content/uploads/sites/28/2016/01/ams_performance_tuning_A12.jpg"&gt;&lt;IMG src="https://ip1.i.lithium.com/366108a58e9229df37f5957f0e8349ca52cd080a/68747470733a2f2f69322e77702e636f6d2f646576656c6f7065722e69626d2e636f6d2f6861646f6f702f77702d636f6e74656e742f75706c6f6164732f73697465732f32382f323031362f30312f616d735f706572666f726d616e63655f74756e696e675f4131322e6a70673f726573697a653d3832302532433835" alt="ams_performance_tuning_A12" /&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Restart Metrics Collector and affected Metrics monitors&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:28:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-freezes-after-running-fine-for-a-period-of-time-Shows/m-p/95411#M8760</guid>
      <dc:creator>m_ghareeb</dc:creator>
      <dc:date>2016-06-02T19:28:50Z</dc:date>
    </item>
  </channel>
</rss>

