Django应用程序的错误崩溃了NGNIX和服务器

发布于 2025-02-09 20:03:49 字数 863 浏览 2 评论 0原文

我的Django应用程序运行良好一段时间,然后我得到了502 BAD GATEWAWAY,几个小时后,我无法ping域并使用SSH连接我的服务器(来自Amazon Lightsail)。那时我也没有由NGNIX提供的其他应用程序。虽然我没有启动Django应用程序,但NGNIX提供的应用程序将稳定运行。因此,我想这是我的Django应用程序的错误崩溃了NGNIX和服务器。

在为服务器时间重新启动服务器后,服务器似乎已恢复,然后我可以ping域并使用SSH连接服务器。但是过了一会儿,同样的问题将再次发生。我想知道如何解决问题。

自Django应用程序开始到下面提供的NGINX服务器末尾的一些诊断信息。

  1. 在此过程中,RAM使用率很高。

    “在此处输入图像描述”

  1. UWSGI日志。 https://bpa.st/fp7q

  2. nginx错误日志。 https://bpa.st/35eq

My Django application run well for a while, then I got 502 Bad Gateway, after a few hours, I am unable to ping the domain and use SSH to connect my server(from Amazon Lightsail). My other application served by ngnix was also not available then. While if I didn't start the Django application, ther application served by ngnix would run steadily. So I guess it is the error of my Django application crashed ngnix and the server.

After rebooting the server for serveral times, the server seems recovered then I can ping the domain and use SSH to connect the server. But after a while, the same problem would occurs again. I wonder how to fix the problem.

Some diagnostic information since the start of the Django application to the end of the Nginx server provided below.

  1. The RAM usage is high during the process.

    enter image description here

  1. The uwsgi log. https://bpa.st/FP7Q

  2. The Nginx error log. https://bpa.st/35EQ

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文