简体   繁体   English

临时ASP.NET文件和TeamCity

[英]Temporary ASP.NET files & TeamCity

Our TeamCity agent machines have been struggling for disk space recently. 最近,我们的TeamCity代理机器一直在争夺磁盘空间。 I did a little snooping on each of the machines to find that the Temporary ASP.NET folder in the .NET installation directory was taking up more than 10GB of space on each box, each folder comprising of about 5MB each. 我在每台计算机上进行了一些窥探,发现.NET安装目录中的Temporary ASP.NET文件夹在每个包装盒上占用了10GB以上的空间,每个文件夹包含大约5MB。

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

I've done my research on the subject and I know that the files are a biproduct of ASP.NET's dynamic compliation, I also understand how IIS uses them for request optimisation (See: Understanding ASP.NET Dynamic Compilation ) 我已经对该主题进行了研究,我知道文件是ASP.NET动态编译的副产品,我也了解IIS如何将它们用于请求优化(请参阅: 了解ASP.NET动态编译 )。

What I don't understand is why no one else is complaining about how these files are taking up disk space on their build servers when they really only need to be used on their web servers. 我不明白的是,为什么没有人抱怨这些文件实际上只需要在其Web服务器上使用时如何占用其构建服务器上的磁盘空间。

Surely someone out there has run into this problem before, can anyone offer me a solution other than 肯定有人在那里碰到过这个问题,除了我以外,谁能给我解决方案

  1. Disabling dynamic compliation (outlined here ) 禁用动态补全( 此处概述)
  2. Doing a brute force scheduled job deletion (outlined here ) 进行强力计划的作业删除( 此处概述)

These files are created when a website is actually run under IIS. 这些文件是在IIS下实际运行网站时创建的。 They are not created when it is built and should not be on your build server. 它们在构建时不会创建,因此不应在构建服务器上。 I am using TeamCity to build websites and do not have this issue. 我正在使用TeamCity来构建网站,并且没有此问题。 The files are created on the webservers of course, but not the build server. 这些文件当然是在Web服务器上创建的,但不是在构建服务器上创建的。

Are you launching the website (for UI unit testing) perhaps? 您是否正在启动网站(用于UI单元测试)?

最后,我不得不接受被执行每月一次的计划任务PowerShell脚本,我也跟着Bredan的过程,这个概括SysAdminSpot后 ,只有少数修改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM