{"id":108,"date":"2020-06-09T10:36:53","date_gmt":"2020-06-09T02:36:53","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=108"},"modified":"2020-09-10T07:37:56","modified_gmt":"2020-09-09T23:37:56","slug":"gbase-8a%e9%9b%86%e7%be%a4%e6%9f%a5%e7%9c%8b%e5%bd%93%e5%89%8d%e8%bf%90%e8%a1%8c%e7%8a%b6%e6%80%81%ef%bc%8c%e6%af%94%e5%a6%82%e5%86%85%e5%ad%98%e4%bd%bf%e7%94%a8%e6%83%85%e5%86%b5","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/108","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u72b6\u6001\uff0c\u5185\u5b58\u4f7f\u7528\u60c5\u51b5"},"content":{"rendered":"<p>GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\u8fd0\u884c\u65f6\u7684\u5f88\u591a\u72b6\u6001\uff0c\u53ef\u4ee5\u901a\u8fc7\u5143\u6570\u636e\u8868 GLOBAL_STATUS\uff0cSESSION_STATUS\u8fdb\u884c\u8bfb\u53d6\uff0c\u4e5f\u53ef\u4ee5\u7528show\u547d\u4ee4\u7b80\u5355\u3002\u6ce8\u610f\u96c6\u7fa4\u5206\u7ba1\u7406\u8282\u70b9\u548c\u6570\u636e\u8282\u70b9\uff0c\u9700\u8981\u5404\u81ea\u67e5\u770b\uff0c\u4e14\u6bcf\u4e2a\u673a\u5668\u4e5f\u5404\u81ea\u4e0d\u540c\u3002\u8be5\u529f\u80fd\u4e3b\u8981\u7528\u4e8e\u8fd0\u7ef4\u548c\u76d1\u63a7\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2aadc3aa58e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2aadc3aa58e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/108\/#%E5%85%83%E6%95%B0%E6%8D%AE%E8%A1%A8\" >\u5143\u6570\u636e\u8868<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/108\/#show_status_like_%E2%80%98meminfo\" >show status like &#8216;%meminfo%&#8217;<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%83%E6%95%B0%E6%8D%AE%E8%A1%A8\"><\/span>\u5143\u6570\u636e\u8868<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> select * from information_schema.GLOBAL_STATUS where variable_name like 'meminfo%';\n+----------------------------------+----------------+---------------+-----------+\n| VARIABLE_NAME                    | VARIABLE_VALUE | SESSION_LEVEL | WRITEABLE |\n+----------------------------------+----------------+---------------+-----------+\n| MEMINFO_CACHE_ACCESS_TIMES       | 0              |             1 |         1 |\n| MEMINFO_CACHE_HIT_RATE_%         | 0.000000       |             1 |         1 |\n| MEMINFO_CACHE_HIT_TIMES          | 0              |             1 |         1 |\n| MEMINFO_CACHE_MISS_TIMES         | 0              |             1 |         1 |\n| MEMINFO_CACHE_REMOVED_LIST_SIZE  | 0              |             1 |         1 |\n| MEMINFO_DC_HEAP_AVAILBLE_SIZE    | 536870912      |             1 |         1 |\n| MEMINFO_DC_HEAP_MALLOC_SIZE      | 0              |             1 |         1 |\n| MEMINFO_DC_HEAP_TOTAL_SIZE       | 536870912      |             1 |         1 |\n| MEMINFO_DC_HEAP_USED_SIZE        | 0              |             1 |         1 |\n| MEMINFO_LARGE_HEAP_AVAILBLE_SIZE | 268435456      |             1 |         1 |\n| MEMINFO_LARGE_HEAP_MALLOC_SIZE   | 0              |             1 |         1 |\n| MEMINFO_LARGE_HEAP_TOTAL_SIZE    | 268435456      |             1 |         1 |\n| MEMINFO_LARGE_HEAP_USED_SIZE     | 0              |             1 |         1 |\n| MEMINFO_TEMP_HEAP_AVAILBLE_SIZE  | 268433472      |             1 |         1 |\n| MEMINFO_TEMP_HEAP_MALLOC_SIZE    | 0              |             1 |         1 |\n| MEMINFO_TEMP_HEAP_TOTAL_SIZE     | 268435456      |             1 |         1 |\n| MEMINFO_TEMP_HEAP_USED_SIZE      | 1984           |             1 |         1 |\n+----------------------------------+----------------+---------------+-----------+\n17 rows in set (Elapsed: 00:00:00.01)\n\ngbase> select * from information_schema.SESSION_STATUS where variable_name like 'meminfo%';\n+----------------------------------+----------------+---------------+-----------+\n| VARIABLE_NAME                    | VARIABLE_VALUE | SESSION_LEVEL | WRITEABLE |\n+----------------------------------+----------------+---------------+-----------+\n| MEMINFO_CACHE_ACCESS_TIMES       | 0              |             1 |         1 |\n| MEMINFO_CACHE_HIT_RATE_%         | 0.000000       |             1 |         1 |\n| MEMINFO_CACHE_HIT_TIMES          | 0              |             1 |         1 |\n| MEMINFO_CACHE_MISS_TIMES         | 0              |             1 |         1 |\n| MEMINFO_CACHE_REMOVED_LIST_SIZE  | 0              |             1 |         1 |\n| MEMINFO_DC_HEAP_AVAILBLE_SIZE    | 536870912      |             1 |         1 |\n| MEMINFO_DC_HEAP_MALLOC_SIZE      | 0              |             1 |         1 |\n| MEMINFO_DC_HEAP_TOTAL_SIZE       | 536870912      |             1 |         1 |\n| MEMINFO_DC_HEAP_USED_SIZE        | 0              |             1 |         1 |\n| MEMINFO_LARGE_HEAP_AVAILBLE_SIZE | 268435456      |             1 |         1 |\n| MEMINFO_LARGE_HEAP_MALLOC_SIZE   | 0              |             1 |         1 |\n| MEMINFO_LARGE_HEAP_TOTAL_SIZE    | 268435456      |             1 |         1 |\n| MEMINFO_LARGE_HEAP_USED_SIZE     | 0              |             1 |         1 |\n| MEMINFO_TEMP_HEAP_AVAILBLE_SIZE  | 268433472      |             1 |         1 |\n| MEMINFO_TEMP_HEAP_MALLOC_SIZE    | 0              |             1 |         1 |\n| MEMINFO_TEMP_HEAP_TOTAL_SIZE     | 268435456      |             1 |         1 |\n| MEMINFO_TEMP_HEAP_USED_SIZE      | 1984           |             1 |         1 |\n+----------------------------------+----------------+---------------+-----------+\n17 rows in set (Elapsed: 00:00:00.00)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">show status like '%meminfo%'<\/h2>\n\n\n\n<p>like\u90e8\u5206\u5c31\u662f\u6807\u51c6\u7684\u6a21\u7cca\u67e5\u8be2\u8bed\u6cd5<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"421\" height=\"350\" src=\"http:\/\/www.gbase8.cn\/wp-content\/uploads\/2020\/06\/image-41.png\" alt=\"\" class=\"wp-image-109\"\/><\/figure>\n\n\n\n<p>\u67e5\u770b\u5168\u90e8\u7684\uff0c\u5c31\u53bb\u6389like\u90e8\u5206<br>show status<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5176\u5b83\u8fd0\u7ef4\u76d1\u63a7\u547d\u4ee4\uff0c\u8bf7\u53c2\u8003<\/p>\n\n\n\n<p><a href=\"http:\/\/www.gbase8.cn\/en\/?tag=%e7%9b%91%e6%8e%a7\">http:\/\/www.gbase8.cn\/?tag=%e7%9b%91%e6%8e%a7<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\u8fd0\u884c\u65f6\u7684\u5f88\u591a\u72b6\u6001\uff0c\u53ef\u4ee5\u901a\u8fc7\u5143\u6570\u636e\u8868 GLOBAL_STATUS\uff0cSESSION_STATUS\u8fdb\u884c\u8bfb\u53d6\uff0c\u4e5f\u53ef\u4ee5\u7528show\u547d\u4ee4\u7b80\u5355\u3002\u6ce8\u610f\u96c6\u7fa4\u5206\u7ba1\u7406\u8282\u70b9\u548c\u6570\u636e\u8282\u70b9\uff0c\u9700\u8981\u5404\u81ea\u67e5\u770b\uff0c\u4e14\u6bcf\u4e2a\u673a\u5668\u4e5f\u5404\u81ea\u4e0d\u540c\u3002\u8be5\u529f\u80fd\u4e3b\u8981\u7528\u4e8e\u8fd0\u7ef4\u548c\u76d1\u63a7\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[39,28],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-39","tag-28"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":4,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":1067,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/108\/revisions\/1067"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}