Beanstalk应用程序随机从正常状态变为严重状态

0

【以下的问题经过翻译处理】 我发现最近两个晚上我的EB应用程序一直崩溃。我一直收到来自AWS的错误邮件:

Environment health has transitioned from Ok to Severe. None of the instances are sending data.

当这种情况发生时,我会收到来自AWS的电子邮件警报,告知我服务器已停止,但我无法进行任何更改或请求日志,因为我此时应用程序处于无效状态。我一直在重启我的EC2实例,似乎解决了问题,但这可能是一个偶然的结果。

在服务器上有一个Python / Django应用程序。

[Thu Mar 15 02:43:27.758750 2018] [mpm_prefork:error] [pid 3774] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Thu Mar 15 02:46:44.856753 2018] [mpm_prefork:error] [pid 3774] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
libgcc_s.so.1 must be installed for pthread_cancel to work
[Thu Mar 15 02:47:10.599597 2018] [mpm_prefork:error] [pid 3774] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Thu Mar 15 02:47:18.892361 2018] [core:error] [pid 5868] [client 172.31.2.136:25638] End of script output before headers: wsgi.py
[Thu Mar 15 02:47:18.892564 2018] [core:error] [pid 5762] [client 172.31.2.136:25544] End of script output before headers: wsgi.py
[Thu Mar 15 02:47:19.176045 2018] [mpm_prefork:notice] [pid 3774] AH00169: caught SIGTERM, shutting down
[Thu Mar 15 02:47:51.972014 2018] [suexec:notice] [pid 2154] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 15 02:47:51.983206 2018] [so:warn] [pid 2154] AH01574: module wsgi_module is already loaded, skipping
[Thu Mar 15 02:47:51.985256 2018] [auth_digest:notice] [pid 2154] AH01757: generating secret for digest authentication ...
[Thu Mar 15 02:47:51.985875 2018] [lbmethod_heartbeat:notice] [pid 2154] AH02282: No slotmem from mod_heartmonitor
[Thu Mar 15 02:47:51.989048 2018] [mpm_prefork:notice] [pid 2154] AH00163: Apache/2.4.25 (Amazon) mod_wsgi/3.5 Python/3.4.3 configured -- resuming normal operations
[Thu Mar 15 02:47:51.989066 2018] [core:notice] [pid 2154] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Mar 15 02:48:08.783313 2018] [mpm_prefork:notice] [pid 2154] AH00169: caught SIGTERM, shutting down
[Thu Mar 15 02:48:09.825072 2018] [suexec:notice] [pid 3030] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 15 02:48:09.836727 2018] [so:warn] [pid 3030] AH01574: module wsgi_module is already loaded, skipping
[Thu Mar 15 02:48:09.838737 2018] [auth_digest:notice] [pid 3030] AH01757: generating secret for digest authentication ...
[Thu Mar 15 02:48:09.839370 2018] [lbmethod_heartbeat:notice] [pid 3030] AH02282: No slotmem from mod_heartmonitor
[Thu Mar 15 02:48:09.841292 2018] [mpm_prefork:notice] [pid 3030] AH00163: Apache/2.4.25 (Amazon) mod_wsgi/3.5 Python/3.4.3 configured -- resuming normal operations
[Thu Mar 15 02:48:09.841305 2018] [core:notice] [pid 3030] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
profile picture
EXPERTE
gefragt vor 6 Monaten13 Aufrufe
1 Antwort
0

【以下的回答经过翻译处理】 出现此问题的原因是Apache web服务器上的内存不足。 [Thu Mar 15 02:43:27.758750 2018] [mpm_prefork:error] [pid 3774] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process 尝试使用更大的实例。

profile picture
EXPERTE
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen