title: Memory adjustments for magento with php5-fpm , Nginx, APC, Mysql
body: <p>I am using magento with php5-fpm , Nginx, APC, and Varnish. When there is varnish hit, the load time is very good. But on varnish miss, the site takes toomuch time to load. I have seen through htop that CPU goes under a lot of load and Ram and swap become full. Sometimes i get 504 timeout!</p>
  
  <p>I have a core2duo with 512mb Ram. I think there should be some memory issues. Please suugest me how should i configure the different parameters of php5-fpm, nginx, APC, Mysql. </p>