<?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: JVM + still have Detected pause in JVM in spite heap size decreased in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/357858#M237684</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="c-virtual_list__item c-virtual_list__item--initial-activeitem"&gt;&lt;DIV class="c-message_kit__background c-message_kit__background--hovered p-message_pane_message__message c-message_kit__message"&gt;&lt;DIV class="c-message_kit__hover c-message_kit__hover--hovered"&gt;&lt;DIV class="c-message_kit__actions c-message_kit__actions--default"&gt;&lt;DIV class="c-message_kit__gutter"&gt;&lt;DIV class="c-message_kit__gutter__right"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;&lt;I&gt;--&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;Was your question answered? Please take some time to click on “Accept as Solution” below this post.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="c-virtual_list__item"&gt;&lt;DIV class="c-message_list__day_divider"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Nov 2022 09:19:04 GMT</pubDate>
    <dc:creator>rki_</dc:creator>
    <dc:date>2022-11-17T09:19:04Z</dc:date>
    <item>
      <title>JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356363#M237265</link>
      <description>&lt;P&gt;we have old hadoop cluster based on HDP from hortonworks version HDP 2.6.4&lt;BR /&gt;cluster include 2 namenode services when one is the standby namenode and the second is the active namenode , all machines in the cluster are rhel 7.2 version , and we not see any problem on OS level&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also cluster include 12 workers machines ( worker include the datanode and node manager services )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the story begin when we get alerts from the smoke test script that complain about "`Detected pause in JVM or host machine`" on the standby namenode ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so based on that we decided to increase the namenode heap size from 60G to 100G&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and above setting was based on table that show how much memory to set according to number of files in HDFS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and according to the table we decided to set the namenode heapsize to 100G and then we restart the HDFS service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after HDFS is completely restarted , we still see the messages about `Detected pause in JVM or host machine` , and this is really strange because we almost twice the namenode heap size&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so we start to perform deeply testing as by `jstat`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example we get from jsat low very of FGCT that is really good values and not point on namenode heap problem ( 1837 is the HDFS PID number )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# /usr/jdk64/jdk1.8.0_112/bin/jstat -gcutil 1837 10 10&lt;BR /&gt;S0 S1 E O M CCS YGC YGCT FGC FGCT GCT&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;BR /&gt;0.00 1.95 32.30 34.74 97.89 - 197 173.922 2 1.798 175.720&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here is the messages from namenode logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2022-10-27 14:04:49,728 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2044ms&lt;BR /&gt;2022-10-27 16:21:33,973 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2524ms&lt;BR /&gt;2022-10-27 17:31:35,333 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2444ms&lt;BR /&gt;2022-10-27 18:55:55,387 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2134ms&lt;BR /&gt;2022-10-27 19:42:00,816 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2153ms&lt;BR /&gt;2022-10-27 20:50:23,624 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2050ms&lt;BR /&gt;2022-10-27 21:07:01,240 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2343ms&lt;BR /&gt;2022-10-27 23:53:00,507 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2120ms&lt;BR /&gt;2022-10-28 00:43:30,633 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 1811ms&lt;BR /&gt;2022-10-28 00:53:35,120 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2192ms&lt;BR /&gt;2022-10-28 02:07:39,660 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2353ms&lt;BR /&gt;2022-10-28 02:49:25,018 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 1698ms&lt;BR /&gt;2022-10-28 03:00:20,592 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2432ms&lt;BR /&gt;2022-10-28 05:02:15,093 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approximately 2016ms&lt;BR /&gt;2022-10-28 06:52:46,672 INFO util.JvmPauseMonitor (JvmPauseMonitor.java:run(196)) - Detected pause in JVM or host machine (eg GC): pause of approxim&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;as we can see each 1-2 hours message about pause in `JVM or host machine` is appears&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we checked the number of files in HDFS and number of file is 7 million files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so what else we can do , we can increase a little bit the namenode heap size but my feeling is that heap size is really enough&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 07:32:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356363#M237265</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2022-10-28T07:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356368#M237269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;, The thumb rule is to have 1 Gb of heap allocated to 1 Million block. Now, as you have already doubled the heap, I think you can check on improving the garbage collector tunings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/NameNode-Garbage-Collection-Configuration-Best-Practices-and/ta-p/245276" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/NameNode-Garbage-Collection-Configuration-Best-Practices-and/ta-p/245276&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try tunings the GC threads to see if that helps. Been said that, these pauses are not very huge to cause any real trouble and we don't see it repeating very frequently ( within mins) and can be expected on a busy Cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also check if the threshold to report a JVM pause alert can be adjusted to say 5-10 secs which needs some intervention.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 08:33:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356368#M237269</guid>
      <dc:creator>rki_</dc:creator>
      <dc:date>2022-10-28T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356371#M237271</link>
      <description>&lt;P&gt;since we have the Ambari do you mean that we need to find the &lt;EM&gt;GC settings&lt;/EM&gt; in&amp;nbsp;&lt;SPAN&gt;yarn-env template ?&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 08:50:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356371#M237271</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2022-10-28T08:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356379#M237275</link>
      <description>&lt;P&gt;Those would go into&amp;nbsp;&lt;SPAN&gt;hadoop-env inside HDFS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.cloudera.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-operations/content/tuning_garbage_collection.html" target="_blank"&gt;https://docs.cloudera.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-operations/content/tuning_garbage_collection.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 10:07:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356379#M237275</guid>
      <dc:creator>rki_</dc:creator>
      <dc:date>2022-10-28T10:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356452#M237295</link>
      <description>&lt;P&gt;so based on doc seems that we need to increase the&amp;nbsp;&lt;SPAN&gt;CMSInitiatingOccupancyFraction from default&amp;nbsp;70% to higher&amp;nbsp;value as for example 85%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;do you agree with that ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 12:49:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356452#M237295</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2022-10-30T12:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356529#M237322</link>
      <description>&lt;P&gt;Nope. You will need to increase the GC threads.&amp;nbsp;&lt;SPAN&gt;CMSInitiatingOccupancyFraction decides when to perform a Full GC and default value afaik in HDP is at 92%. Further, the reason for 2 sec pauses are very hard to identify.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 12:28:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/356529#M237322</guid>
      <dc:creator>rki_</dc:creator>
      <dc:date>2022-10-31T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/357858#M237684</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="c-virtual_list__item c-virtual_list__item--initial-activeitem"&gt;&lt;DIV class="c-message_kit__background c-message_kit__background--hovered p-message_pane_message__message c-message_kit__message"&gt;&lt;DIV class="c-message_kit__hover c-message_kit__hover--hovered"&gt;&lt;DIV class="c-message_kit__actions c-message_kit__actions--default"&gt;&lt;DIV class="c-message_kit__gutter"&gt;&lt;DIV class="c-message_kit__gutter__right"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;&lt;I&gt;--&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;Was your question answered? Please take some time to click on “Accept as Solution” below this post.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="c-virtual_list__item"&gt;&lt;DIV class="c-message_list__day_divider"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Nov 2022 09:19:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/357858#M237684</guid>
      <dc:creator>rki_</dc:creator>
      <dc:date>2022-11-17T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: JVM + still have Detected pause in JVM in spite heap size decreased</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/360105#M238284</link>
      <description>&lt;P&gt;I have the same problem, but in my case JVM pause detections are happening every 15 mins and detecting between 28337ms, .. 853466ms pauses.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 19:10:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JVM-still-have-Detected-pause-in-JVM-in-spite-heap-size/m-p/360105#M238284</guid>
      <dc:creator>mabilgen</dc:creator>
      <dc:date>2022-12-23T19:10:36Z</dc:date>
    </item>
  </channel>
</rss>

