question

VasuGala-5957 avatar image
0 Votes"
VasuGala-5957 asked VasuGala-5957 commented

Copy Issue in WebServer: When IIS is running Copy speed decrease for one folder.

Hello Guys,

Since Last one month I am facing a weird issue while copying data to Live web server (Windows 2K12) from our testing server hosted on IIS. Now when I Kill the IIS services or shutdown IIS then copy speed get normal as usual. but when I start the IIS and try to copy anything in backend folder the speed will decrease automatically.

Note: I am not over righting the files. I am just adding the new files.

I have setup all the IIS files in the one folder and this folder is the my production folder where all my life website is hosted from.

Only facing issue in one folder only, on other folders it copy speed is normal and good.

Currently the folder size is: 100 GB,

Files count: 1.75 Millions.

Folder count: 1.34 Lac

No changes is happened in network connectivity or in configuration part.

Can anyone can guide me why this issue has been occurred? and what is the solution for this issue?

windows-server-iiswindows-server-2012
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MotoX80 avatar image
0 Votes"
MotoX80 answered VasuGala-5957 commented

I would run Process Monitor and trace the activity against the folder. If IIS is monitoring activity, then you should see w3wp.exe doing I/O against the folder.

https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

I don't know what "1.34 Lac" is, but when you have many files in a single folder the OS is going to need time to read the directory entries. I would suggest using perfmon and analyzing disk and cache statistics to look for problems.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1,34 Lac means 134 Thousand Folders or 0.134 Million Folders

0 Votes 0 ·
JoseZero-8614 avatar image
0 Votes"
JoseZero-8614 answered JoseZero-8614 edited

1.75 Millions files, is "really too many files", personally I´m sure your copy speed can be much more faster if you reduce drastically number of files.
Have in mind, before OS accepts the file it should check if name is not duplicated, choose which sectors are available on disk, write file name in directory tree and consider disk fragmentation, so there is a lot of work behind scenes. So it needs to find an available slot before get a file stored.

In addition, I would consider IIS have more priority than a user trying to copy files

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.