做了一个小应用,部署在 daocloud 上,之前用的是 puma,运行时日志随机出现
2016-02-29 01:21:57:[App/0] 17:21:57 web.1 | EFAULT
2016-02-29 01:21:57:[App/0] 17:21:57 web.1 |
2016-02-29 01:21:58:[App/0] 17:21:57 web.1 | ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2016-02-29 01:21:58:[App/0] 17:21:57 web.1 |
2016-02-29 01:21:58:[App/0] 17:21:57 web.1 | [NOTE]
2016-02-29 01:21:58:[App/0] 17:21:57 web.1 | You may have encountered a bug in the Ruby interpreter or extension libraries.
2016-02-29 01:21:58:[App/0] 17:21:57 web.1 | Bug reports are welcome.
2016-02-29 01:21:58:[App/0] 17:21:57 web.1 | For details: http://www.ruby-lang.org/bugreport.html
2016-02-29 01:21:58:[App/0] 17:21:57 web.1 |
2016-02-29 01:22:02:[App/0] 17:22:02 web.1 | [9] - Worker 0 (pid: 104) booted, phase: 0
2016-02-29 01:22:02:[App/0] 17:22:02 web.1 | [9] - Worker 1 (pid: 107) booted, phase: 0
要命的是每过一两天程序就没响应了,只能重启 container, 换成 ruby2.2 也一样 , 到网上搜了一下,类似的问题存在好久了 https://github.com/puma/puma/issues/554
最后换成 unicorn 运行三天多了,没出现问题。
不过公司的网站用的 puma 就很稳定,没出现什么问题