简体   繁体   中英

IIS website slow in response when calculation in progress

I have an IIS website which connects to MySQL. I have a link in the website which do the intensive calculation. When this link is triggered, it uses around 20% of CPU resource. 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. It seems the calculation link occupies the CPU resource. 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?

Increase the maximum number of worker processes in your IIS application pool for your website. This will enable the server handle multiple requests at the same time. Below is how.

  1. Open IIS Manager and Navigate to Application pools.
  2. Right click the application pool for your website and select Advanced Settings. 在此处输入图片说明
  3. In the Advanced Settings Dialog Box under Process Model, change the value of maximum worker processes to 10. [You may enter another number (greater than or less than 10)] 1 is default and means only one worker process will be started to handle all your requests. Meaning that only one request will be processed at a time.
  4. Click Ok to save your changes 在此处输入图片说明
  5. Restart your application pool [Not mandatory but advised]
  6. Thats all. Your Website should now be able to process multiple requests at the same time

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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