Beanstalk application randomly transitions from Ok to Severe

0

I've been finding that the last two nights my EB app has been falling on its face. I've been getting the error

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

When this happens I receive an email alert from AWS saying that the server is down but I can't make any changes, request logs because I'm getting an error that the app is in an invalid state. I've been restarting my EC2 instance and that seems to have solved things but it could be a coincidence that it worked.

I'm not sure where to start with this but as a background I have a python/django application

[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'
scunion
asked 6 years ago403 views
2 Answers
0
Accepted Answer

Apache webserver is running out of memory and shuts down.

[mpm_prefork:error] [pid 3774] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process

Simple as that.

For testing purpose try to spin up larger instance.

Edited by: markotitel on Mar 20, 2018 8:34 AM

answered 6 years ago
0

anyone?

scunion
answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions