Nginx(Passenger)+Mongodb+Redis (Ruby1.9.3) 占了 460Mb 内存正常吗?
这是截图,如果还有别的地方不对的,请指出。多谢!
请看:-----此图使用 shift+m 排序过的.
 
  
我發現 Ruby 在 64 位元 (Ubuntu) 裡的內存會比 32bit 的環境大約 1 倍。為此我特別重裝成 32 bit。我也是用 linode 的 512 方案。上面跑 5 個 rails 的網站,速度不快,勉強能用。
$ps aux| grep -v grep| grep passenger
root     29885  0.0  0.1   6668   528 ?        Ss   Apr23   0:00 nginx: master process /var/lib/passenger-standalone/3.0.12-x86-ruby1.9.3-linux-gcc4.6.3-1002/nginx-1.0.15/sbin/nginx -c /tmp/passenger-standalone.29738/config -p /tmp/passenger-standalone.29738/
现在只有一个实例。
楼上所有的筒子们. 我之前用 passenger standalone 模式跑,占这么多内存. 我今天换成了非 standalone,暂且叫 integrated 模式吧。请看!:
[hlcfan@li414-74 chatpro]$ free -m
             total       used       free     shared    buffers     cached
Mem:           494        241        253          0         15         97
-/+ buffers/cache:        128        366
Swap:          511          0        511
一下子就一半了!求解释!
