Heroku Rails could not fork new process for connection: Cannot allocate memory

偶尔善良 提交于 2019-12-03 18:01:28

问题


I have 3 Rails applications that all use the same code base. 2/3 of the applications are running fine, but one of them gives me this error:

could not fork new process for connection: Cannot allocate memory

Upon trying to look at the Postgres logs, it is a little more specific:

psql: bin//psql-9.2.1-64bit pv: bin//pv-1.1.4-64bit psql-9.2.1-64bit:
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory
bin/brie: line 146: [: : integer expression expected pg_dump:
bin//pg_dump-9.2.1-64bit psql-9.2.1-64bit:
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory

This is a relatively small app, especially data-wise. I have tried re-pushing everything, I have tried heroku-restart, and Heroku's status page says they're fine. Any help would be appreciated.


回答1:


Heroku people fixed it. Their problem



来源:https://stackoverflow.com/questions/16149021/heroku-rails-could-not-fork-new-process-for-connection-cannot-allocate-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!