欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

SQL Server 如何確定內(nèi)存瓶頸

系統(tǒng) 2089 0

Detect Memory Bottleneck in SQL Server

By : Kasim Wirama, MCDBA

?

This article, I would like to give information about memory bottleneck at SQL Server. The easiest way to know whether your SQL Server undergoes memory bottleneck is by looking at Task Manager, tab Performance, Physical Memory section. Compare the Total and Available value, as long as Available is over 100 MB, it is still okay. If Available value is under 10 MB, your database server box is definitely under physical memory pressure. Besides physical memory pressure, there is virtual memory pressure. Let’s take a look for these kinds of pressure and see what solutions addressed to the corresponding problems.

?

You can get information about physical memory pressure by looking at these performance monitor counters: Memory:Available bytes, SQL Server:Buffer Manager: Buffer Cache Hit Ratio, Page Life Expectancy, Checkpoint Pages/sec, and Lazywrites/sec. You have your system performing well if value of first two counters are high and last two counters are low.

?

You can check how many memories allocated for buffer pool by issuing DBCC MEMORYSTATUS query in SSMS. Compare value between Committed and Target, if Target value is low, it indicates external physical memory pressure. You need to find out whether other application that causes external memory pressure, besides SQL Server, by looking at maximum memory consumed in Process tab of Task Manager window. If other application causes external memory pressure, it is advisable that the application is separated from database server box, or you add more memory. You need to check internal memory pressure by looking at percentage of stolen page to total committed page from DBCC MEMORYSTATUS. Percentage value is greater than 75% or 80% indicating internal physical memory pressure. ?Interesting thing about internal memory pressure is that you need to find out what components causing so many stolen memory page by querying this DMV below :

?

SELECT type, SUM(single_pages_kb) FROM sys.dm_os_memory_clerks
GROUP BY type
ORDER BY SUM(single_pages_kb) DESC

?

From query above, single page allocation takes memory from SQL Server buffer pool, whereas multipage allocation allocates memory outside buffer pool. Multipage allocator possibly causes internal memory pressure. You can get information about memory allocated to multipage page allocation by querying DMV below :

?

SELECT type, SUM(multi_pages_kb) FROM sys.dm_os_memory_clerks
WHERE multi_pages_kb != 0
GROUP BY type
ORDER BY SUM(multi_pages_kb) DESC

?

To detect virtual memory pressure, you can look at performance counter name here : Paging File: %Usage and Memory:Commit Limit.

Some solutions addressed to virtual memory pressure. They are:

  1. 1. ?????? Increase size of page file
  2. 2. ?????? Use /3GB options
  3. 3. ?????? Switch to 64 bit machine that have 8 TB memory address space.

SQL Server 如何確定內(nèi)存瓶頸


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 荷兰欧美一级毛片 | 51国产视频 | 成人国产精品一区二区毛片在线 | 久久精品23 | 奇米成人网 | 山岸逢花在线观看 | 国产噜噜噜精品免费 | 99久久国产综合精品网成人影院 | 免费免费视频片在线观看 | 亚洲国产天堂久久综合226 | 精品视频在线免费看 | 久久cao | 日韩一区二区三区在线观看 | 中文字幕在线免费观看 | 五月婷婷丁香综合网 | 性夜影院爽黄a爽在线看香蕉 | 亚洲 欧美 日韩 综合aⅴ视频 | 一级女性大黄生活片免费 | 伊人精品影院 | 成人一区二区三区四区 | 特级黄一级播放 | 欧美激情亚洲激情 | 亚洲 欧美 日韩中文字幕一区二区 | 国产成人一区二区 | 久久久人成影片一区二区三区 | 亚洲成人精品在线 | a毛片视频| 国产一区二区三区在线 | 91精品国产欧美一区二区 | 日韩第3页| 两性视频网 | 久草成人在线 | 奇米影视亚洲四色8888 | 免费观看黄色a一级视频播放 | 天天躁日日躁狠狠躁中文字幕 | 亚洲视频 欧美视频 | 成年人免费小视频 | 国产午夜精品理论片免费观看 | 免费观看一级欧美在线视频 | 婷婷色综合 | 久久精品免费人成人A片 |