forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
22 lines
4.5 KiB
HTML
22 lines
4.5 KiB
HTML
<a name="EN-US_TOPIC_0000001233883385"></a><a name="EN-US_TOPIC_0000001233883385"></a>
|
|
|
|
<h1 class="topictitle1">Performance Statistics</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001233883385__en-us_topic_0059778587_p254017289712">During the running of the database, the lock access, disk I/O operation, and invalid message process are involved. All these operations are the bottleneck of the database performance. The performance statistics method provided by <span id="EN-US_TOPIC_0000001233883385__text386952898">GaussDB(DWS)</span> can facilitate the performance fault location.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001233883385__s4fd6432339d740f3998fd10be444d2db"><h4 class="sectiontitle"><strong id="EN-US_TOPIC_0000001233883385__b842352706174910">Generating Performance Statistics Logs</strong></h4><p id="EN-US_TOPIC_0000001233883385__adfd96ceb8d144a24b8d9e773ae15515b"><strong id="EN-US_TOPIC_0000001233883385__b50834120">Parameter description</strong>: For each query, the following four parameters control the performance statistics of corresponding modules recorded in the server log:</p>
|
|
<ul id="EN-US_TOPIC_0000001233883385__ua75782b01a6d4cbfafe6fd0531edf159"><li id="EN-US_TOPIC_0000001233883385__l64283ecd33f146b99d7c04a652fa14df">The <strong id="EN-US_TOPIC_0000001233883385__b22057378942059">og_parser_stats</strong> parameter controls the performance statistics of a parser recorded in the server log.</li><li id="EN-US_TOPIC_0000001233883385__l354a811d70374945a79c7baa734408ba">The <strong id="EN-US_TOPIC_0000001233883385__b112654318042059">log_planner_stats</strong> parameter controls the performance statistics of a query optimizer recorded in the server log.</li><li id="EN-US_TOPIC_0000001233883385__l4b06a619915f4263832a9446efdb5625">The <strong id="EN-US_TOPIC_0000001233883385__b157159900342059">log_executor_stats</strong> parameter controls the performance statistics of an executor recorded in the server log.</li><li id="EN-US_TOPIC_0000001233883385__lc74d9040328b428ea423519e9b97c2d0">The <strong id="EN-US_TOPIC_0000001233883385__b107147288242059">log_statement_stats</strong> parameter controls the performance statistics of the whole statement recorded in the server log.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001233883385__a1d801880aae94e6c88261244184fc68f">All these parameters can only provide assistant analysis for administrators, which are similar to the getrusage() of the Linux OS.</p>
|
|
<p id="EN-US_TOPIC_0000001233883385__p13910175051418"><strong id="EN-US_TOPIC_0000001233883385__b61647259246">Type</strong>: SUSET</p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001233883385__n6125fbf5e3da4ff0a65003dc6a1ac107"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001233883385__u03ab095ff24a42c080c1bb3903f9f639"><li id="EN-US_TOPIC_0000001233883385__lbee2434aa1684ce7a4d6502de151753d"><strong id="EN-US_TOPIC_0000001233883385__b1081019122283">log_statement_stats</strong> records the total statement statistics while other parameters only record statistics about each statement.</li><li id="EN-US_TOPIC_0000001233883385__le3fa6a5a60ec497c917454c998125efc">The <strong id="EN-US_TOPIC_0000001233883385__b160609639642059">log_statement_stats</strong> parameter cannot be enabled together with other parameters recording statistics about each statement.</li></ul>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001233883385__a3197873039b044998a59823ea870457f"><strong id="EN-US_TOPIC_0000001233883385__en-us_topic_0059778587_en-us_topic_0058967769_b46978094">Value range</strong>: Boolean</p>
|
|
<ul id="EN-US_TOPIC_0000001233883385__u4f64d2a992d44c048d459a4b68e8dc22"><li id="EN-US_TOPIC_0000001233883385__l8cca839973344b039a69658ca227da4b"><strong id="EN-US_TOPIC_0000001233883385__b842352706175332">on</strong> indicates the function of recording performance statistics is enabled.</li><li id="EN-US_TOPIC_0000001233883385__ldb24f2cfde1643aaad08a8a4fdf12ad9"><strong id="EN-US_TOPIC_0000001233883385__b842352706175419">off</strong> indicates the function of recording performance statistics is disabled.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001233883385__a7546fc41d3b643938f247bbf355f142b"><strong id="EN-US_TOPIC_0000001233883385__b55233292105553">Default value</strong>: <strong id="EN-US_TOPIC_0000001233883385__b842352706172155">off</strong></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0919.html">Statistics During the Database Running</a></div>
|
|
</div>
|
|
</div>
|
|
|