Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Performance Tuning
»
Memory Management problem
Memory Management problem
Rate Topic
Display Mode
Topic Options
Author
Message
Dipali-436410
Dipali-436410
Posted Sunday, March 23, 2008 6:47 PM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, June 22, 2011 4:07 PM
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
Post #473327
TheSQLGuru
TheSQLGuru
Posted Monday, March 24, 2008 9:58 AM
Hall of Fame
Group: General Forum Members
Last Login: Today @ 1:13 PM
Points: 3,578,
Visits: 5,119
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
Post #473555
anil kumar singh-493266
anil kumar singh-493266
Posted Monday, March 24, 2008 10:09 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, May 19, 2008 9:56 AM
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.
Post #473566
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.