IIS 和 ISAPI-WSGI = 非常慢

发布于 2024-10-02 12:33:50 字数 605 浏览 0 评论 0原文

我使用 isapi-wsgi 在 IIS 上加载了 2 个 Django 应用。


这些都是服务器设置:

  • Windows Server 2003、IIS6 和 SQL Server 2005

  • Windows Server 2008 R2、IIS7.5 和 SQL Server 2008

Django 应用程序彼此完全不同。


它们对每个请求都采用1 到 10 秒之间的随机时间段。

与 Apache+mod_wsgi 设置的 100ms-500ms 相比,这慢得令人痛苦,所以肯定有什么问题。


有什么想法吗?如果我能解决这个问题那就太好了。 :)


解决了!

不要使用 django-mssql,而是使用 django-pyodbc!!

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!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苦笑流年记忆 2024-10-09 12:33:50

安装另一个 Web 服务器,例如 apache。

说真的 - IIS 在运行 python wsgi 应用程序时很糟糕。在这方面你无能为力。

Install another web server, like apache.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文