doc-exports/docs/apm/umn/apm_07_0008.html
Li, Qiao 01222743d0 APM2.0 UMN 20230825 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: Li, Qiao <qiaoli@huawei.com>
Co-committed-by: Li, Qiao <qiaoli@huawei.com>
2024-06-18 07:09:10 +00:00

83 lines
12 KiB
HTML

<a name="apm_07_0008"></a><a name="apm_07_0008"></a>
<h1 class="topictitle1">Exception</h1>
<div id="body8662426"><p id="apm_07_0008__en-us_topic_0000001262364087_p8060118">This function monitors application exception logs. Take the monitoring of Java exception logs as an example. Once you use the log system to print logs, they will be collected by APM. The exception collection type varies according to the collector type.</p>
<div class="section" id="apm_07_0008__en-us_topic_0000001262364087_section164071439155419"><h4 class="sectiontitle">Viewing Exception Logs</h4><ol id="apm_07_0008__en-us_topic_0000001262364087_ol17556193394311"><li id="apm_07_0008__en-us_topic_0000001262364087_li321185863310"><span>Log in to the management console.</span></li><li id="apm_07_0008__en-us_topic_0000001262364087_li1456354810599"><span>Click <span><img id="apm_07_0008__en-us_topic_0000001262364087_image1341144925919" src="en-us_image_0000001621004377.png"></span> on the left and choose <strong id="apm_07_0008__en-us_topic_0000001262364087_b5412049145912">Management &amp; Deployment</strong> &gt; <strong id="apm_07_0008__en-us_topic_0000001262364087_b441317493596">Application Performance Management</strong>.</span></li><li id="apm_07_0008__en-us_topic_0000001262364087_li1555643334315"><span>In the navigation pane, choose <strong id="apm_07_0008__en-us_topic_0000001262364087_b869621911529">Application Monitoring</strong> &gt; <strong id="apm_07_0008__en-us_topic_0000001262364087_b1702111913525">Metrics</strong>.</span></li><li id="apm_07_0008__en-us_topic_0000001262364087_li14556933194318"><span>In the tree on the left, click <span><img id="apm_07_0008__en-us_topic_0000001262364087_image147511059693" src="en-us_image_0000001277942217.png"></span> next to the target environment.</span></li><li id="apm_07_0008__en-us_topic_0000001262364087_li9750930145818"><span>Click the <strong id="apm_07_0008__en-us_topic_0000001262364087_b187721436115410">Exception</strong> tab. By default, exception logs of all instances are displayed. For details about the metrics, see <a href="#apm_07_0008__en-us_topic_0000001262364087_table121125341047">Table 1</a>.</span><p><div class="fignone" id="apm_07_0008__en-us_topic_0000001262364087_fig0221178113114"><span class="figcap"><b>Figure 1 </b>Exception monitoring data</span><br><span><img id="apm_07_0008__en-us_topic_0000001262364087_image922188153112" src="en-us_image_0000001675942733.png" title="Click to enlarge" class="imgResize"></span></div>
<div class="tablenoborder"><a name="apm_07_0008__en-us_topic_0000001262364087_table121125341047"></a><a name="en-us_topic_0000001262364087_table121125341047"></a><table cellpadding="4" cellspacing="0" summary="" id="apm_07_0008__en-us_topic_0000001262364087_table121125341047" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Exception and log parameters</caption><thead align="left"><tr id="apm_07_0008__en-us_topic_0000001262364087_row13112734841"><th align="left" class="cellrowborder" valign="top" width="13.450000000000001%" id="mcps1.3.2.2.5.2.2.2.4.1.1"><p id="apm_07_0008__en-us_topic_0000001262364087_p1811210341246">Metric Set</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="28.360000000000003%" id="mcps1.3.2.2.5.2.2.2.4.1.2"><p id="apm_07_0008__en-us_topic_0000001262364087_p7112134549">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="58.19%" id="mcps1.3.2.2.5.2.2.2.4.1.3"><p id="apm_07_0008__en-us_topic_0000001262364087_p91124341040">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="apm_07_0008__en-us_topic_0000001262364087_row211214341416"><td class="cellrowborder" rowspan="6" valign="top" width="13.450000000000001%" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p141128348410">Exception</p>
</td>
<td class="cellrowborder" valign="top" width="28.360000000000003%" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p211316344414">Class</p>
</td>
<td class="cellrowborder" valign="top" width="58.19%" headers="mcps1.3.2.2.5.2.2.2.4.1.3 "><p id="apm_07_0008__en-us_topic_0000001262364087_p1511363419412">Exception class</p>
</td>
</tr>
<tr id="apm_07_0008__en-us_topic_0000001262364087_row311311341948"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p1411311342045">Exception Type</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p8113143416413">Exception type</p>
</td>
</tr>
<tr id="apm_07_0008__en-us_topic_0000001262364087_row151131341412"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p311310349415">Log Type</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p711303413415">Exception log type</p>
</td>
</tr>
<tr id="apm_07_0008__en-us_topic_0000001262364087_row511373420416"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p811343410416">Total Exceptions</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p111318342414">Number of times that an exception has occurred</p>
</td>
</tr>
<tr id="apm_07_0008__en-us_topic_0000001262364087_row911313344416"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p121131934846">Message</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p0113113410419">Message returned when the exception has occurred</p>
</td>
</tr>
<tr id="apm_07_0008__en-us_topic_0000001262364087_row1511323417411"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p11113163418414">Error Stack</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p1111313417418">Error stack</p>
</td>
</tr>
<tr id="apm_07_0008__en-us_topic_0000001262364087_row111131634345"><td class="cellrowborder" rowspan="2" valign="top" width="13.450000000000001%" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p1511317341549">Log Version</p>
</td>
<td class="cellrowborder" valign="top" width="28.360000000000003%" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p1511313344411">Log Type</p>
</td>
<td class="cellrowborder" valign="top" width="58.19%" headers="mcps1.3.2.2.5.2.2.2.4.1.3 "><p id="apm_07_0008__en-us_topic_0000001262364087_p711318341342">Log type</p>
</td>
</tr>
<tr id="apm_07_0008__en-us_topic_0000001262364087_row17113734047"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.1 "><p id="apm_07_0008__en-us_topic_0000001262364087_p161141334740">Version</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.2.2.2.4.1.2 "><p id="apm_07_0008__en-us_topic_0000001262364087_p811403418419">Log version</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="p" id="apm_07_0008__en-us_topic_0000001262364087_p85261521966"><ul id="apm_07_0008__en-us_topic_0000001262364087_ul13989174313267"><li id="apm_07_0008__en-us_topic_0000001262364087_li6989184332619">Click a number in blue in the <strong id="apm_07_0008__en-us_topic_0000001262364087_b157361647153914">Total Exceptions</strong> column to view the trend of the total exceptions in a specified period.</li><li id="apm_07_0008__en-us_topic_0000001262364087_li1820724872711">Click the blue text in the <strong id="apm_07_0008__en-us_topic_0000001262364087_b202952517116">Message</strong> column to view the message time and content.</li><li id="apm_07_0008__en-us_topic_0000001262364087_li77891512152911">Click <strong id="apm_07_0008__en-us_topic_0000001262364087_b1446420311124">Detail</strong> in the <strong id="apm_07_0008__en-us_topic_0000001262364087_b55021216141210">Error Stack</strong> column to view exception details.</li><li id="apm_07_0008__en-us_topic_0000001262364087_li54716915308">Click <strong id="apm_07_0008__en-us_topic_0000001262364087_b1767329191211">History</strong> in the <strong id="apm_07_0008__en-us_topic_0000001262364087_b9248163713121">Error Stack</strong> column to view the historical error stack list.</li></ul>
</div>
<ul id="apm_07_0008__en-us_topic_0000001262364087_ul187118304322"><li id="apm_07_0008__en-us_topic_0000001262364087_li1371163033211">Click the blue text in the <strong id="apm_07_0008__en-us_topic_0000001262364087_b079555751613">Version</strong> column to view details.</li></ul>
</p></li><li id="apm_07_0008__en-us_topic_0000001262364087_li4711950184320"><span>On the <strong id="apm_07_0008__en-us_topic_0000001262364087_b1390552420412">Exception</strong> tab page, select a target instance and then select <strong id="apm_07_0008__en-us_topic_0000001262364087_b989616561247">Exception</strong> to view the exception monitoring data.</span><p><div class="fignone" id="apm_07_0008__en-us_topic_0000001262364087_fig14397137143415"><span class="figcap"><b>Figure 2 </b>Selecting a target instance and exception</span><br><span><img id="apm_07_0008__en-us_topic_0000001262364087_image53971475347" src="en-us_image_0000001627264096.png" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="apm_07_0008__en-us_topic_0000001262364087_li1724462217266"><span>Select a time range. Default: <strong id="apm_07_0008__en-us_topic_0000001262364087_b16178520341">Last 20 minutes</strong>.</span><p><p id="apm_07_0008__en-us_topic_0000001262364087_p1117642472615">Options: <strong id="apm_07_0008__en-us_topic_0000001262364087_b1314142217417">Last 20 minutes</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b81410221643">Last hour</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b91418229417">Last 3 hours</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b81562216413">Last 6 hours</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b9151322948">Last day</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b11611223416">Today</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b716112217417">Yesterday</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b14161422343">Last week</strong>, <strong id="apm_07_0008__en-us_topic_0000001262364087_b141712225411">Last month</strong>, or <strong id="apm_07_0008__en-us_topic_0000001262364087_b1717022440">Custom</strong>.</p>
<div class="fignone" id="apm_07_0008__en-us_topic_0000001262364087_fig1432711443415"><span class="figcap"><b>Figure 3 </b>Selecting a time range</span><br><span><img id="apm_07_0008__en-us_topic_0000001262364087_image83271944194110" src="en-us_image_0000001602192870.png" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="apm_07_0008__en-us_topic_0000001262364087_li4899722612"><span>Click <span><img id="apm_07_0008__en-us_topic_0000001262364087_image1600172517415" src="en-us_image_0000001601313630.png"></span> in the upper right corner of the list and select the metric data you want to view.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="apm_07_0005.html">Application Monitoring Details</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>