IIS and ISAPI-WSGI = very slow

☆樱花仙子☆ 提交于 2019-12-23 23:33:32

问题


I have loaded 2 Django apps on IIS using isapi-wsgi.


These are both server setups:

  • Windows Server 2003, IIS6 and SQL Server 2005

  • Windows Server 2008 R2, IIS7.5 and SQL Server 2008

The Django apps are completely different from each other.


They both take random periods of time for each requests between 1 and 10 seconds.

This is painfully slow compared to 100ms-500ms of an Apache+mod_wsgi setup, so there must be something wrong.


Any ideas? Would really be great if I could fix this. :)


Solved!

Do not use django-mssql use django-pyodbc instead!!


回答1:


Install another web server, like apache.

Seriously - IIS sucks on running python wsgi apps. There's not much you can do in that regard.



来源:https://stackoverflow.com/questions/4193619/iis-and-isapi-wsgi-very-slow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!