На сервере стоит Apache + Nginx, как его прокси. Когда в браузере крутится какой-то тяжёлый скрипт, который отрабатывает минут 10, если в этот момент пытаешься открыть сайт на второй вкладке браузера, то он тупо не грузится. Где-то есть лимит на одновременное количество потоков и я не пойму где. Есть идеи? Вторая проблема. В тяжёлом ночном скрипте у меня написано: PHP: set_time_limit(240); ini_set('max_execution_time', 240); То есть, скрипт должен отрабатывать 4 минуты и вешаться, а в кроне я поставил чтобы он выполнялся каждые 5 минут. Но по факту, скрипт крутится минут 10. Из-за этого в кроне косяки. Возможно ли как-то настроить сервер так, чтобы 4 минуты означало 4 минуты? На всякий случай, настройки Апача: Спойлер Код (Text): # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 5 Полный конфиг Nginx: Спойлер Код (Text): user aworker; worker_processes 4; pid /run/nginx.pid; events { worker_connections 1024; multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 30; types_hash_max_size 2048; server_tokens off; client_max_body_size 512M; include /etc/nginx/mime.types; default_type application/octet-stream; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # Gzip Settings ## gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*.conf; }