0
我的Rails应用程序使用Apache2 +乘客的AWS服务器配置。 从过去的两天起,我的服务器的行为与我预期的不同。当我重新启动服务器时,最初使用的内存非常少,创建一个线程,然后几分钟后,线程增加,它使用大部分服务器内存,我的服务器崩溃了。它让我记录下来。由于乘客中有多个线程,内存耗尽
[ 2017-06-15 05:01:21.8303 9577/7f54d5583700 age/Cor/Spa/SmartSpawner.h:726 ]: An error occurred while spawning a
process: An error occurred while starting the web application. It
exited before signalling successful startup back to Phusion Passenger.
[ 2017-06-15 05:01:21.8304 9577/7f54d5583700 age/Cor/Spa/SmartSpawner.h:727 ]: The application preloader seems to have crashed, restarting it and trying again... App 700 stderr: Segmentation fault (core dumped) App 700 stderr: : Cannot allocate memory - fork(2) (Errno::ENOMEM)
htop show output as all memory consume by ruby app .
任何帮助表示赞赏。