部署 不知道为什么 nginx+passenger 报错了.

glorySpring · 2013年09月22日 · 最后由 glorySpring 回复于 2013年09月22日 · 3008 次阅读
[ 2013-09-22 10:05:31.6740 14072/7fe13acf1700 Pool2/Implementation.cpp:1274 ]: [App 14093 stderr] /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.18/lib/phusion_passenger/preloader_shared_helpers.rb:66:in `fork'
[ 2013-09-22 10:05:31.6762 14072/7fe13acf1700 Pool2/Implementation.cpp:1274 ]: [App 14093 stderr] : Cannot allocate memory - fork(2) (Errno::ENOMEM)
[ 2013-09-22 10:05:31.6762 14072/7fe13acf1700 Pool2/Implementation.cpp:1274 ]: [App 14093 stderr]       from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.18/lib/phusion_passenger/preloader_shared_helpers.rb:66:in `accept_and_process_next_client'
[ 2013-09-22 10:05:31.6762 14072/7fe13acf1700 Pool2/Implementation.cpp:1274 ]: [App 14093 stderr]       from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.18/lib/phusion_passenger/preloader_shared_helpers.rb:116:in `run_main_loop'
[ 2013-09-22 10:05:31.6762 14072/7fe13acf1700 Pool2/Implementation.cpp:1274 ]: [App 14093 stderr]       from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:151:in `<module:App>'
[ 2013-09-22 10:05:31.6762 14072/7fe13acf1700 Pool2/Implementation.cpp:1274 ]: [App 14093 stderr]       from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
[ 2013-09-22 10:05:31.6763 14072/7fe13acf1700 Pool2/Implementation.cpp:1274 ]: [App 14093 stderr]       from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `<main>'
[ 2013-09-22 10:05:31.6776 14072/7fe13ad43700 Pool2/SmartSpawner.h:681 ]: An error occurred while spawning a process: An error occurred while starting the web application. It sent an unknown response type "".

不知道谁遇到过这种情况呢?

无法分配内存了,是不是内存满了?

#1 楼 @zgm 嗯,看了一下,满了,清理了一下,立马加入定时任务。现在是可以访问了.谢谢。之前清理过内存,把这个事情给忘了.....

需要 登录 后方可回复, 如果你还没有账号请 注册新账号