| Author |
Topic |
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 03:11:50
|
| I have some huge queries that I'm using and SQL suddenly stopped using all the beautiful memory it was using before.I've enabled page locks on server 2008 x64I've set the min\max at 25GB and I have 32gb of ram on a dedicated machine.This seemed to happen after having to restore this machine. Any ideas? |
|
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 03:19:42
|
| Process/System Counts ValueAvailable Physical Memory 30690926592Available Virtual Memory 8741543809024Available Paging File 64173826048Working Set 490463232Percent of Committed Memory in WS 99Page Faults 138675System physical memory high 1System physical memory low 0Process physical memory low 0Process virtual memory low 0Memory Manager KBVM Reserved 52934200VM Committed 479512Locked Pages Allocated 0Large Pages Allocated 0Emergency Memory 1024Emergency Memory In Use 16Target Committed 25600000Current Committed 479512Pages Allocated 253840Pages Reserved 0Pages Free 34192Pages In Use 291616Page Alloc Potential 24028384NUMA Growth Phase 0Last OOM Factor 0Last OS Error 0 |
 |
|
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 03:24:17
|
| If its relevant the DB is 65gb and the queries are large join queries with wildcards.I also had an incident where tempDB ballooned to 450gb once. Wondering if that is related?Windows Server 2008 R2 and SQL 2012 Developer. |
 |
|
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 03:32:04
|
| Database_Page_Cache_MB Procedure_Cache_MB Misc_Memory_Usage_MB Total_Memory_Usage_MB Maximum_Workspace_MB150.070312 26.335937 4.367187 180.773436 19042.96875 |
 |
|
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 03:35:08
|
| Database Name DirtyPageCount CleanPageCount TotalPageCount BufferPoolMBResource Database 0 3023 3023 23.62OLD 0 1781 1781 13.91MYMAINDB 0 1536 1536 12.00tempdb 53 1232 1285 10.04OLD 3 877 880 6.88msdb 11 569 580 4.53master 0 386 386 3.02model 0 96 96 0.75 |
 |
|
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
Posted - 2012-07-03 : 08:33:32
|
| Could you run the following query and post the results?SELECT total_physical_memory_kb, available_physical_memory_kb, total_page_file_kb, available_page_file_kb, system_memory_state_descFROM sys.dm_os_sys_memory ;Jack Vamvas--------------------http://www.sqlserver-dba.com |
 |
|
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 09:56:41
|
quote: Originally posted by jackv Could you run the following query and post the results?SELECT total_physical_memory_kb, available_physical_memory_kb, total_page_file_kb, available_page_file_kb, system_memory_state_descFROM sys.dm_os_sys_memory ;Jack Vamvas--------------------http://www.sqlserver-dba.com
total_physical_memory_kb available_physical_memory_kb total_page_file_kb available_page_file_kb system_memory_state_desc33506272 19965064 67010692 52655056 Available physical memory is highRunning at 12.9GB right now with a query that's been running all night. |
 |
|
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
Posted - 2012-07-03 : 10:06:08
|
| It looks like there is plenty of memory. Have you checked the execution plan of the query? Is there blocking\deadlocking?Jack Vamvas--------------------http://www.sqlserver-dba.com |
 |
|
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 11:32:40
|
| How do I check for locks? |
 |
|
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
Posted - 2012-07-03 : 14:04:14
|
| For blocking you have some good options from 2005 and later( I'm assuming you are using at least 2005) : DMV - sys.dm_os_wait_stats, sys.dm_os_waiting_tasks ,sys.dm_tran_locks Trace - Blocked Process Report in SQL Trace Jack Vamvas--------------------http://www.sqlserver-dba.com |
 |
|
|
pebkacbigdatauser
Starting Member
23 Posts |
Posted - 2012-07-03 : 18:02:28
|
| Those files are too wide to view properly on here so I've drop boxed them.https://www.dropbox.com/sh/geadtvwc77oy1tt/xBRdQXdrwK |
 |
|
|
|