doc-exports/docs/ddm/umn/ddm_08_0032.html
Ru, Li Yi 4b09a03a51 ddm_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-04-11 11:39:26 +00:00

33 lines
4.4 KiB
HTML

<a name="ddm_08_0032"></a><a name="ddm_08_0032"></a>
<h1 class="topictitle1">SHOW PHYSICAL PROCESSLIST</h1>
<div id="body0000001163738337"><p id="ddm_08_0032__p89791044103"><strong id="ddm_08_0032__b45261554115619">Command Format 1:</strong></p>
<p id="ddm_08_0032__p8060118"><strong id="ddm_08_0032__b310432791018">show physical processlist</strong>;</p>
<p id="ddm_08_0032__p32031621194619">This command returns the processes that run on the associated RDS instance.</p>
<p id="ddm_08_0032__p1777613362109"><strong id="ddm_08_0032__b1446719529566">Command Format 2:</strong></p>
<p id="ddm_08_0032__p184981831219"><strong id="ddm_08_0032__b1722318176113">show physical processlist with info</strong>;</p>
<p id="ddm_08_0032__p0909103716464">This commands filters out the data records whose <strong id="ddm_08_0032__b121551916195611">info</strong> is empty from result sets of command 1 and returns only the data records whose <strong id="ddm_08_0032__b6155181619561">info</strong> is not empty.</p>
<p id="ddm_08_0032__p75253186535"><strong id="ddm_08_0032__b780862563719">Command Output</strong></p>
<div class="fignone" id="ddm_08_0032__fig15571754104313"><span class="figcap"><b>Figure 1 </b>Command execution effect</span><br><span><img id="ddm_08_0032__image63861110124317" src="en-us_image_0000001685307362.png"></span></div>
<p id="ddm_08_0032__p109714392436"><strong id="ddm_08_0032__b105099415370">Output Details:</strong></p>
<p id="ddm_08_0032__p2650178185619"><strong id="ddm_08_0032__b89907526374">Ip</strong>: indicates the IP address of the associated RDS instance.</p>
<p id="ddm_08_0032__p10123143114566"><strong id="ddm_08_0032__b088328163811">Port</strong>: indicates the port number of the associated RDS instance.</p>
<p id="ddm_08_0032__p137221546185612"><strong id="ddm_08_0032__b106201941133815">Instance_id</strong>: indicates the ID of the associated RDS instance.</p>
<p id="ddm_08_0032__p1695391375714"><strong id="ddm_08_0032__b2333198319">Type</strong>: <strong id="ddm_08_0032__b047816436321">master</strong> indicates that the associated instance is a primary instance, and <strong id="ddm_08_0032__b240181953911">readreplica</strong> indicates that the associated instance is a read replica.</p>
<p id="ddm_08_0032__p1388213284434">Columns after column <strong id="ddm_08_0032__b104345175814">Type</strong> indicate the information about processes running on the associated RDS instance. Such information is the same as the output of command <strong id="ddm_08_0032__b198911214410">show processlist</strong> executed on the associated RDS instance.</p>
<p id="ddm_08_0032__p9188121134816"><strong id="ddm_08_0032__b273519714427">Command Format 3:</strong></p>
<p id="ddm_08_0032__p163553171120">Run the following statement to kill the execution thread on the associated RDS instance:</p>
<p id="ddm_08_0032__p458535917216"><strong id="ddm_08_0032__b1326314539212">kill physical </strong><em id="ddm_08_0032__i195335415214">&lt;physical_thread_id&gt;</em><strong id="ddm_08_0032__b1215122612217">@</strong><em id="ddm_08_0032__i17142627182212">&lt;rds_ip&gt;</em><strong id="ddm_08_0032__b1215115264226">:</strong><em id="ddm_08_0032__i1361122211225">&lt;rds_port&gt;</em>;</p>
<p id="ddm_08_0032__p32199308117"><strong id="ddm_08_0032__b162091394406">physical_thread_id</strong>: indicates the ID of the execution thread on the associated RDS instance. You can obtain it from the result set in command 2.</p>
<p id="ddm_08_0032__p178871438113"><strong id="ddm_08_0032__b8682182514612">rds_ip</strong>: indicates the IP address of the associated RDS instance. You can obtain it from the result set in command 2.</p>
<p id="ddm_08_0032__p970025915116"><strong id="ddm_08_0032__b18766191885113">rds_port</strong>: indicates the port number of the associated RDS instance. You can obtain it from the result set in command 2.</p>
<div class="notice" id="ddm_08_0032__note15717795221"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="ddm_08_0032__ul812511416211"><li id="ddm_08_0032__li312554162116">SHOW PHYSICAL PROCESSLIST is available only in kernel 3.0.1 or later.</li><li id="ddm_08_0032__li412510419219">You need to log in to the target DDM instance and execute the preceding commands on it.</li></ul>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ddm_08_0002.html">Supported SQL Statements</a></div>
</div>
</div>