Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 577957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:12:34+00:00 2026-05-13T14:12:34+00:00

I have an application that uses a SQL FILESTREAM to store images. I insert

  • 0

I have an application that uses a SQL FILESTREAM to store images. I insert a LOT of images (several millions images per days).

After a while, the machine stops responding and seem to be out of memory… Looking at the memory usage of the PC, we don’t see any process taking a lot of memory (neither SQL or our application). We tried to kill our process and it didn’t restore our machine… We then kill the SQL services and it didn’t not restore to system. As a last resort, we even killed all processes (except the system ones) and the memory still remained high (we are looking in the task manager’s performance tab). Only a reboot does the job at that point. We have tried on Win7, WinXP, Win2K3 server with always the same results.

Unfortunately, this isn’t a one-shot deal, it happens every time.

Has anybody seen that kind of behaviour before? Are we doing something wrong using the SQL FILESTREAMS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:12:34+00:00Added an answer on May 13, 2026 at 2:12 pm

    You say you insert a lot of images per day. What else do you do with the images? Do you update them, many reads?

    Is your file system optimized for FILESTREAMs?

    How do you read out the images?

    If you do a lot of updates, remember that SQL Server will not modify the filestream object but create a new one and mark the old for deletion by the garbage collector. At some time the GC will trigger and start cleaning up the old mess. The problem with FILESTREAM is that it doesn’t log a lot to the transaction log and thus the GC can be seriously delayed. If this is the problem it might be solved by forcing GC more often to maintain responsiveness. This can be done using the CHECKPOINT statement.

    UPDATE: You shouldn’t use FILESTREAM for small files (less than 1 MB). Millions of small files will cause problems for the filesystem and the Master File Table. Use varbinary in stead. See also Designing and implementing FILESTREAM storage

    UPDATE 2: If you still insist on using the FILESTREAM for storage (you shouldn’t for large amounts of small files), you must at least configure the file system accordingly.

    Optimize the file system for large amount of small files (use these as tips and make sure you understand what they do before you apply)

    • Change the Master File Table
      reservation to maximum in registry (FSUTIL.exe behavior set mftzone 4)
    • Disable 8.3 file names (fsutil.exe behavior set disable8dot3 1)
    • Disable last access update(fsutil.exe behavior set disablelastaccess 1)
    • Reboot and create a new partition
    • Format the storage volumes using a
      block size that will fit most of the
      files (2k or 4k depending on you
      image files).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 340k
  • Answers 340k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The DisplacementMapFilter can be used to do this. DisplacementMapFilter(bmp,offset,1,2,75,75,"ignore") Will… May 14, 2026 at 4:45 am
  • Editorial Team
    Editorial Team added an answer Have you tried to put the connection code inside the… May 14, 2026 at 4:44 am
  • Editorial Team
    Editorial Team added an answer It depends on which database you are using. For SQL… May 14, 2026 at 4:44 am

Related Questions

I have an application that allows my users to make temporary changes to an
I have an ASP.NET application that uses a layered architecture e.g. presentation layer, business
I have an application that uses incident numbers (amongst other types of numbers). These
I have to support an application that uses an access database. My development machine
I am working on an Audit Log for an application that uses Linq-To-Sql. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.