欧美三区_成人在线免费观看视频_欧美极品少妇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條評論
主站蜘蛛池模板: 日本免费视频在线观看 | 久久综合九色 | 欧美亚洲一区二区三区四区 | 国产精品国产三级国产播12软件 | 亚洲国产成人va在线观看网址 | 五月天婷婷精品视频 | 国产精品成人在线 | 污视频免费观看网站 | 欧美洲视频在线观看 | 99久热| 亚洲国产第一页 | 色视频免费版高清在线观看 | 国产欧美一级二级三级在线视频 | 亚洲一区二区三区福利在线 | 我不卡在线观看 | 国产欧美成人 | 精品久久久久久久久久 | 欧美精品黄页在线观看大全 | 精品中文字幕一区 | 成人精品在线 | 日日麻批的全部过程 | 天天操天天碰 | 久久只有这里有精品 | 久久亚洲欧美成人精品 | 日韩av片在线免费观看 | 国产综合亚洲精品一区二 | 欧美高清视频一区 | 亚洲色图综合图片 | 欧美一级毛片在线看视频 | 奇米影视第七色 | 亚洲自拍另类 | 97精品国产91久久久久久 | 国产精品久久久久久亚洲调教 | 精品欧美乱码久久久久久 | 亚洲一区二区三区欧美 | 激情久久久久 | 欧美成人免费高清网站 | 亚洲综合日韩欧美一区二区三 | 看特级毛片 | 波多野结衣一区二区三区四区 | 99热国产这里只有精品9九 |