关于博客园服务器升级到Windows 2003 SP 1引起的问题(都是SP 1惹的祸)
昨天夜里,在博客园服务器上安装了Windows 2003 SP 1, 安装之后一切正常,今天早上发现一个新注册的用户的Blog页面无法访问,访问时出现错误“无法创建目录或文件”,更新了程序的dll后,该用户的页面可以访问了,但又发现其他用户的Blog页面无法访问,出现同样的错误,这时又收到一些用户反映无法访问自己的Blog的邮件。看来这个问题与安装SP 1有关。于是,我删除了C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root中所有文件,删除之后,问题解决了,页面访问恢复正常,但删除之后,服务器CPU占用率一直很高,平均CPU占用率是70%, 一不小心就会跑到100%, 我估计是asp.net在进行页面编译,因为早上访问量高,很多人访问很多不同的页面,观察C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root文件夹的大小,一直在增长,目前这个文件夹有600多M,asp.net要编译600多M的内容,难怪占用这么多CPU。接下来,情况越来越糟,打开博客园页面的速度很慢,用SQL事件查看进行监视,很多存储过程执行时间超长,后来,打开首页直接显示数据查询超时错误,晕,这是什么问题?是不是因为asp.net占用CPU太多,SQL Server没有足够的CPU时间处理,怎么办?采用最笨的一招—重启服务器,重启一切正常,CPU占用率很低,平均占用率不超过20%。
郁闷,原来问题没解决,又有用户发邮件过来反映访问不了自己的Blog, 详细错误信息是:
无法创建目录或文件。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.IO.IOException: 无法创建目录或文件。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[IOException: 无法创建目录或文件。
]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +723
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888
System.IO.FileStream..ctor(String path, FileMode mode) +52
System.Web.StringResourceBuilder.CreateResourceFile(String resFileName) +51
System.Web.Compilation.BaseCompiler.GetCompiledType() +186
System.Web.UI.PageParser.CompileIntoType() +60
System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +124
[HttpException (0x80004005): 无法创建目录或文件。
]
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +722
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +99
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +115
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +36
System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +250
Dottext.Common.UrlManager.UrlReWriteHandlerFactory.ProccessHandlerTypePage(HttpHandler item, HttpContext context, String requestType, String url) +98
Dottext.Common.UrlManager.UrlReWriteHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +212
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173
同样的问题,毫无疑问,都是SP 1惹的祸!都是它的错!
没有其他办法了,卸载Windows 2003 SP 1,以前就是因为担心Windows 2003 SP 1引起问题,一直没装。考虑到安全性,昨天决定安装,特地选在夜里安装,这样即使出问题,也不会有太大的影响,却没想到会出现有的Blog页面可以访问,有的Blog页面不能访问的问题。昨天安装后,我还进入自己的Blog进行了测试。
真的很抱歉,这个问题给大家带来了麻烦,影响了今天上午博客园的正常访问,请大家谅解!
告诉大家一个好消息,现在已经卸载Windows 2003 SP 1了,卸载之后一切恢复正常!
如果想安装Windows 2003 SP 1的朋友,小心了!







































同样的问题,毫无疑问,都是SP 1惹的祸!都是它的错!
没有其他办法了,卸载Windows 2003 SP 1,以前就是因为担心Windows 2003 SP 1引起问题,一直没装。考虑到安全性,昨天决定安装,特地选在夜里安装,这样即使出问题,也不会有太大的影响,却没想到会出现有的Blog页面可以访问,有的Blog页面不能访问的问题。昨天安装后,我还进入自己的Blog进行了测试。
真的很抱歉,这个问题给大家带来了麻烦,影响了今天上午博客园的正常访问,请大家谅解!
告诉大家一个好消息,现在已经卸载Windows 2003 SP 1了,卸载之后一切恢复正常!
如果想安装Windows 2003 SP 1的朋友,小心了!
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· spring官宣接入deepseek,真的太香了~