<?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 phoenix due to regionserver OutOfMemory in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/323959#M229254</link>
    <description>&lt;P&gt;CDH 6.3.2&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PHOENIX-5.0.0-cdh6.2.0.p0.1308267&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;add service phoenix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.regionserver.wal.codec&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;PRE&gt;&amp;lt;property&amp;gt;
 &amp;lt;name&amp;gt;phoenix.functions.allowUserDefinedFunctions&amp;lt;/name&amp;gt;
 &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
 &amp;lt;description&amp;gt;enable UDF functions&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;adv service and adv client&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set phoenix.schema.mapSystemTablesToNamespace=true&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set&amp;nbsp;phoenix.schema.isNamespaceMappingEnabled=true&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;when I run&amp;nbsp;phoenix-sqlline&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hbase region is OutOfMemory&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;2021-09-09T11:43:01.362+0800: [GC (CMS Initial Mark) [1 CMS-initial-mark: 34175K(34176K)] 48788K(49536K), 0.0309811 secs] [Times: user=0.04 sys=0.01, real=0.03 secs] 
2021-09-09T11:43:01.393+0800: [CMS-concurrent-mark-start]
2021-09-09T11:43:01.398+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:01.398+0800: [CMS2021-09-09T11:43:01.414+0800: [CMS-concurrent-mark: 0.018/0.020 secs] [Times: user=0.18 sys=0.00, real=0.02 secs] 
 (concurrent mode failure): 34175K-&amp;gt;34175K(34176K), 0.2619832 secs] 49203K-&amp;gt;48771K(49536K), [Metaspace: 68808K-&amp;gt;68808K(1112064K)], 0.2621194 secs] [Times: user=0.38 sys=0.00, real=0.26 secs] 
2021-09-09T11:43:01.663+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:01.663+0800: [CMS: 34175K-&amp;gt;34175K(34176K), 0.2232891 secs] 49535K-&amp;gt;48937K(49536K), [Metaspace: 68811K-&amp;gt;68811K(1112064K)], 0.2234088 secs] [Times: user=0.22 sys=0.00, real=0.22 secs] 
2021-09-09T11:43:01.887+0800: [GC (CMS Initial Mark) [1 CMS-initial-mark: 34175K(34176K)] 48937K(49536K), 0.0326199 secs] [Times: user=0.04 sys=0.00, real=0.03 secs] 
2021-09-09T11:43:01.920+0800: [CMS-concurrent-mark-start]
2021-09-09T11:43:01.927+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:01.927+0800: [CMS2021-09-09T11:43:01.944+0800: [CMS-concurrent-mark: 0.023/0.025 secs] [Times: user=0.26 sys=0.01, real=0.03 secs] 
 (concurrent mode failure): 34175K-&amp;gt;34175K(34176K), 0.2658440 secs] 49535K-&amp;gt;48922K(49536K), [Metaspace: 68819K-&amp;gt;68819K(1112064K)], 0.2659855 secs] [Times: user=0.40 sys=0.00, real=0.27 secs] 
2021-09-09T11:43:02.201+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:02.201+0800: [CMS: 34175K-&amp;gt;34175K(34176K), 0.2263622 secs] 49535K-&amp;gt;48954K(49536K), [Metaspace: 68830K-&amp;gt;68830K(1112064K)], 0.2265067 secs] [Times: user=0.23 sys=0.00, real=0.22 secs] 
2021-09-09T11:43:02.428+0800: [GC (CMS Initial Mark) [1 CMS-initial-mark: 34175K(34176K)] 48955K(49536K), 0.0318545 secs] [Times: user=0.04 sys=0.01, real=0.03 secs] 
2021-09-09T11:43:02.460+0800: [CMS-concurrent-mark-start]
2021-09-09T11:43:02.467+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:02.467+0800: [CMS2021-09-09T11:43:02.484+0800: [CMS-concurrent-mark: 0.022/0.023 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 
 (concurrent mode failure): 34175K-&amp;gt;34175K(34176K), 0.2410237 secs] 49432K-&amp;gt;49067K(49536K), [Metaspace: 68830K-&amp;gt;68830K(1112064K)], 0.2411725 secs] [Times: user=0.36 sys=0.00, real=0.24 secs] 
