Hi friends,
My sql server 2005 has been encountering a problem for quite some time.
It keeps printing "Insufficient system memory to run this query".
This happens every 11 days. Four server programs are running on the server to connect to the database, and 3 jobs have been assigned in the agent(to backup and delete .bak files, and move data from one table to another)
I've looked up the web for this error and have tried the following to free memory,
dbcc freesystemcache('All')
dbcc dropcleanbuffers
dbcc freeproccache
dbcc freesessioncache
but the error is still happening.
The Server is running on Windows 2008 64bit, 12GB of RAM(6GB of paging), and SQL Server 2005 SP4 32bit.
The following is from 'sys.dm_os_memory_objects', first one ordered by multi_pages_kb, and second by single_pages_kb. The colored parts doesn't seem to be good.. I think..
It would be grateful for any advice, please.
order by multi
type | name | memory_node_id | single_pages_kb | multi_pages_kb | virtual_memory_reserved_kb | virtual_memory_committed_kb |
MEMORYCLERK_SOSNODE | SOS_Node | 0 | 14824 | 5736 | 0 | 0 |
MEMORYCLERK_SOSNODE | SOS_Node | 0 | 8 | 2800 | 0 | 0 |
MEMORYCLERK_SQLGENERAL | Default | 0 | 18680 | 1520 | 0 | 0 |
MEMORYCLERK_SQLBUFFERPOOL | Default | 0 | 0 | 880 | 3639968 | 3639968 |
MEMORYCLERK_SQLSTORENG | Default | 0 | 12448 | 320 | 2624 | 2624 |
MEMORYCLERK_SQLSERVICEBROKER | Default | 0 | 64 | 192 | 0 | 0 |
MEMORYCLERK_SQLOPTIMIZER | Default | 0 | 240 | 72 | 0 | 0 |
MEMORYCLERK_SNI | Default | 0 | 1120 | 16 | 0 | 0 |
MEMORYCLERK_SNI | Default | 0 | 0 | 16 | 0 | 0 |
CACHESTORE_OBJCP | Object Plans | 0 | 3456 | 16 | 0 | 0 |
CACHESTORE_STACKFRAMES | SOS_StackFramesStore | 0 | 0 | 8 | 0 | 0 |
OBJECTSTORE_SNI_PACKET | SNIPacket | 0 | 0 | 8 | 0 | 0 |
OBJECTSTORE_SNI_PACKET | SNIPacket | 0 | 0 | 8 | 0 | 0 |
OBJECTSTORE_SNI_PACKET | SNIPacket | 0 | 0 | 8 | 0 | 0 |
OBJECTSTORE_SNI_PACKET | SNIPacket | 0 | 0 | 8 | 0 | 0 |
order by single
CACHESTORE_SQLCP | SQL Plans | 0 | 1436296 | 0 | 0 | 0 |
MEMORYCLERK_SQLGENERAL | Default | 0 | 22344 | 1520 | 0 | 0 |
OBJECTSTORE_SNI_PACKET | SNIPacket | 0 | 20712 | 8 | 0 | 0 |
MEMORYCLERK_SOSNODE | SOS_Node | 0 | 16344 | 5736 | 0 | 0 |
MEMORYCLERK_SQLSTORENG | Default | 0 | 12448 | 320 | 2624 | 2624 |
USERSTORE_SCHEMAMGR | SchemaMgr Store | 0 | 8048 | 0 | 0 | 0 |
MEMORYCLERK_SQLCONNECTIONPOOL | Default | 0 | 6896 | 0 | 0 | 0 |
CACHESTORE_OBJCP | Object Plans | 0 | 3456 | 16 | 0 | 0 |
CACHESTORE_PHDR | Bound Trees | 0 | 2896 | 0 | 0 | 0 |
OBJECTSTORE_LOCK_MANAGER | Lock Manager : Node 0 | 0 | 1408 | 0 | 16384 | 16384 |
MEMORYCLERK_SNI | Default | 0 | 1120 | 16 | 0 | 0 |
USERSTORE_TOKENPERM | TokenAndPermUserStore | 0 | 672 | 0 | 0 | 0 |
USERSTORE_DBMETADATA | Daiso | 0 | 464 | 0 | 0 | 0 |
MEMORYCLERK_SQLOPTIMIZER | Default | 0 | 240 | 72 | 0 | 0 |
OBJECTSTORE_SNI_PACKET | SNIPacket | 0 | 224 | 8 | 0 | 0 |