[英]IIS website slow in response when calculation in progress
I have an IIS website which connects to MySQL. 我有一个连接MySQL的IIS网站。 I have a link in the website which do the intensive calculation.
我在网站上有一个链接进行深入的计算。 When this link is triggered, it uses around 20% of CPU resource.
触发此链接后,它将占用大约20%的CPU资源。 Then, if I click other links, the other links are responding very slow.
然后,如果我单击其他链接,则其他链接的响应速度很慢。 Until the link that does calculation finished, then other links responding time will resume.
在计算链接完成之前,其他链接的响应时间将恢复。 I am curious why only 20% CPU is used, but the other links still respond slowly.
我很好奇为什么只使用20%的CPU,但是其他链接仍然响应缓慢。 It seems the calculation link occupies the CPU resource.
看来计算链接占用了CPU资源。 But isn't it different link are run in parallel, how it should be affected by intensive calculation of one link?
但是,不是不同的链接并行运行,一个链接的密集计算应如何影响它? How can I improve that, or should I tune something in IIS of my code?
我该如何改善它,还是应该在IIS代码中调整某些内容?
Increase the maximum number of worker processes in your IIS application pool for your website. 增加网站的IIS应用程序池中的辅助进程的最大数量。 This will enable the server handle multiple requests at the same time.
这将使服务器可以同时处理多个请求。 Below is how.
下面是如何。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.