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 .
任何幫助表示讚賞。