服务器是用的 Uloud 云,两台,每台(CPU 8 核 内存 16G),系统是 ubuntu + nginx + passenger 的 nginx 对 passenger 的配置如下:
passenger_max_pool_size 70;
passenger_min_instances 30;
passenger_max_request_queue_size 500;
passenger_pool_idle_time 60;
# passenger_max_instances_per_app 70;
passenger_friendly_error_pages off;
# passenger_max_request_time 15;
# passenger_memory_limit 150;
passenger_max_requests 200;
include mime.types;
default_type application/octet-stream;
最近经常出现:The website is under heavy load 请大家指点下是不哪里配置的有问题,非常感谢!