2021-09-09T11:43:02.709+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:02.709+0800: [CMS: 34175K-&amp;gt;34175K(34176K), 0.1938236 secs] 49067K-&amp;gt;49059K(49536K), [Metaspace: 68830K-&amp;gt;68830K(1112064K)], 0.1939479 secs] [Times: user=0.20 sys=0.00, real=0.20 secs] 
java.lang.OutOfMemoryError: Java heap space
Dumping heap to /tmp/hbase_hbase-REGIONSERVER-da84ee7c6c5955f30c908d6d3c80fc67_pid19562.hprof ...
Heap dump file created [89278215 bytes in 0.692 secs]
#
# java.lang.OutOfMemoryError: Java heap space
# -XX:OnOutOfMemoryError="kill -9 %p
/opt/cloudera/cm-agent/service/common/killparent.sh"
#   Executing /bin/sh -c "kill -9 19562
/opt/cloudera/cm-agent/service/common/killparent.sh"...&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:43:32 GMT</pubDate>
    <dc:creator>ighack</dc:creator>
    <dc:date>2022-09-16T14:43:32Z</dc:date>
    <item>
      <title>phoenix due to regionserver OutOfMemory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/323959#M229254</link>
      <description>&lt;P&gt;CDH 6.3.2&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PHOENIX-5.0.0-cdh6.2.0.p0.1308267&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;add service phoenix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.regionserver.wal.codec&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;PRE&gt;&amp;lt;property&amp;gt;
 &amp;lt;name&amp;gt;phoenix.functions.allowUserDefinedFunctions&amp;lt;/name&amp;gt;
 &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
 &amp;lt;description&amp;gt;enable UDF functions&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;adv service and adv client&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set phoenix.schema.mapSystemTablesToNamespace=true&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set&amp;nbsp;phoenix.schema.isNamespaceMappingEnabled=true&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;when I run&amp;nbsp;phoenix-sqlline&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hbase region is OutOfMemory&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;2021-09-09T11:43:01.362+0800: [GC (CMS Initial Mark) [1 CMS-initial-mark: 34175K(34176K)] 48788K(49536K), 0.0309811 secs] [Times: user=0.04 sys=0.01, real=0.03 secs] 
2021-09-09T11:43:01.393+0800: [CMS-concurrent-mark-start]
2021-09-09T11:43:01.398+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:01.398+0800: [CMS2021-09-09T11:43:01.414+0800: [CMS-concurrent-mark: 0.018/0.020 secs] [Times: user=0.18 sys=0.00, real=0.02 secs] 
 (concurrent mode failure): 34175K-&amp;gt;34175K(34176K), 0.2619832 secs] 49203K-&amp;gt;48771K(49536K), [Metaspace: 68808K-&amp;gt;68808K(1112064K)], 0.2621194 secs] [Times: user=0.38 sys=0.00, real=0.26 secs] 
2021-09-09T11:43:01.663+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:01.663+0800: [CMS: 34175K-&amp;gt;34175K(34176K), 0.2232891 secs] 49535K-&amp;gt;48937K(49536K), [Metaspace: 68811K-&amp;gt;68811K(1112064K)], 0.2234088 secs] [Times: user=0.22 sys=0.00, real=0.22 secs] 
2021-09-09T11:43:01.887+0800: [GC (CMS Initial Mark) [1 CMS-initial-mark: 34175K(34176K)] 48937K(49536K), 0.0326199 secs] [Times: user=0.04 sys=0.00, real=0.03 secs] 
2021-09-09T11:43:01.920+0800: [CMS-concurrent-mark-start]
2021-09-09T11:43:01.927+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:01.927+0800: [CMS2021-09-09T11:43:01.944+0800: [CMS-concurrent-mark: 0.023/0.025 secs] [Times: user=0.26 sys=0.01, real=0.03 secs] 
 (concurrent mode failure): 34175K-&amp;gt;34175K(34176K), 0.2658440 secs] 49535K-&amp;gt;48922K(49536K), [Metaspace: 68819K-&amp;gt;68819K(1112064K)], 0.2659855 secs] [Times: user=0.40 sys=0.00, real=0.27 secs] 
2021-09-09T11:43:02.201+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:02.201+0800: [CMS: 34175K-&amp;gt;34175K(34176K), 0.2263622 secs] 49535K-&amp;gt;48954K(49536K), [Metaspace: 68830K-&amp;gt;68830K(1112064K)], 0.2265067 secs] [Times: user=0.23 sys=0.00, real=0.22 secs] 
2021-09-09T11:43:02.428+0800: [GC (CMS Initial Mark) [1 CMS-initial-mark: 34175K(34176K)] 48955K(49536K), 0.0318545 secs] [Times: user=0.04 sys=0.01, real=0.03 secs] 
2021-09-09T11:43:02.460+0800: [CMS-concurrent-mark-start]
2021-09-09T11:43:02.467+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:02.467+0800: [CMS2021-09-09T11:43:02.484+0800: [CMS-concurrent-mark: 0.022/0.023 secs] [Times: user=0.23 sys=0.00, real=0.03 secs] 
 (concurrent mode failure): 34175K-&amp;gt;34175K(34176K), 0.2410237 secs] 49432K-&amp;gt;49067K(49536K), [Metaspace: 68830K-&amp;gt;68830K(1112064K)], 0.2411725 secs] [Times: user=0.36 sys=0.00, real=0.24 secs] 
