VS 2008/AJAX 项目在压力下失败
我从事 VB.NET/VS2008/AJAX/SQL Server 项目已有两年多了,没有出现任何实际问题。然而,我们在项目的最后一周进行了一些繁重的压力测试,一旦我获得大约 150 个并发用户,项目就开始失败。我什至创建了该网站的精简版本,该版本仅登录用户,提取他们的个人资料,然后注销。在压力下仍然失败。当我说“失败”时,我的意思是 CPU 出现峰值,应用程序池最终崩溃。它在具有 16 GB 内存的 Windows 2008 R2 duo 四服务器上运行。内存永远不会达到峰值,但 CPU 会达到峰值。
我在网站上运行 YSlow,它指出我需要压缩 .axd 文件等...我通过对所有内容实施 Gzip 压缩来做到这一点,但这就是让我拥有 150 个用户的原因。我现在运行 YSlow,它显示一切都是“A”。
我真的不知道从这里该去哪里。我非常愿意分享该网站的精简版本供任何人查看。我不确定是服务器的问题、我的代码的问题还是 web.config 的问题。
I've been working on a VB.NET/VS2008/AJAX/SQL Server project for over 2 years now without any real issues coming up. However, we're in the last week of our project doing some heavy stress testing and the project starts failing once I get about 150 simultaneous users. I've even gone so far as to create a stripped down version of the site which only logs in a user, pulls up their profile and then logs off. That still fails under stress. When I says "fails" I mean the CPU's are spiked and the App Pool eventually crashes. This is running on a Windows 2008 R2 duo quad server w/ 16 gig of memory. The memory never spikes but the CPU tops out.
I ran YSlow on the site and it pointed out that I needed to compress the .axd files, etc... I did that by implementing Gzip compression on everything but that's what got me to the 150 users. I run YSlow now and it says everything is "A".
I'm really not sure where to go from here. I'd be more than willing to share the stripped down version of the site for anyone to review. I'm not sure if it's the server, my code or the web.config.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道现在有点晚了,但是您是否考虑过增加站点应用程序池中的工作进程数量以形成网络花园?您可以在 IIS 管理器上执行此操作。
I know it is a bit late but have you considered increasing the number of worker processes in the application pool of your site to form a web garden? You can do this on the IIS Manager.