forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
19 lines
2.9 KiB
HTML
19 lines
2.9 KiB
HTML
<a name="EN-US_TOPIC_0000001707254581"></a><a name="EN-US_TOPIC_0000001707254581"></a>
|
|
|
|
<h1 class="topictitle1">Top Time-Consuming SQL Statements Viewing</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_section821173714379"><h4 class="sectiontitle">Symptom</h4><p id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_p6798111510520">Time-consuming SQL statements exist.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_section386655614379"><h4 class="sectiontitle">Troubleshooting Process</h4><p id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_p12228181816512">On the <strong id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001076579583_b341112864711">Top 5 Time-Consuming Queries</strong> page directed from the <strong id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001076579583_b37244565477">Cluster Overview</strong> page, record the change of top 5 time-consuming queries.</p>
|
|
<p id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_p29581025105010">Analyze the frequency of top 5 queries to locate slow queries.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_section69919963819"><h4 class="sectiontitle">Troubleshooting Procedure</h4><ol id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_ol196501019153817"><li id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_li1065021943820"><span>On the <strong id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001076579583_b984812393487">Cluster Overview</strong> page, click and view the <strong id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001076579583_b17911342194819">Top5 Time-Consuming Queries</strong> page.</span></li><li id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_li4816105212416"><span>Find the IDs of time-consuming queries and query the pid field (session_id) in the database view <strong id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001076579583_b15136137164910">PGXC_WLM_SESSION_STATISTICS</strong>.</span></li><li id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_li1865051913820"><span>On the <strong id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001076579583_b14967741144914">Session Monitoring</strong> page, locate the session_id and kill the time-consuming SQL statement.</span></li></ol>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001707254581__en-us_topic_0000001423119205_en-us_topic_0000001076579583_p145212585509"></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_00137.html">Typical Scenarios</a></div>
|
|
</div>
|
|
</div>
|
|
|