Author: DaveTrenaman
Subject: Extremely slow CloseFile operation
Posted: 04 April 2017 at 11:18pm
Trouble shooting why the csc.exe (c# compiler) is slow.
Edited by DaveTrenaman - 22 hours 45 minutes ago at 11:20pm
Subject: Extremely slow CloseFile operation
Posted: 04 April 2017 at 11:18pm
Trouble shooting why the csc.exe (c# compiler) is slow.
Using Process Monitor I discovered a 60 sec CloseFile operation. The compiler is invoked as part of an Asp.Net web app so is writing to "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files". The file in question is an .out file which must be some sort of intermediate compiler output. Writes to the file happen quickly but the CloseFile operation hangs up. The file is 11K in size.
This is a customers vm running Server 2012. I have a similar in house VM that does not have this issue. From adjusting the the ProcessMontior filters it appears the only two processes that interact with the .out file are csc.exe and the aspnet_compiler.exe which spawns it.
My immediate thought is some sort of anti virus software is interfering but the server is not running any antivirus. Any recommendations on trouble shooting steps to try next?
Thanks,
Dave
Edited by DaveTrenaman - 22 hours 45 minutes ago at 11:20pm