I have a server where my app is using FileSystemWatcher to monitor a folder say, e:\A. Inside the folder A, there are as many as 16,000 folders and each subfolder has numerous other folders and files.
The app is crashing to desktop in about 1 hour. When there were fewer folders, the app was working fine. I have increased the internal buffer to twice the default value.
Is there a limit on the maximum number of folders to be monitored? Or the folder itself is unstable due to the huge number of folders?
Update:
The app runs on a virtual machine(vmware).
Windows Server 2008.
dual 2.53 Intel Xeon.
4 GB of RAM.
RAID. [ 1.3TB, may be increased. ]