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

Vasu Gala 1 Reputation point
2022-04-05T12:10:41.01+00:00

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?

Internet Information Services
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,528 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 31,571 Reputation points
    2022-04-05T22:05:46.253+00:00

    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://learn.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.


  2. Jose Zero 576 Reputation points
    2022-04-05T22:20:42.017+00:00

    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

    0 comments No comments