我有生产服务器(Nginx Passenger).当我尝试从另一台计算机ab -n 3 -c 3 myhost.ru/时,我在我的nginx error.log中收到此错误日志:
[ pid=21160 thr=139775297914624 file=ext/nginx/HelperAgent.cpp:584 time=2011-08-31 15:25:49.22 ]: Uncaught exception in PassengerServer client thread:
exception: Cannot read response from backend process: Connection reset by peer (104)
backtrace:
in 'void Client::forwardResponse(Passenger::SessionPtr&,Passenger::FileDescriptor&,const Passenger::AnalyticsLogPtr&)' (HelperAgent.cpp:330)
in 'void Client::handleRequest(Passenger::FileDescriptor&)' (HelperAgent.cpp:510)
in 'void Client::threadMain()' (HelperAgent.cpp:603)
[ pid=21249 thr=15884760 file=utils.rb:176 time=2011-08-31 15:25:49.022 ]: *** Exception PGError in application (server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
) (process 21249,thread #
最佳答案
我自己找到了解决方案有必须用nginx.conf编写的passenger_spawn_method,而不是默认的passenger_spawn_method保守的smart-lv2.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。