2021-09-09T11:43:02.709+0800: [Full GC (Allocation Failure) 2021-09-09T11:43:02.709+0800: [CMS: 34175K-&amp;gt;34175K(34176K), 0.1938236 secs] 49067K-&amp;gt;49059K(49536K), [Metaspace: 68830K-&amp;gt;68830K(1112064K)], 0.1939479 secs] [Times: user=0.20 sys=0.00, real=0.20 secs] 
java.lang.OutOfMemoryError: Java heap space
Dumping heap to /tmp/hbase_hbase-REGIONSERVER-da84ee7c6c5955f30c908d6d3c80fc67_pid19562.hprof ...
Heap dump file created [89278215 bytes in 0.692 secs]
#
# java.lang.OutOfMemoryError: Java heap space
# -XX:OnOutOfMemoryError="kill -9 %p
/opt/cloudera/cm-agent/service/common/killparent.sh"
#   Executing /bin/sh -c "kill -9 19562
/opt/cloudera/cm-agent/service/common/killparent.sh"...&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:43:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/323959#M229254</guid>
      <dc:creator>ighack</dc:creator>
      <dc:date>2022-09-16T14:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix due to regionserver OutOfMemory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/323995#M229266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89564"&gt;@ighack&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please search keywords "JvmPauseMonitor" in that RegionServer log to see if there are GC pause and determine is it GC or Non-GC.&lt;/P&gt;&lt;P&gt;- For GC pause general step is to increase heap size.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please go through the setting of "&lt;SPAN&gt;Java Heap Size of HBase RegionServer in Bytes&lt;/SPAN&gt;" in CM &amp;gt; HBase &amp;gt; Configuration. If the current setting is small please increase it.&lt;/P&gt;&lt;P&gt;Please check this KB for the heap size tuning concept.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Tuning-Hbase-for-optimized-performance-Part-1/ta-p/248137" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/Tuning-Hbase-for-optimized-performance-Part-1/ta-p/248137&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- For Non-GC pause you will need to check if:&lt;/P&gt;&lt;P&gt;Kernel blocking the process due to:&lt;BR /&gt;hardware issues&lt;BR /&gt;blocking I/O&lt;BR /&gt;page allocation failures due to heavy memory utilization&lt;BR /&gt;etc…&lt;BR /&gt;Look into kernel messages for clues&lt;BR /&gt;dmsg&lt;BR /&gt;/var/log/messages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Will&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If the answer helps, please accept as solution and click thumbs up.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 13:58:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/323995#M229266</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2021-09-09T13:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix due to regionserver OutOfMemory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/324023#M229278</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I increase heap size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Java Heap Size of HBase RegionServer from 50m to 80m&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but I aslo use jdbc to connect &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Class.&lt;SPAN&gt;forName&lt;/SPAN&gt;(&lt;SPAN&gt;"org.apache.phoenix.jdbc.PhoenixDriver"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;Connection connection = DriverManager.&lt;SPAN&gt;getConnection&lt;/SPAN&gt;("&lt;SPAN&gt;jdbc:phoenix:bigdser5:/hbase&lt;/SPAN&gt;")&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;getConnection is block&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 06:22:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/324023#M229278</guid>
      <dc:creator>ighack</dc:creator>
      <dc:date>2021-09-10T06:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: phoenix due to regionserver OutOfMemory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/324148#M229284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89564"&gt;@ighack&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you mean the current RS heap is 50 megabytes or 80 megabytes, it's usually not enough.&lt;/P&gt;&lt;P&gt;A good number is 16GB ~ 31 GB for most cases. If you indeed don't have enough resource in RS nodes, at lease keep RS heap 4GB as default, if still see many long GC pauses you have to increase it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to below link to install phoenix and validate installation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/phoenix_installation.html#concept_ofv_k4n_c3b" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/documentation/enterprise/latest/topics/phoenix_installation.html#concept_ofv_k4n_c3b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you installed as above steps, then in any of the CDH node find the JDBC jar:&lt;/P&gt;&lt;P&gt;find / -name "phoenix-*client.jar"&lt;/P&gt;&lt;P&gt;and follow this guide:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/phoenix-access-data/topics/phoenix-orchestrating-sql.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/runtime/7.2.10/phoenix-access-data/topics/phoenix-orchestrating-sql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check your JDBC URL syntax should looks like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;jdbc:phoenix:zookeeper_quorum:zookeeper_port:zookeeper_hbase_path&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 14:07:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/phoenix-due-to-regionserver-OutOfMemory/m-p/324148#M229284</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2021-09-10T14:07:39Z</dc:date>
    </item>
  </channel>
</rss>

