Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Memory Management problem


Memory Management problem

Author
Message
Dipali-436410
Dipali-436410
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 175
I have a table that has an image data type. Whenever I try to insert data into that column (pdf files) using ADO Objects, it works OK for smaller files (upto 5 MB). Once the file gets bigger than 5900 KB, the insert returns with an error (Insufficient Memory Available). When I ran a trace on the Insert to see the exact error. Following are the trace data:

2008-03-23 19:44:04.53 spid84 WARNING: Failed to reserve contiguous memory of Size= 19398656.

2008-03-23 19:44:04.53 spid84 Buffer Distribution: Stolen=6988 Free=2 Procedures=3294
Inram=0 Dirty=4161 Kept=0
I/O=0, Latched=111, Other=193300

2008-03-23 19:44:04.53 spid84 Buffer Counts: Commited=207856 Target=207856 Hashed=197572
InternalReservation=621 ExternalReservation=0 Min Free=128 Visible= 207856

2008-03-23 19:44:04.53 spid84 Procedure Cache: TotalProcs=1346 TotalPages=3294 InUsePages=1994

2008-03-23 19:44:04.53 spid84 Dynamic Memory Manager: Stolen=10279 OS Reserved=1056
OS Committed=1034
OS In Use=1025
Query Plan=3250 Optimizer=0
General=2648
Utilities=142 Connection=5155


2008-03-23 19:44:04.53 spid84 Global Memory Objects: Resource=1151 Locks=56
SQLCache=445 Replication=52
LockBytes=2 ServerGlobal=848
Xact=36

2008-03-23 19:44:04.53 spid84 Query Memory Manager: Grants=0 Waiting=0 Maximum=149464 Available=149464


2008-03-23 19:44:04.54 spid84 Error: 17803, Severity: 20, State: 12
2008-03-23 19:44:04.54 spid84 Insufficient memory available..


Can anybody advice me with appropriate memory setting so that the code starts working. This same piece of code works fine on some other server with exact same physical configuration
TheSQLGuru
TheSQLGuru
SSCertifiable
SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)

Group: General Forum Members
Points: 6004 Visits: 8314
search support.microsoft.com for this

Error 17803 Insufficient memory available sql server 2000

and you can find numerous causes for this. See if any match your situation.

Also, perhaps you can just add more memory to the server?

not sure but memtoleave could also be culprit.

need more information about server and sql server config to provide more advice.

Best,

Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
anil kumar singh-493266
anil kumar singh-493266
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 6
Please compare the size of the row (one record in the table)and also for the limit of the datatype that has been specified to store the files.

The extents and size should be multiple of the block size of the operating system file.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search