【问题标题】:How to resolve 503.0 error in IIS container如何解决 IIS 容器中的 503.0 错误
【发布时间】:2021-12-17 07:04:57
【问题描述】:

我刚开始在 Azure 应用服务的容器中使用 IIS。

我在 Windows 容器 (IIS) 上遇到 503.0 错误:

HTTP Error 503.0 - Service Unavailable
The service is unavailable.

Most likely causes:
- An invalid identity in the application pool could cause this error.
- The application pool is no longer running because of configuration or reaching application failure limits.
- The concurrent application request limit was reached.

即使在应用服务重新启动后,问题仍然存在。 所以我删除然后重新创建了服务应用程序。

我只在负载较多的环境中看到这些错误,但在测试环境中看不到。

您有什么想法可以帮助我避免这些 503.0 错误吗? 是否可以在应用服务中停止一个容器?

【问题讨论】:

  • A 503 Service Unavailable Error 表示网络服务器暂时无法处理请求,错误可能有多种原因,建议您使用失败请求跟踪查看详细错误信息。

标签: iis azure-web-app-service containers http-status-code-503 azure-appservice


【解决方案1】:

我的问题最终是由于内存不足。我增加了应用服务中每个容器使用的内存限制(参数:WEBSITE_MEMORY_LIMIT_MB)。

一开始我不明白为什么我会收到内存不足错误,尽管应用服务图表显示使用率为 40%。这是因为托管 Windows 容器的节点已经消耗了大约 50% 的物理内存,但我认为它缺乏对 Windows 容器内存使用情况的可见性。

支持说:

在 Azure App Service Windows 容器上,我们在诊断和解决问题刀片中没有内存分析检测器。

【讨论】:

    猜你喜欢
    • 2021-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-23
    • 2021-04-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多