亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

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

系統(tǒng) 2283 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號(hào)聯(lián)系: 360901061

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

【本文對(duì)您有幫助就好】

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 日本免费不卡一区 | 在线成人中文字幕 | 免费福利网站在线观看 | 国产成人午夜精品影院游乐网 | 狠狠色噜噜噜噜狠狠狠狠狠狠奇米 | 国产免费不卡 | 国产欧美亚洲精品综合在线 | 欧美一级毛片免费看高清 | 黄色私人影院 | 欧美成人性做爰网站免费 | 99精品视频观看 | 高清欧美日本视频免费观看 | 女人18级毛片久久 | 一级欧美日韩 | 天天干天天操天天拍 | 久久综合九色综合精品 | 99久久精品国产一区二区 | 国产精品久久久久久永久牛牛 | 国产不卡精品一区二区三区 | 九九久久久2 | 国产日韩久久 | 国产小视频91 | 久久精品国产在爱久久 | 日本一级特级毛片视频 | 国产精品福利视频手机免费观看 | 国产伦理久久精品久久久久 | 日韩视频 中文字幕 视频一区 | 国产精品毛片一区二区三区 | 高清一级毛片免免费看 | 日本一区二区三区高清在线观看 | 亚洲国产第一区二区香蕉 | 免费在线观看福利 | 日本香蕉视频在线观看 | 波多野结衣3女同在线观看 波多野结衣av1区2区3区 | 毛片视频网站在线观看 | 99在线热播 | 四虎在线最新永久免费 | 香蕉免费一区二区三区在线观看 | 欧美不卡影院 | 天天操天天射天天色 | jizzjizzjizz中国|