forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
88 lines
11 KiB
HTML
88 lines
11 KiB
HTML
<a name="EN-US_TOPIC_0000001832244905"></a><a name="EN-US_TOPIC_0000001832244905"></a>
|
|
|
|
<h1 class="topictitle1">PGXC_MEMORY_DEBUG_INFO</h1>
|
|
<div id="body0000001832244905"><p id="EN-US_TOPIC_0000001832244905__p152899165011"><strong id="EN-US_TOPIC_0000001832244905__b1860896134911">PGXC_MEMORY_DEBUG_INFO</strong> displays memory error information for each node in the current cluster when executing jobs, making it easy to locate memory error issues. When an error message "memory is temporarily unavailable" is prompted during statement execution, this view can be used to query memory error information for all nodes, which is the same as the memory error information displayed in the log. This view is supported only by clusters of version 8.3.0 or later.</p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001832244905__note284623472010"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001832244905__p285316353207">This view only displays the most recent cluster information for errors, and repeated error information will be overwritten. If the same query requests memory multiple times and errors occur, the information will not be updated.</p>
|
|
</div></div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001832244905__table111861130326" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_MEMORY_DEBUG_INFO columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001832244905__row718614138328"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001832244905__p6186191393217"><strong id="EN-US_TOPIC_0000001832244905__b206066516443814">Column</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.4.1.2"><p id="EN-US_TOPIC_0000001832244905__p718601319326">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65%" id="mcps1.3.3.2.4.1.3"><p id="EN-US_TOPIC_0000001832244905__p121861213133210">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001832244905__row51871713183219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p818715130327">node_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p10187161311321">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p1218712135325">Instance name, including CNs and DNs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001832244905__row8187201363217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p17187151323215">query_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p1618711312325">Bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p10187161317327">ID of the query that is currently requesting memory.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001832244905__row111198553711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p151198516376">memory_info</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p81524170373">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p171195513379">Current instance's memory usage, including:</p>
|
|
<ul id="EN-US_TOPIC_0000001832244905__u29b5691a46474d3c8c698659b63aa4e9"><li id="EN-US_TOPIC_0000001832244905__l54d40739dd85417a82bd71d280e5e94c"><strong id="EN-US_TOPIC_0000001832244905__b3334122185117">process_used_memory</strong>: memory size used by the <span id="EN-US_TOPIC_0000001832244905__text2024868032">GaussDB(DWS)</span> process.</li><li id="EN-US_TOPIC_0000001832244905__l1fef9593d68d447185d9a5b5937c98b7"><strong id="EN-US_TOPIC_0000001832244905__b358214514516">max_dynamic_memory</strong>: maximum dynamic memory.</li><li id="EN-US_TOPIC_0000001832244905__l81a19c4416b0430e9030ccab2c69c9dd"><strong id="EN-US_TOPIC_0000001832244905__b9455105875119">dynamic_used_memory</strong>: used dynamic memory.</li><li id="EN-US_TOPIC_0000001832244905__l60ad02d874ed43df8d4d1b13cb7b5bb6"><strong id="EN-US_TOPIC_0000001832244905__b148266135218">dynamic_peak_memory</strong>: dynamic peak value of memory.</li><li id="EN-US_TOPIC_0000001832244905__l1c2aa00ac9044aafae2d66831ea8652f"><strong id="EN-US_TOPIC_0000001832244905__b11464319115218">dynamic_used_shrctx</strong>: maximum dynamic shared memory context.</li><li id="EN-US_TOPIC_0000001832244905__l56906e652c224e6a92160f010a13b04f"><strong id="EN-US_TOPIC_0000001832244905__b273173255216">dynamic_peak_shrctx</strong>: dynamic peak value of shared memory context.</li><li id="EN-US_TOPIC_0000001832244905__lc568e99a46d14f068d4882de1d1c4c93"><strong id="EN-US_TOPIC_0000001832244905__b84902458529">shared_used_memory</strong>: used shared memory.</li><li id="EN-US_TOPIC_0000001832244905__l031a9b69d10c4a4ab6d4faecc24e2f90"><strong id="EN-US_TOPIC_0000001832244905__b935852135212">cstore_used_memory</strong>: memory size used for column store.</li><li id="EN-US_TOPIC_0000001832244905__l8318345879ac493dbbbccc96fcc89d98"><strong id="EN-US_TOPIC_0000001832244905__b8103102115318">comm_used_memory</strong>: memory size used by the communication library.</li><li id="EN-US_TOPIC_0000001832244905__l123694d5ff594f7085ac387396467353"><strong id="EN-US_TOPIC_0000001832244905__b5205346175319">comm_peak_memory</strong>: peak value of memory used by the communication library.</li><li id="EN-US_TOPIC_0000001832244905__l3c7e36f491cb4d3d886d7edba849511b"><strong id="EN-US_TOPIC_0000001832244905__b163381711125416">other_used_memory</strong>: memory size used by other components.</li><li id="EN-US_TOPIC_0000001832244905__li148431851174210"><strong id="EN-US_TOPIC_0000001832244905__b264113247542">topsql_used_memory</strong>: memory size used by topsql.</li><li id="EN-US_TOPIC_0000001832244905__li4264121610817"><strong id="EN-US_TOPIC_0000001832244905__b465663512542">large_storage_memory</strong>: memory size used for column-store compression and decompression.</li><li id="EN-US_TOPIC_0000001832244905__li1141132413812"><strong id="EN-US_TOPIC_0000001832244905__b12193921558">os_totalmem</strong>: total memory size of the operating system.</li><li id="EN-US_TOPIC_0000001832244905__li195031032988"><strong id="EN-US_TOPIC_0000001832244905__b1518711131554">os_freeemem</strong>: remaining memory size of the operating system.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001832244905__row14293143415335"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p1329318349338">summary</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p182933345336">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p529317345336">The total estimated memory consumption and actual memory consumption of jobs on the instance.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001832244905__row3809104503312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p6809154515331">abnormal_query</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p18809144511339">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p15809154533314">Thread ID and query ID with abnormal memory usage, including two cases:</p>
|
|
<ol id="EN-US_TOPIC_0000001832244905__ol17202172802814"><li id="EN-US_TOPIC_0000001832244905__li152036289286">Session with the maximum current memory usage.</li><li id="EN-US_TOPIC_0000001832244905__li17203428202814">Session with the largest difference between estimated memory and actual memory usage.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001832244905__row25981053173320"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p7598165311334">abnormal_memory</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p6598195318333">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p4598175343311">Memory block with the highest usage, including the maximum shared memory context usage and the maximum common memory context usage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001832244905__row8338105823311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p113381758153315">top_thread</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p18339105873313">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p1429543294712">Information on the top three threads with the highest memory usage:</p>
|
|
<p id="EN-US_TOPIC_0000001832244905__p1550034104718"><strong id="EN-US_TOPIC_0000001832244905__b1824812915711">context name</strong>: memory block currently in use.</p>
|
|
<p id="EN-US_TOPIC_0000001832244905__p152411619486"><strong id="EN-US_TOPIC_0000001832244905__b2473420185715">contextlevel</strong>: context level.</p>
|
|
<p id="EN-US_TOPIC_0000001832244905__p9647172484"><strong id="EN-US_TOPIC_0000001832244905__b2139946155718">sessType</strong>: type of the top-level context node.</p>
|
|
<p id="EN-US_TOPIC_0000001832244905__p833915823313"><strong id="EN-US_TOPIC_0000001832244905__b792522317587">totalsize[274,13,260]MB</strong>: total memory, released memory, and used memory size of the current memory context, in MB.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001832244905__row1723118293419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001832244905__p152311028348">create_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001832244905__p723111210343">Timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001832244905__p1823117210349">Time when the memory shortage error occurred.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
|
|
</div>
|
|
</div>
|
|
|