Thursday, February 03, 2022

Windows Server Storage getting filled within minutes

Copy-pasting from an email conversation:

As you can see in the debugging, your code is writing some temp files which are not getting deleted, hence the filling up of space.

As mentioned in this link below, this temp folder
C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp

can be used as a temp dir by .NET applications,
https://stackoverflow.com/questions/5420898/find-temp-folder-for-user-network-service

So even though you might not have written any "save this to file" code, there might be some persistence code which has been written, which is causing this issue. You could try disabling various versions of the code (like disable the dev version or disable the uat version etc) to check which version causes this. Then you could try commenting out recent changes to pinpoint the section of code which causes this.

There are of course other ways like running a bat file to clear up the temp folder as in
https://www.easeus.com/data-recovery-solution/automatically-delete-temp-files.html#part2
but that will not solve the underlying problem.

No comments:

Post a Comment