G
Guest
We are encountering a couple of problems with our ASP.NET / IIS 6.0
applications:
In each of 3 production environments we maintain a Windows Server 2003
machine running NTFS as a file server. The file server typically has 10s of
thousands of files on it. We've nver bothered to count, but I can imagine
that some environments excede 100,000 files.
Problem #1) We use the HttpContext Cache with a dependency on some given
file on the file server. Eventually the servers in our web farm will stop
recognizing that a dependency file has changed (we delete the file, and
eventually create a new file to the same path) and hold onto the given Cache
object, despite the dependecy file having changed. We have tried
stopping/starting IIS, but it seems the web server itself has to be rebooted,
and then caching works correctly until next time. We are aware of a possibly
related knowledge base article describing an error condition where cache
monitoring fails to start, but in this case we do not think we are throwing
any errors.
Problem #2) Eventually among the many thousands of files on our file server,
one will get into a state where the OS thinks it is locked by an application.
We cannot delete the file, and investigation reveals no application locking
the file. We have researched this problem and the only solution seems to be
to reboot the file server. This is a terrible solution, because our whole
production set-up depends on the file server running, and we need to reuse
the path the locked file is occupying.
applications:
In each of 3 production environments we maintain a Windows Server 2003
machine running NTFS as a file server. The file server typically has 10s of
thousands of files on it. We've nver bothered to count, but I can imagine
that some environments excede 100,000 files.
Problem #1) We use the HttpContext Cache with a dependency on some given
file on the file server. Eventually the servers in our web farm will stop
recognizing that a dependency file has changed (we delete the file, and
eventually create a new file to the same path) and hold onto the given Cache
object, despite the dependecy file having changed. We have tried
stopping/starting IIS, but it seems the web server itself has to be rebooted,
and then caching works correctly until next time. We are aware of a possibly
related knowledge base article describing an error condition where cache
monitoring fails to start, but in this case we do not think we are throwing
any errors.
Problem #2) Eventually among the many thousands of files on our file server,
one will get into a state where the OS thinks it is locked by an application.
We cannot delete the file, and investigation reveals no application locking
the file. We have researched this problem and the only solution seems to be
to reboot the file server. This is a terrible solution, because our whole
production set-up depends on the file server running, and we need to reuse
the path the locked file is occupying.