Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





SQL Dynamic Memory Management And Low Free Buffers/


We are just beginning to use a third party tool to monitor our SQL Servers. One very active server seems to have a few occassions where the Free buffer goes very low (under 10)however, it seems to quickly resolve back to a couple of hundred free buffers. This occurs both during times with heavy user activity and times with little user activity but high sql agent maintenance activity. Other memory numbers and the Buffer cache hit ratio seem fine. Any ideas? Is this normal when SQL Dynamically manages memory?




View Complete Forum Thread with Replies

Related Forum Messages:
SQL Cls Failed LazyWriter: No Free Buffers Found.
hi
We have use SQL Server 2005 on 64bit windows 2003 server Cluster. SQL instance stop responding for some leaving application interrupted.
In the Sql Err log I noticed the following information memory errors just before cluster issued stop command to SQlsrvres. Lazywriter gave warning that no free buffers found .

6/20/08 11:02 AMWarning[098] SQLServerAgent terminated (forcefully)
6/20/08 11:02 AMError[382] Logon to server '(local)' failed (DisableAgentXPs)
6/20/08 11:02 AMError[298] SQLServer Error: 258<c/> Unable to complete login process due to delay in prelogin response [SQLSTATE 08001]
6/20/08 11:02 AMError[165] ODBC Error: 0<c/> Login timeout expired [SQLSTATE HYT00]
6/20/08 11:02 AMError[298] SQLServer Error: 258<c/> TCP Provider: Timeout error [258]. [SQLSTATE 08001]
6/20/08 11:02 AMError[311] Thread 'AlertEngine' (ID 3812) is still running
6/20/08 11:02 AMError[311] Thread 'JobInvocationEngine' (ID 860) is still running
6/20/08 11:02 AMError[240] 2 engine thread(s) failed to stop after 30 seconds of waiting
6/20/08 11:01 AMInformation[131] SQLSERVERAGENT service stopping due to a stop request from a user<c/> process<c/> or the OS...
6/20/08 10:58 AMspid2sUnknownMEMORYBROKER_FOR_RESERVE <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYBROKER_FOR_STEAL <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYBROKER_FOR_CACHE <nl/>
6/20/08 10:58 AMspid2sUnknownBig Gateway <nl/>
6/20/08 10:58 AMspid2sUnknownMedium Gateway <nl/>
6/20/08 10:58 AMspid2sUnknownSmall Gateway <nl/>
6/20/08 10:58 AMspid2sUnknownOptimization Queue <nl/>
6/20/08 10:58 AMspid2sUnknownSmall Query Memory Objects: Grants=0 Waiting=0 Maximum=12800 Available=12800 Limit=12800
6/20/08 10:58 AMspid2sUnknownQuery Memory Objects: Next Request=0 Waiting For=0 Cost=0 Timeout=0 Wait Time=0 Last Target=787875
6/20/08 10:58 AMspid2sUnknownQuery Memory Objects: Grants=3 Waiting=0 Maximum=775075 Available=774691 Limit=775075
6/20/08 10:58 AMspid2sUnknownGlobal Memory Objects: <nl/>
6/20/08 10:58 AMspid2sUnknownProcess physical/virtual memory pressure: 0/0 System physical memory pressure: 0
6/20/08 10:58 AMspid2sUnknownProcedure Cache: TotalProcs=10446 TotalPages=117316 InUsePages=6442
6/20/08 10:58 AMspid2sUnknownBuffer Counts: Committed=1032192 Target=1048458 Hashed=895536<nl/>
6/20/08 10:58 AMspid2sUnknownBuffer Distribution: Stolen=10949 Free=0 Cached=125707<nl/>
6/20/08 10:58 AMspid2sUnknownOBJECTSTORE_LOCK_MANAGER (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownOBJECTSTORE_SERVICE_BROKER (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownOBJECTSTORE_SNI_PACKET (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownOBJECTSTORE_LBSS (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownUSERSTORE_SXC (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownUSERSTORE_OBJPERM (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownUSERSTORE_TOKENPERM (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownUSERSTORE_DBMETADATA (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownUSERSTORE_SCHEMAMGR (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_SYSTEMROWSET (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_EVENTS (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_BROKERTO (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_BROKERREADONLY (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_BROKERRSB (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_BROKERUSERCERTLOOKUP (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_BROKERDSH (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_BROKERKEK (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_BROKERTBLACS (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_STACKFRAMES (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_XMLDBATTRIBUTE (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_XMLDBELEMENT (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_XMLDBTYPE (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_VIEWDEFINITIONS (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_NOTIF (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_TEMPTABLES (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_XPROC (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_PHDR (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_SQLCP (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownCACHESTORE_OBJCP (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLSERVICEBROKERTRANSPORT (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SOSNODE (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_HOST (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLQERESERVATIONS (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_BHF (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLXP (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_FULLTEXT (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SNI (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLHTTP (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLSERVICEBROKER (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLCLR (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLCONNECTIONPOOL (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLSTORENG (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLUTILITIES (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLOPTIMIZER (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLQUERYEXEC (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLBUFFERPOOL (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMEMORYCLERK_SQLGENERAL (Total) <nl/>
6/20/08 10:58 AMspid2sUnknownMemory node Id = 0 <nl/>
6/20/08 10:58 AMspid2sUnknownMemory Manager <nl/>
6/20/08 10:58 AMspid2sUnknownLazyWriter: warning<c/> no free buffers found.

View Replies !
SQL Server 2005 SP2 X64 Crashes...LazyWriter: Warning, No Free Buffers Found.
While waiting for the fax of instructions to contact MS Support, I thought I would post here (tried several times and no fax...)

 

We get this message in the log file and then all hell breaks loose until it resets memory.   The SQL Service continues working but nobody can connect for about 5 minutes and then is seems to reset itself.  This has happened three times over the past two weeks.  Only one time it did create the SQLDUMP files but all three occurences have practically the same entries. 

 

We are running SQL Server 2005 x64 SP2 under Windows 2003 x64 SP1.  We have 4GB RAM and SQL is configured to use 2GB of it.  We have a large number of databases (about 400) on this one instance that experiences this problem.  The server itself is not under a tremendous load.  All of the databases were recently upgraded from SQL 2000 SP4 32 bit instance.  The first occurence happened just days after the migration. 

 

 

----- Log Entries -----

 

 LazyWriter: warning, no free buffers found.

 

2007-06-14 14:15:56.18 spid3s     
Memory Manager
 VM Reserved = 4415288 KB
 VM Committed = 4398048 KB
 AWE Allocated = 0 KB
 Reserved Memory = 1024 KB
 Reserved Memory In Use = 0 KB

2007-06-14 14:15:56.18 spid3s     
Memory node Id = 0
 VM Reserved = 4409528 KB
 VM Committed = 4392376 KB
 AWE Allocated = 0 KB
 SinglePage Allocator = 1951840 KB
 MultiPage Allocator = 81680 KB

2007-06-14 14:15:56.18 spid3s     
MEMORYCLERK_SQLGENERAL (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 39264 KB
 MultiPage Allocator = 21944 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLBUFFERPOOL (Total)
 VM Reserved = 4214784 KB
 VM Committed = 4198400 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 0 KB
 MultiPage Allocator = 8 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLQUERYEXEC (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 264 KB
 MultiPage Allocator = 104 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLOPTIMIZER (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 26816 KB
 MultiPage Allocator = 96 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLUTILITIES (Total)
 VM Reserved = 120 KB
 VM Committed = 120 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 4728 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLSTORENG (Total)
 VM Reserved = 96768 KB
 VM Committed = 96768 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 62192 KB
 MultiPage Allocator = 27624 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLCONNECTIONPOOL (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 4392 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLCLR (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLSERVICEBROKER (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 624 KB
 MultiPage Allocator = 320 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLHTTP (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SNI (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 568 KB
 MultiPage Allocator = 16 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_FULLTEXT (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 16 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLXP (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 16 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_BHF (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 336 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLQERESERVATIONS (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8192 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_HOST (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 24 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SOSNODE (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 42376 KB
 MultiPage Allocator = 27392 KB

2007-06-14 14:15:56.20 spid3s     
MEMORYCLERK_SQLSERVICEBROKERTRANSPORT (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 48 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_OBJCP (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 352016 KB
 MultiPage Allocator = 432 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_SQLCP (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 953192 KB
 MultiPage Allocator = 3088 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_PHDR (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 308728 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_XPROC (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 56 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_TEMPTABLES (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 128 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_NOTIF (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 16 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_VIEWDEFINITIONS (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 16 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_XMLDBTYPE (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_XMLDBELEMENT (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_XMLDBATTRIBUTE (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_STACKFRAMES (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 0 KB
 MultiPage Allocator = 8 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_BROKERTBLACS (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 96 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_BROKERKEK (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_BROKERDSH (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_BROKERUSERCERTLOOKUP (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_BROKERRSB (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_BROKERREADONLY (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 32 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_BROKERTO (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 8 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_EVENTS (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 16 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
CACHESTORE_SYSTEMROWSET (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 43744 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
USERSTORE_SCHEMAMGR (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 30632 KB
 MultiPage Allocator = 16 KB

2007-06-14 14:15:56.20 spid3s     
USERSTORE_DBMETADATA (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 39856 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
USERSTORE_TOKENPERM (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 14536 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
USERSTORE_OBJPERM (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 14904 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
USERSTORE_SXC (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 936 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
OBJECTSTORE_LBSS (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 64 KB
 MultiPage Allocator = 400 KB

2007-06-14 14:15:56.20 spid3s     
OBJECTSTORE_SNI_PACKET (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 6584 KB
 MultiPage Allocator = 48 KB

2007-06-14 14:15:56.20 spid3s     
OBJECTSTORE_SERVICE_BROKER (Total)
 VM Reserved = 0 KB
 VM Committed = 0 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 272 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.20 spid3s     
OBJECTSTORE_LOCK_MANAGER (Total)
 VM Reserved = 8192 KB
 VM Committed = 8192 KB
 AWE Allocated = 0 KB
 SM Reserved = 0 KB
 SM Committed = 0 KB
 SinglePage Allocator = 4232 KB
 MultiPage Allocator = 0 KB

2007-06-14 14:15:56.21 spid3s      Buffer Distribution:  Stolen=22764 Free=0 Cached=221235
  Database (clean)=268686 Database (dirty)=3406
  I/O=0, Latched=5

2007-06-14 14:15:56.21 spid3s      Buffer Counts:  Committed=516096 Target=523990 Hashed=272097
  Internal Reservation=104798 External Reservation=1022
  Stolen Potential=252769
   Min Free=128 Visible=523990
   Available Paging File=4634734592
2007-06-14 14:15:56.21 spid3s      Procedure Cache:  TotalProcs=11768 TotalPages=202189 InUsePages=950

2007-06-14 14:15:56.21 spid3s      Process physical/virtual memory pressure: 0/0 System physical memory pressure: 0

2007-06-14 14:15:56.23 spid3s      Global Memory Objects:
  Resource= 2880
  Locks= 532
  SE Schema Mgr= 3653
  SQLCache= 1622
  Replication= 3
  ServerGlobal= 49
  XPGlobal= 2
  Xact= 165
  SETLS= 4
  DatasetMemObjs= 8
  SubpDescPmos= 4
  SortTables= 2

2007-06-14 14:15:56.23 spid3s      Query Memory Objects:  Grants=8 Waiting=0 Maximum=226034 Available=225010 Limit=226048

2007-06-14 14:15:56.23 spid3s      Query Memory Objects:  Next Request=0 Waiting For=0 Cost=0 Timeout=0 Wait Time=0 Last Target=237945

2007-06-14 14:15:56.23 spid3s      Small Query Memory Objects:  Grants=0 Waiting=0 Maximum=11895 Available=11895 Limit=11895

2007-06-14 14:15:56.24 spid3s     
Optimization Queue
 Overall Memory = 3440517120 Target Memory = 1485357056 Last Notification = GROW Timeout = 6 Early Termination Factor = 5
2007-06-14 14:15:56.24 spid3s     
Small Gateway
 Configured Units = 16 Available Units = 16 Acquires = 0
 Waiters = 0 Threshold Factor = 380000 Threshold = 380000
2007-06-14 14:15:56.24 spid3s     
Medium Gateway
 Configured Units = 4 Available Units = 4 Acquires = 0
 Waiters = 0 Threshold Factor = 12 Threshold = -1
2007-06-14 14:15:56.24 spid3s     
Big Gateway
 Configured Units = 1 Available Units = 1 Acquires = 0
 Waiters = 0 Threshold Factor = 8 Threshold = -1
2007-06-14 14:15:56.24 spid3s     
MEMORYBROKER_FOR_CACHE
 Allocations = 221239
 Rate = 0
 Target Allocations = 379816
 Future Allocations = 0
 Last Notification = GROW

2007-06-14 14:15:56.24 spid3s     
MEMORYBROKER_FOR_STEAL
 Allocations = 22741
 Rate = 0
 Target Allocations = 181318
 Future Allocations = 0
 Last Notification = GROW

2007-06-14 14:15:56.24 spid3s     
MEMORYBROKER_FOR_RESERVE
 Allocations = 1024
 Rate = 0
 Target Allocations = 253810
 Future Allocations = 95233
 Last Notification = GROW

2007-06-14 14:39:56.82 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 148160 KB. Approx CPU Used: kernel 125 ms, user 62 ms, Interval: 65000.
2007-06-14 14:40:56.84 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 218536 KB. Approx CPU Used: kernel 328 ms, user 93 ms, Interval: 125046.
2007-06-14 14:41:56.84 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 288960 KB. Approx CPU Used: kernel 515 ms, user 125 ms, Interval: 185046.
2007-06-14 14:42:56.84 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 366008 KB. Approx CPU Used: kernel 718 ms, user 171 ms, Interval: 245046.
2007-06-14 14:43:56.84 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 435992 KB. Approx CPU Used: kernel 968 ms, user 296 ms, Interval: 305046.
2007-06-14 14:44:56.84 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 505160 KB. Approx CPU Used: kernel 1203 ms, user 390 ms, Interval: 365046.
2007-06-14 14:45:56.84 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 572488 KB. Approx CPU Used: kernel 1468 ms, user 468 ms, Interval: 425046.
2007-06-14 14:46:56.84 Server      Resource Monitor (0x1180) Worker 0x000000008000C1C0 appears to be non-yielding on Node 0. Memory freed: 639056 KB. Approx CPU Used: kernel 1703 ms, user 500 ms, Interval: 485046.

View Replies !
The Buffer Manager Detected That The System Was Low On Virtual Memory, But Was Unable To Swap Out Any Buffers.
[DTS.Pipeline] Information: The buffer manager detected that the system was low on virtual memory, but was unable to swap out any buffers. 12 buffers were considered and 12 were locked. Either not enough memory is available to the pipeline because not enough is installed, other processes are using it, or too many buffers are locked.

View Replies !
Private Buffers And Flat Buffers. What's The Difference?
Hi,

A long time ago I posted this: http://blogs.conchango.com/jamiethomson/archive/2005/06/09/1583.aspx explaining all the different buffer types in the pipeline.

I have to admit I'm still not clear on the difference between a private buffer and a flat buffer though.

Are flat buffers a subset of private buffers.
If so, if a private buffer is not a flat buffer - what is it?
If not, can a buffer be a private buffer AND a flat buffer?

 

Some descriptions from BOL are:

Private buffers: A private buffer is a buffer that a transformation uses for temporary work only
Flat buffers: Flat buffers are blocks of memory that a component uses to store data

That sounds like two ways of saying the same thing to me! It certainly doesn't distinguish them anyway!

 

 

Just seeking some clarification here. If you could whip of a demo package that explains the difference between the two (with reference to the Performance Counters) then that would be great.

 

Thanks

Jamie

 

View Replies !
Free Up Memory
Good day.

I'm executing a stored procedure, before execution the memory used for sqlservr.exe in the task manager reflects about 50mb. but after the stored procedure is executed, the memory used by sqlservr.exe boosts up to 200mb and remains at 200mb even after execution. this causes my pc to slow down. how dow i reset the memory used by sqlservr.exe after executing the stored procedure? any help will be very much appreciated. thank you.


waling

View Replies !
Dynamic Memory Allocation??? (releasing Memory)
Greetings Guru's,

dB envirnment: MS SQL 7.0 , 1 GB memory, 60 GB database, Service pack 3,
compaq quad-zeon pentium 500


It seems that when you run a large process on sql server, sql server tends to use as much memory as possible when the memory settings for the server are set to dynamic memory allocation.

Scenario:
When I run a large process the momory usage shown on the process tab
goes up to 800 MB. Once the process finishes the memory usage shown
is still around 800MB.

When I change the server option to use fixed memory to 500MB and re-run
the same process. The memory usage shown on the task manager
goes up to around 500MB. Once the process completes, the momory usage
is still around 500MB.

Is there any way that I can relase the memory from once a large process completes?????

View Replies !
How To Free Memory Used By Prior Query Statement Within A Batch By TSQL?
Just Like these:

-- batch start
Select * from someTable --maybe a query which need much res(I/O,cpu,memory)

/*
can I do something here to free res used by prior statement?
*/

select * from someOtherTable
--batch end

The Sqls above are written in a procedure to automating test for some select querys.

View Replies !
WARNING: Clearing Procedure Cache To Free Contiguous Memory.
We see the following message in our error log.
WARNING: Clearing procedure cache to free contiguous memory.
It is accomonpanied by fairly intensive CPU activity.
We get this roughly once per working day.

Anyone have any idea why, and what we can do to stop this?

Regads,

Jim Plant

View Replies !
Memory Management (fixed Memory, AWE)
Hi,

I am going to install SQL Server 2000 (then SQL 2K5) on a Win Server 2K3 with 8 GB of ram, but it will be 16 GB in the near future.

I would like to reserve a fixed memory (for momemt less than 3-4 GB) for SQL Server and the rest for application (virtualization).

Without AWE enabled, max memory for SQL Server 2K5 is 4GB as for SQL Server 2000? 

How can I manage and optimize memory keeping in mind AWE. (any doc, website available?)

Thank

 

 

 

 

View Replies !
Take 1 Dynamic Sql Query, Add Some Free Text Searching, And A Dash Of Custom Paging
Hey guys,

I've got a question that can only be explained with an example, BTW im using MSSQL2005:

I have a web app that allows users to search for other users on a wide range of criteria. Some are set values from dropdowns and others are text areas. My SPROC creates a dynamic sql query with optional where clauses and uses FREETEXT(...) for any criteria that comes from a text area.

My problem is 3 fold:
1) I'd like to order my data by the RANK provided by the FREETEXTTABLE(..) but I have 5 parameters that are 'text' so that means i'll get 5 different FREETEXTTABLES with 5 different RANKs and im not sure the best way of combining the RANKS...maybe an average but id like some ideas??

2) Assuming I implement the above and now i'm getting a result set ordered by RANK id like to implement some custom paging. I see two ways to do this:

a) I use ROW_NUMBER() OVER (ORDER BY [MyRankingCol]) and then SELECT * (excluding the ROW_NUMBER() col) that fall between my range.
The problem i forsee with this is how do i get the total number of records returned so I can display it on the webpage? I'd like to use @@ROWCOUNT but this wont return what i need. That means im going to have to run the exact same query again but instead use COUNT(*). So for every page change im performing 2 searches...not fond of that.

As an optimization on the above I could only run the COUNT(*) query once and keep track of that in the web app but i run the risk of having inaccurate results...so im not going that way.

Does anyone know another a way where I can get the rowcount before I do the paging?

b) the second way I can attack this is by creating a temp table (i've looked at the alternatives like using ROWCOUNT but they all force you to order by an ID field..this wont work in my case since im ordering by rank and they wont be unique). With the temp table i can have a synthetic ID that I can then use my between clause on.
The problem with this is that im create a temp table for every page change.


So thoes are the issues....can anyone offer some suggetions? I hope my problem description was clear if not let me know what is fuzzy and I can clarify some more.

View Replies !
SQL CLR Memory Management
Hello,

I have a few questions about the behavior of the CLR host within SQL Server 2005. We are using a UDT (call it MyDateTime) created in C# that represents the COM FILETIME type, in order to have single millisecond resolution. MyDateTime values are stored in the database as binary(8), with the UDT itself being used primarily for display and reporting purposes. I am running performance tests using a prototype (written in C# as well) that runs 20 threads which repeatedly call a stored procedure, which accepts two MyDateTime's, and queries a table based on those MyDateTime's binary string representation. After a certain amount of time (depending on the particular system's resources), threads will start to be aborted. Most of the time the reason is "SQL Exception: .NET Framework execution was aborted by escalation policy because of out of memory." Sometimes, eventually the appdomain will be unloaded, and if I restart the prototype, the process starts over. Sometimes, I will have to restart the server before any more CLR processing can occur (no automatic appdomain unload). While the prototype is running, I'll check the MEMORYCLERK_SQLCLR rows in sys.dm_os_memory_clerks, and see the columns for pages and virtual memory ever increasing, until a threshold is hit (on my system, approximately 225 megs of virtual memory committed), resulting in all 20 threads being aborted, one by one, within 30-45 seconds. During that time some of the remaining threads will still have successful calls, while others are aborted.

I understand the necessity for the CLR in SQL Server to monitor and abort threads, in order to preserve the database server itself, as well as the importance of exception handling client-side, but unless the UDT code itself has a leak in it (I'm fairly confident it doesn't), this behavior confuses me. X amount of stored procedure calls (on my system, approximately 65,000 within an hour) can occur before SQL Server runs out of memory, and will constantly abort any thread trying to use the UDT, until it decides to unload the appdomain? Is it entirely up to the client to catch any threadaborts and retry those transactions, and is there any way to facilitate or predict if/when the appdomain is going to unload? Am I missing something about how garbage collection is functioning within SQL Server, or the CLR itself?  Even simple CLR code slowly eats up the memory and causes the same results, if enough transactions are made.  Does a long running or high transaction system have to anticipate a regular intervention by the escalation policy?

Any insight you could give me would be greatly appreciated. Have a good day.

-Dan

P.S. I'm running the September CTP of SQL Server and the Release Candidate of Visual Studio, based on our current development requirements--I will upgrade when I can.

View Replies !
How To Free The Memory Occupied By &&"blob&&" In MS Sql Server
i'm working in microsoft sql server and i got following problem:

I have a text files Asia.txt  in E:  folder with some data in it as shown below

Asia.txt

1, Mizuho, Fukushima, Tokyo
2, Minika, Pang, Taipei
3, Jen, Ambelang, India
4, Jiang, Hong, Shangai
5, Ada, Koo, HongKong

And I have a table Region, in the database Companies, as shown below.

1>CREATE TABLE REGION (ID INT,REGION VARCHAR(25),DATA varbinary(MAX))
2>GO

I queried all the data from Asia.txt, using the OPENROWSET function.

1>INSERT INTO REGION (ID, REGION, DATA)
2>SELECT  1 AS ID, 'ASIA' AS REGION,
3>      * FROM OPENROWSET( BULK 'E:Asia.txt',SINGLE_BLOB)
4>AS MYTABLE
5>GO

it occupied some memory then i deleted this record using follwoing query

1>DELETE REGION
2>GO

then it deletes the record successfully but memory is not getting freed

can anyone help me out on this problem

View Replies !
SQL Server 2005 Memory Management
Hi all,

I needed to load some tables in memory on startup because of performance reasons.
I'm using "select * from <table>", but there are few questions:

1. How to pin already selected data in memory ? (DBCC PINTABLE doesn't work for 2005)

2. How to put index data in memory ? (do you read document(s) for advance memory management - index data caching ?)

3. How to pin index data in memory ? (otherwise sound very bad - table data in fast memory, index data - in slow disks)



Thanks in advance:

Siol En

View Replies !
SQL Server 2005 Memory Management
 

Hi all,
I needed to load some tables in memory on startup because of performance reasons.
I'm using "select * from <table>", but there are few questions:
1. How to pin already selected data in memory ? (DBCC PINTABLE doesn't work for 2005)
2. How to put index data in memory ? (do you read document(s) for advance memory management - index data caching ?)
3. How to pin index data in memory ? (otherwise sound very bad - table data in fast memory, index data - in slow disks)
 
Thanks in advance:
Siol En

View Replies !
2005 Memory Management Questions
I've read and noticed SQL 2005 handles memory differently then 2000.  In 2000 if I told a server it had 6GB to use, it allocated the memory.  In 2005 I have one 32-bit server with 6GB of memory and one 64-bit server with 32 GB.  If Target Server Memory is the amount of memory SQL Server would like to have, how does that correspond to Maximum Server Memory?  Also, how is Target Server Memory determined?
 
32-bit
Physical Memory = 8GB
Target Server Memory = 6GB (Willing to consume)
Total Server Memory = 690MB (Currently consuming)
Minimum Server Memory = 2GB
Maximum Server Memory = 6GB
 
For the 32-bit server the Target Server Memory matches Maximum Server Memory
 
64-bit
Physical Memory = 32GB
Target Server Memory = 28GB (Willing to consume)
Total Server Memory = 397MB   (Currently consuming)
Minimum Server Memory = 4GB
Maximum Server Memory = 30GB
 
For the 64-bit server the Target Server Memory is less then the Maximum Server Memory
 
Lock Pages in Memory is set for the service account.  Neither server above has yet to be released to production and only the 32-bit server has any users.  In 2000 when SQL Server started I could count on it using about 1.72GB of memory immediately.  Seeing the servers above consume only only 690MB and 397MB has me concerned.  Is this just a case of SQL Server 2005 handling memory better then 2000?
 
Thanks,    Dave

View Replies !
Dynamic Memory In SQL2000
Does anyone mess with this feature? they say that you don't have to change this setting in sql2000. I have 3 gigs of memory and have it still set to dynamically configure the memory. I don't know if i should change this to a fixed memory size, if i did how do you tell what value to set it at? What are the pros and cons if I set it to fixed? Thanks.

View Replies !
Server Memory (Dynamic)
What is a good way to test if the amount of RAM used by
SQL Server is automatically adjusted on a as needed basis, if
I have the "Dynamic Memory" set?

View Replies !
SQL Server Dynamic Memory
I have set up our SQL server 7.0 SP 2 to have a maximum memory setting of 512 MB. That's about half my total amount of memory available.
I've been doing some NT Performance Monitor traces and the target sever memory is always above that limit. Also, I have noticed that as each day goes by, the total SQL memory goes over the 512 MB limit anyway.
Is that normal? It seems my dynamic memory goes over the limit I've established. Has anyone experience this?
Thanks!!!


Valeria

View Replies !
Dynamic Memory Allocation
dB envirnment:

It seems that when you run a large process on sql server, sql server tends to use as much memory as possible when the memory settings for the server are set to dynamic memory allocation.

When I change the option

View Replies !
Memory Management In A Clustered SQL2000 Environment
Does anyone have any experience with Memory Management in a Clustered SQL2000 Environment so that they can answer a few concerns that I have ?

My main issue is with the allocation of memory when Failover occurs and providing enough memory to support the failed over Virtual Servers (SQl named instances).

If anyone has any experience on this please let me know and I will tell you all my troubles !!

Cheers

View Replies !
What Is Better.. Static Or Dynamic Memory Allocation ?
I have gotten mixed comments on this topic. I have a 64 bit machine running 64 windows 2003 standard and 64 SQL 2005 standard with 8 GB of RAM. We want to upgrade it to 32 GB. What is the best approach to do this? Dynamic or Stattic giving min and max server memory a value ? and if static what value should I use for 32 GB knowing that this box is only being used for SQL.

View Replies !
Sql Server Memory Dynamic Or Fixed?
I have a person who just recomended to a customer to use Fixed instead of Dynamic for the SQL Server Memory setting informing me that I was wrong for setting it to use Dynamic.

 

Well I tried to explain that why would you want to give away memory if you do not need to, he just answered that I was wrong, any help in proving me wrong or him wrong?

 

Which way is the correct way.  I was told by a very bright person with a strong background in the developement of SQL that when it was written it was done so with the word "fixed" memory size was done in lower case just as a reminder that you can but should never use "fixed" that you should always use Dynamic (which by the way does use a capitol "D"...)

 

Just wondering...Thanks for the help guys...

 

This is the personal edition running on the XP Pro platform for use in a Point-of-Sale enviorment with 6 other computers connecting to hte SQL server on the one back of house computer which is running 4mb of memory.

I told them that the minimum should be at zero and the max is set to half....

View Replies !
What Is Better.. Static Or Dynamic Memory Allocati
I have gotten mixed comments on this topic. I have a 64 bit machine running 64 windows 2003 standard and 64 SQL 2005 standard with 8 GB of RAM. We want to upgrade it to 32 GB. What is the best approach to do this? Dynamic or Stattic giving min and max server memory a value ? and if static what value should I use for 32 GB knowing that this box is only being used for SQL.

View Replies !
Speed, Memory Usage Question For Photo Management
Hi all, quick question.  A while back I developed a website that allowed upload of photos.  At the time, I used ASP and VBasic-behind and wrote code to store and retrieve all photos in an SQL database in binary format.  I am looking at a new project, very similar, and was wondering if anybody had any idea how this method might compare to simply storing the image files on the server and using the database to simply point to their location.  I am wondering how the two methods compare spped wise and hard drive space they may consume.  Does anybody have any idea on a direct comparison?? Any benchmark tests anybody has seen or ran?
Thanks all,
Chris

View Replies !
Dynamic Memory Allocation And Page Faults
We are noticing that our SQL servers are having unusually high page faults/sec, around 1200. I have read that this is a symptom of having too much memory allocated to SQL. Is that still true with SQL 7 and dynamic memory allocation? We are using the default values for dynamic memory allocation. Should we decrease the maximum memory? By how much? Doesn't SQL server automatically reserve memory for NT?

View Replies !
Use Of Dynamic Management Views
I have found that there is some very good information available inside of the dynamic management views related to Service Broker, however I have also found this to be problematic as by default only the dba's at my company had access to these views and it took me several days to get a login that could see them. Just a thought, but it would be nice if this data were available using a view that is more accessible.

View Replies !
While Opening Management Studio I Am Getting Error--Attempted To Read Or Protected Memory.
 

Hi,
I am getting error while opening the Data Base Engine in Sql server Management Studio.
We applied SP2. and restarted the server but no luck.
Error Message:Attempted to read or protected memory. This is often an indication that other memory is corrupt(mscorlib).
 
 

View Replies !
System Tables, Dynamic Management Views: Confused
As im diving into my new DBA role and reading as much as I can, I am a little confused on DMV's and system tables.
I've been reading through the book "SQL Server 2005 Bible", which has been very helpful. I tend to use it in conjunction with BOL whenever I come across something I want to learn more.

Last Friday, I tinkered around with DMV's, which was really cool, but I ran into something today that confused me.

Basically, it was finding out the recovery model for all the DB's on the server. The code in the book was:


SELECT [name], recovery_model_desc
FROM sys.databases;


Which turned exactly what it says it will.

however, I am confused.
I initially thought I needed to specify something in the "[name]" section, but realized, that is not the case.
My question is, why is that?
How do I know when to use [] around something?

I found this article:

http://www.databasejournal.com/features/mssql/article.php/3587906

I have been reading it.
I guess I am just really young and raw to T-SQL to know when to use the language corectly.

Is it due to the fact that the rules or syntax is a little different when using system tables?

Hope that makes sense.

Thanks.

TCG

View Replies !
No Buffers
Occasionally on my SQL 2K SP3 Standard servers. The servers lock up withthe error.LazyWriter: warning, no free buffers found.After that I have to restart the SQLServer service to get things up andrunning. How can I prevent this from happening?Thanks,Ray

View Replies !
Buffers
Someone told me they closed there window and lost their query and wanted to know if there was some way to get it back from a buffer or something. Does anyone know if that is possible? I was not aware of anything like that, but the way that SQL caches and buffers things I thought it might be possible extract a query from a buffer or something...?

Cheers,

-Ryan

View Replies !
How To Clean Buffers
Dear All,
i'm trying increase the performance of one select statement.

after trying first time, at the second time it is giving results fastly.because the data is there already in the buffers.

how can i clean the buffers everytime after run the query?

i'm using

--dbcc dropcleanbuffers
--dbcc freeproccache

are these enough or need some more....
please guide me

Vinod
Even you learn 1%, Learn it with 100% confidence.

View Replies !
Is There A SQL Server API To Flush All Buffers To Disk?
I am looking for an API to flush all data in memory held by SQL Serverto disk. Also, is there a tool for SQL Server like eseutil forExchange that lets you correct a SQL database?

View Replies !
Query Editor Undo Buffers
Does anyone else feel limited by (only) 20 undo buffers in the Query Analyzer editor? And does anyone know how to boost it? Thanks!

View Replies !
BULK INSERT && DIRTY BUFFERS
Hi all

Using SQL 2000 MSDE

I'm bulk inserting about 3.200.000 records into a table

unfortunately all memory dissapears and never returns the dirty buffers count goes up to 48000 approx.

any ideas on how to rectify this ..... ?

View Replies !
LogLRU Buffers Configuration Setting And Lrustats
I have corrected the problem with named pipes versus TCP/IP but I have found a reference to lrustats stating that page flushes should be less than 100 and free avg less than 10 but my numbers are extremely high. One of the things I noticed upon assuming this job was that many settings were off a bit bit LogLRU buffers were never set.This setting was introduced with service pack 2 with a readme.txt on how to configure. All my references and the ones that I have skimmed through in bookstores do not contain this configuration setting.

Microsoft no longer offers SP2 for download so that I could get the readme.txt. If any of you have this file or service pack laying around, please email it to me so that I can configure. It is suppose to take care of some bufwait errors. I even download the French version to see if it was there and maybe I could find someone with a french background but it did not contain the file. It was in last years Technet CD but my company tossed it when they got the new one. Can anyone help?

View Replies !
Script To Check Free Data Size And Free Log Size In MS SQL 6.5
Dear all,

Is there any sql script to get the szie for free data space and free log space in MS SQL 6.5?

sp_spaceused and dbcc sqlperf (logspace) doesn't seem to provide the answer.

Thanks for yr help.

Rgds
Ung

View Replies !
SSIS Process Error &&"Too Many Buffers Are Locked&&"
Anyone seen this SSIS error when importing data? I have a 64bit quad processor with 8gb and am importing from Oracle 9 using 32bit DTExec.exe from the command line.

OnInformation,Myserver,MyDomainSQLAdmin,J001OracleDimExtract,{CEB7F874-7488-4DB2-87B9-28FC26E1EF9F},{1221B6EB-D90A-466E-9444-BA05DBC6AFD8},6/29/2006 10:58:08 AM,6/29/2006 10:58:08 AM,1074036748,0x,The buffer manager detected that the system was low on virtual memory, but was unable to swap out any buffers. 2 buffers were considered and 2 were locked. Either not enough memory is available to the pipeline because not enough is installed, other processes are using it, or too many buffers are locked.

 

Thanks

View Replies !
Attempted To Read Or Write Protected Memory. This Is Often An Indication That Other Memory Is Corrupt. (Microsoft Visual Studio)
Hello. I have received the follwoing error upon an attempt to Browse the Cube. All other tabs are functional, including the Calculations tab. We are running Windows Server 2003 SP2 and SQL Server 2005 SP2. Any suggestions would be greatly appreciated!

**EDIT** - Have confirmed SP1 for VS2005 is installed both locally and on server, also.


Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft Visual Studio)

------------------------------
Program Location:

   at Microsoft.Office.Interop.Owc11.PivotView.get_FieldSets()
   at Microsoft.AnalysisServices.Controls.PivotTableFontAdjustor.TransformFonts(Font font)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.UpdatePivotTable(Boolean translate)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.UpdateAll(Boolean translate)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.InitialUpdate()
   at Microsoft.AnalysisServices.Browse.CubeBrowser.SupportFunctionWhichCanFail(FunctionWhichCanFail function)

View Replies !
AWE/Lock Page In Memory Drawbacks? Min/Max Settings, Memory Issues
I've been researching AWE to determine if we should enable this for our environment.
 
Currently we have a quad core box with 4 gb of RAM (VMware).  OS: Windows 2003 std, SQL Server 2005 std.  3GB is not set but will be as soon as we can perform maintenance on the server. 
 
I have read mixed feedback on AWE, either it works great or grinds you to a hault.  I would assume that the grinding to a hault is due to not setting the min/max values correctly or not enabling the lock page in memory setting.
 
We only have one instance of SQL on the server and this box won't be used for anything else aside from hosting SQL services.  We do plan on running SSRS off of this server as well.
 
1.  Will running SSRS and enabling AWE cause me problems?  Will I have to reduce the max setting by the SSRS memory usage or will it share and play nice?
 
2.  How do I go about setting the Max value?  Should it be less than the physical RAM in the box?  Right now its set to the default of 214748364, even if I don't enable AWE should this default value be changed?
 
3.  It seems that even at idle the SQL server holds a lot of memory and the page file grows.  If I restart the process in the morning, memory usage in taskmon is at 600mb or so.  By the end of the day, its up around 2gb.  How can I track down whats causing this, should this even concern me?
 
4.  The lock Page in memory setting worries me.  Everything I've read on this seems to give a warning about serious OS and other program support degradation.  In some cases to the point where they have to restore the settings on the server before they can bring it back up.  What are your thoughts on this.
 
 

View Replies !
SQL Not Utilizing Available 2gig Memory Yet Giving Memory Timeouts
We had 2 gigs of memory on our sql7 box which we upgraded to 2.5 gigs.

Problem I'm having is that sql is not utilzing the 2 gigs it comes up to 1.8 gigs and doesn't increase its size which is fine. But we are getting memory timeout errors yet sql server is not increasing available memory.

I tried setting the minimum server memory option to 2 gigs but it is still not utilizing it.

Any help will be appreciated.

thanks

View Replies !
Get &&"Buffers Spooled&&" Programatically
 

How dou you get the performance counter "Buffers Spooled" programatically. Not sure how to access it.

 

Thanks

 

View Replies !
Memory Leak...How To Get Memory Usage For Each Connections?
Hi Guys,I find there is memory leak in our SQL 2000+SP3 databass. We have aclient-server system, and the there are Jrun4.0 running JSP and someotherJava application talks to the database.However, for only less than 40 users, the SQL 2000 memory usage willincrease consistantly until it use all the memory it can get ,about 1.7Gmemory. Then eventually the SQL server process will hang in couple days.I don't know whether JRun JSP stuff or Java application is the culprit, andI am wondering if there is a way to monitor the memory usage of everydatabase connection.I would love to know what you guys think!Thanks a lot!

View Replies !
Memory Issues, SSIS Package Out Of Memory Help
I am running Visual Studio 2005. I have an SSIS Package which is consuming a huge amount of memory. During the execution of the package the memory keeps increasing. Until finally i get an Out of Memory exception. I have run this package using dtexec, and in the BIDS. No difference. I do have some script components and have added some code to get the assemblies in the current appdomain. I do see that one particular assembly is increasing on every loop. VBAssembly every time it hits the script component is increasing by 6, and along with it the memory is climbing. What is this VBAssembly being used for is there an update to SQL Server Integration Services that I need?

Thanks! Aaron B.

View Replies !
Sql Server 2000 Using Less Memory After More Memory Added
sql server 2000 is running on windows server 2003 ... 4gb of memory on server .... 2003 was allocated  2.3gb nd sql server was allocated (and using all of it) 1.6gb for total of approx 4gb based on idera monitor software ... all memory allocated betweeen the OS and sql server  .... then 4 more gb of memory added for total now of 8g ... now idera monitor shows 1.7gb for OS and 1.0 gb for sql server ..... 'system' info shows 8gb memory with PAE ... so I assume that the full 8gb can now be addressed .... why are less resources being used now with more total memory .... especially sql server ..... i thought about specifying a minimum memmry for sql server but i amnot convinced that would even work since it seems that this 1gb limit is artificial .... it it used 1.6 gb before why would it not use at least that much now ??
 
thank you

View Replies !
Would Max Memory Including SSIS And SSAS Memory
Hello, I understand that we should use SSMS -> Server Properties -> Memory to put a cap on the SQL server memory usage, therefore it gives some space memory for OS, this is based on the fact if the max memory is not specified, SQL will use whatever available memory and eventually crash the system.

My question is that when a server has SSIS and SSAS services installed along with the SQL service. Would the max memory setting covers the SSIS and SSAS memory usage, or the SSIS and SSAS has to shared the memory with OS?

Thanks,
fshguo.

View Replies !
Management Studion Express Alongside Full-blown Management Studio?
Is it possible to run both Sql Server Management Studio: Express and full blown side by side?

I am developing with the full blown product but would like to test Management Studio Express on the same box.
Is this possible?

Thanks

Eric

View Replies !
SQL Server Management Express Studio Management Tools
 

I have recently installed the SQL Server Management Studio Express but I do not find Management Tools in order to create scheduled backups and shrinking of the databases. I was under the impression that this should be included in the Management Studio. I use the SQL 2005 Express for smaller customers who run the SQL on a desktop unit. I need a way to backup the data to a server machine for backup purposes. I have uninstalled and reinstalled to no avail.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved