doc-exports/docs/mrs/umn/ALM-18009.html
Yang, Tong 3b1f73dece MRS UMN 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-13 12:03:34 +00:00

90 lines
12 KiB
HTML

<a name="ALM-18009"></a><a name="ALM-18009"></a>
<h1 class="topictitle1">ALM-18009 Heap Memory Usage of JobHistoryServer Exceeds the Threshold</h1>
<div id="body23495690"><div class="section" id="ALM-18009__s29bcea492fae4a52a18c47c4481dc031"><h4 class="sectiontitle">Description</h4><p id="ALM-18009__en-us_topic_0070543506_p65737292">The system checks the heap memory usage of Mapreduce JobHistoryServer every 30 seconds and compares the actual usage with the threshold. The alarm is generated when the heap memory usage of Mapreduce JobHistoryServer exceeds the threshold (95% of the maximum memory by default).</p>
<p id="ALM-18009__en-us_topic_0070543506_p54764719">Users can choose <strong id="ALM-18009__b116542287915">O&amp;M</strong> &gt; <strong id="ALM-18009__b1930611537119">Alarm</strong> &gt; <strong id="ALM-18009__b122075817202">Thresholds</strong> &gt; <em id="ALM-18009__i1021725095817">Name of the desired cluster</em> &gt; <strong id="ALM-18009__en-us_topic_0070543506_b10465156">Mapreduce</strong> to change the threshold.</p>
<p id="ALM-18009__p1069404093627">When the <strong id="ALM-18009__b48421890111935">Trigger Count</strong> is 1, this alarm is cleared when the heap memory usage of MapReduce JobHistoryServer is less than or equal to the threshold. When the <strong id="ALM-18009__b417075614398">Trigger Count</strong> is greater than 1, this alarm is cleared when the heap memory usage of MapReduce JobHistoryServer is less than or equal to 95% of the threshold.</p>
</div>
<div class="section" id="ALM-18009__s80eec9a150804e5e87698bf4cca3616e"><h4 class="sectiontitle">Attribute</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ALM-18009__en-us_topic_0070543506_table45797138" frame="border" border="1" rules="all"><thead align="left"><tr id="ALM-18009__en-us_topic_0070543506_row38524289"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.1.4.1.1"><p id="ALM-18009__en-us_topic_0070543506_p33459681">Alarm ID</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.1.4.1.2"><p id="ALM-18009__en-us_topic_0070543506_p25879650">Alarm Severity</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.1.4.1.3"><p id="ALM-18009__en-us_topic_0070543506_p15876907">Automatically Cleared</p>
</th>
</tr>
</thead>
<tbody><tr id="ALM-18009__en-us_topic_0070543506_row10961125"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.1.4.1.1 "><p id="ALM-18009__en-us_topic_0070543506_p15435960">18009</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.1.4.1.2 "><p id="ALM-18009__en-us_topic_0070543506_p42353227">Major</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.1.4.1.3 "><p id="ALM-18009__en-us_topic_0070543506_p8059334">Yes</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ALM-18009__s39d021e28803480ab79e177be9664e22"><h4 class="sectiontitle">Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ALM-18009__en-us_topic_0070543506_table48826322" frame="border" border="1" rules="all"><thead align="left"><tr id="ALM-18009__en-us_topic_0070543506_row14499481"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.1.3.1.1"><p id="ALM-18009__en-us_topic_0070543506_p33607346">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.1.3.1.2"><p id="ALM-18009__en-us_topic_0070543506_p37840511">Meaning</p>
</th>
</tr>
</thead>
<tbody><tr id="ALM-18009__row780314510228"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.1 "><p id="ALM-18009__p192431315431">Source</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.2 "><p id="ALM-18009__p692551319435">Specifies the cluster for which the alarm is generated.</p>
</td>
</tr>
<tr id="ALM-18009__en-us_topic_0070543506_row45182569"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.1 "><p id="ALM-18009__en-us_topic_0070543506_p35909463">ServiceName</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.2 "><p id="ALM-18009__en-us_topic_0070543506_p22985394">Specifies the service name for which the alarm is generated.</p>
</td>
</tr>
<tr id="ALM-18009__en-us_topic_0070543506_row5541955"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.1 "><p id="ALM-18009__en-us_topic_0070543506_p46245228">RoleName</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.2 "><p id="ALM-18009__en-us_topic_0070543506_p54875957">Specifies the role name for which the alarm is generated.</p>
</td>
</tr>
<tr id="ALM-18009__en-us_topic_0070543506_row24121565"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.1 "><p id="ALM-18009__en-us_topic_0070543506_p7689721">HostName</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.2 "><p id="ALM-18009__en-us_topic_0070543506_p18887690">Specifies the object (host ID) for which the alarm is generated.</p>
</td>
</tr>
<tr id="ALM-18009__en-us_topic_0070543506_row35771490"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.1 "><p id="ALM-18009__en-us_topic_0070543506_p11809597">Trigger Condition</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.1.2 "><p id="ALM-18009__en-us_topic_0070543506_p17053313">Specifies the threshold triggering the alarm. If the current indicator value exceeds this threshold, the alarm is generated.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ALM-18009__sb9c6b3a8719e412fb61562630dc98556"><h4 class="sectiontitle">Impact on the System</h4><p id="ALM-18009__en-us_topic_0070543506_p39141076">When the heap memory usage of Mapreduce JobHistoryServer is overhigh, the performance of Mapreduce log archiving is affected. In addition, a memory overflow may occur so that the Yarn service is unavailable.</p>
</div>
<div class="section" id="ALM-18009__s482f0710e69e42b39552cf6618e22813"><h4 class="sectiontitle">Possible Causes</h4><p id="ALM-18009__en-us_topic_0070543506_p16310625">The heap memory of the Mapreduce JobHistoryServer instance on the node is overused or the heap memory is inappropriately allocated. As a result, the usage exceeds the threshold.</p>
</div>
<div class="section" id="ALM-18009__s79a7f9fd5f334e92918a3a5ce7f5614f"><h4 class="sectiontitle">Procedure</h4><p class="tableheading" id="ALM-18009__en-us_topic_0070543506_p46092238"><strong id="ALM-18009__b64485568185342">Check the memory usage.</strong></p>
<ol id="ALM-18009__ol27529036185351"><li id="ALM-18009__li43070746185337"><span>On the FusionInsight Manager portal, choose <strong id="ALM-18009__b3096931185337">O&amp;M &gt; Alarm<strong id="ALM-18009__b27872374104950"> &gt; Alarms</strong></strong> &gt; <strong id="ALM-18009__b27872385185337">ALM-18009 Heap Memory Usage of MapReduce JobHistoryServer Exceeds the Threshold</strong> &gt; <strong id="ALM-18009__b49524881185337">Location</strong>. Check the HostName of the instance for which the alarm is generated.</span></li><li id="ALM-18009__li19646779185337"><span>On the FusionInsight Manager portal, choose <strong id="ALM-18009__b1945681515425">Cluster </strong>&gt; <em id="ALM-18009__i1747601510421">Name of the desired cluster</em><strong id="ALM-18009__b16456815114214"> &gt; Services</strong> &gt; <strong id="ALM-18009__b66178407185337">Mapreduce</strong> &gt; <strong id="ALM-18009__b58734757185337">Instance</strong> &gt; <strong id="ALM-18009__b58850769185337">JobHistoryServer.</strong> Click the drop-down menu in the upper right corner of <strong id="ALM-18009__b3273144141318">Chart</strong>, choose <strong id="ALM-18009__b7246166191312">Customize</strong> &gt; <strong id="ALM-18009__b13374151121212">JobHistoryServer heap memory usage statistics</strong>. JobHistoryServer indicates the corresponding HostName of the instance for which the alarm is generated. Check the heap memory usage.</span></li><li id="ALM-18009__li38806493185337"><span>Check whether the used heap memory of JobHistoryServer reaches 95% of the maximum heap memory specified for JobHistoryServer.</span><p><ul class="subitemlist" id="ALM-18009__ul11768373185337"><li id="ALM-18009__li47885291185337">If yes, go to <a href="#ALM-18009__li4972156185337">4</a>.</li><li id="ALM-18009__li53503380185337">If no, go to <a href="#ALM-18009__li30977950185337">6</a>.</li></ul>
</p></li><li id="ALM-18009__li4972156185337"><a name="ALM-18009__li4972156185337"></a><a name="li4972156185337"></a><span>On the FusionInsight Manager portal, choose <strong id="ALM-18009__b4769321124210">Cluster </strong>&gt; <em id="ALM-18009__i11792172134218">Name of the desired cluster</em><strong id="ALM-18009__b5769112124215"> &gt; Services</strong> &gt; <strong id="ALM-18009__b56318190185337">Mapreduce</strong> &gt; <strong id="ALM-18009__b37101665185337">Configurations</strong> &gt; <strong id="ALM-18009__b65479536185337">All</strong> <strong id="ALM-18009__b1289110464146">Configurations </strong>&gt; <strong id="ALM-18009__b52444914185337">JobHistoryServer</strong> &gt; <strong id="ALM-18009__b2242186185337">System</strong>. Increase the value of <strong id="ALM-18009__b47399397185337">GC_OPTS</strong> parameter as required, click <strong id="ALM-18009__b23941394185337">Save</strong>. Click <strong id="ALM-18009__b60204785185337">OK</strong> and restart the role instance.</span><p><div class="note" id="ALM-18009__note207381378437"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="ALM-18009__p6721916114317">The mapping between the number of historical tasks (10000) and the memory of JobHistoryServer is as follows:</p>
<p id="ALM-18009__p872171624312">-Xms30G -Xmx30G -XX:NewSize=1G -XX:MaxNewSize=2G</p>
</div></div>
</p></li><li id="ALM-18009__li63653227185337"><span>Check whether the alarm is cleared.</span><p><ul class="subitemlist" id="ALM-18009__ul7413878185337"><li id="ALM-18009__li44749412185337">If yes, no further action is required.</li><li id="ALM-18009__li823764185337">If no, go to <a href="#ALM-18009__li30977950185337">6</a>.</li></ul>
</p></li></ol>
<p class="tableheading" id="ALM-18009__p66724904185337"><strong id="ALM-18009__b1897041118546">Collect fault information.</strong></p>
<ol start="6" id="ALM-18009__ol6007521218548"><li id="ALM-18009__li30977950185337"><a name="ALM-18009__li30977950185337"></a><a name="li30977950185337"></a><span>On the FusionInsight Manager portal, choose <strong id="ALM-18009__b15844151351617">O&amp;M</strong> &gt; <strong id="ALM-18009__b55637777185337">Log &gt; Download</strong>.</span></li><li id="ALM-18009__li7653352185337"><span>Select the following node in the required cluster from the <strong id="ALM-18009__b10366095185337">Service</strong>.</span><p><ul class="subitemlist" id="ALM-18009__ul30676534185337"><li id="ALM-18009__li34347406185337">NodeAgent</li><li id="ALM-18009__li40691206185337">Mapreduce</li></ul>
</p></li><li id="ALM-18009__li1145664103113"><span>Click <span><img id="ALM-18009__image1945644173117" src="en-us_image_0269417396.png"></span> in the upper right corner, and set <strong id="ALM-18009__b6456941173117">Start Date</strong> and <strong id="ALM-18009__b11456154113318">End Date</strong> for log collection to 10 minutes ahead of and after the alarm generation time, respectively. Then, click <strong id="ALM-18009__b13456164113319">Download</strong>.</span></li><li id="ALM-18009__li38486187185337"><span>Contact the <span id="ALM-18009__text4614151421417">O&amp;M personnel</span> and send the collected logs.</span></li></ol>
</div>
<div class="section" id="ALM-18009__section1529716184534"><h4 class="sectiontitle">Alarm Clearing</h4><p id="ALM-18009__p4677152685316">After the fault is rectified, the system automatically clears this alarm.</p>
</div>
<div class="section" id="ALM-18009__s99b3f05183344e81a6c1a17bb49b55cc"><h4 class="sectiontitle">Related Information</h4><p id="ALM-18009__en-us_topic_0070543506_p35684727">None</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1298.html">Alarm Reference (Applicable to MRS 3.x)</a></div>
</div>
</div>