Недогрузка картинок + тормоза

Igor Sysoev is at rambler-co.ru
Thu Aug 17 22:34:32 MSD 2006


On Thu, 17 Aug 2006, Daniel Rx wrote:

> freebsd 6.1 (xeon), nginx 0.3.57 (фронтенд) + apache 1.3.37 (бэкенд)
>
> При частых обращениях к [любой] страничке, содержащей пару десятков
> небольших картинок (а также css и javascript),
> браузер (firefox) разок не отображает (то ли недогружает, то ли еще что-то)
> 1-2 картинки,
> и в строке состояния браузера отображается "Ожидание ..." пару секунд, потом
> опять 5-6 перезагрузок страницы,
> все повторяется. Что бы это могло быть?
>
> # nginx.conf
>
> user www www;
>
> worker_processes 1;
>
> # pid /usr/local/nginx/logs/nginx.pid;
>
> error_log /var/log/nginx/nginx-error.log info;
>
> # worker_rlimit_nofile 1024;
>
> events
> {
>  worker_connections 1024;
>
>  use kqueue;
> }
>
> http
> {
>  include mime.types;
>
>  default_type application/octet-stream;
>
>  log_format main '$remote_addr $request $status $bytes_sent $gzip_ratio';
>
>  client_header_timeout 1m;
>  client_body_timeout   1m;
>  send_timeout          1m;
>
>  client_header_buffer_size   1k;
>  large_client_header_buffers 4 4k;
>
>  gzip            on;
>  gzip_comp_level 5;
>  gzip_min_length 1100;
>  gzip_buffers    4 8k;
>  gzip_types      text/html text/plain application/x-javascript text/css;
>
>  output_buffers  1 32k;
>  postpone_output 1460;
>
>  sendfile    on;
>  tcp_nopush  on;
>  tcp_nodelay on;
>  send_lowat  12000;
>
>  keepalive_timeout 0;
>
>  server
>  {
>    listen      xxx.xxx.xxx.xxx:80;
>    server_name domain.com;
>
>    access_log /var/log/nginx/domain.com-access.log main;
>    error_log  /var/log/nginx/domain.com-error.log  info;
>
>    location /nginx-status
>    {
>      stub_status on;
>      allow       xxx.xxx.xxx.xxx;
>      deny        all;
>    }
>
>    location /
>    {
>      charset off;
>      expires off;
>
>      client_max_body_size    64k;
>      client_body_buffer_size 64k;
>      client_body_temp_path   /var/tmp/nginx;
>
>      proxy_pass     http://127.0.0.1:80/;
>      proxy_redirect off;
>
>      proxy_set_header Host                 $host;
>      proxy_set_header X-Real-IP            $remote_addr;
>      proxy_set_header X-Frontend-Server-IP $server_addr;
>
>      proxy_connect_timeout 90;
>      proxy_send_timeout    90;
>      proxy_read_timeout    90;
>      proxy_send_lowat      12000;
>
>      proxy_buffer_size          4k;
>      proxy_buffers              4 32k;
>      proxy_busy_buffers_size    64k;
>      proxy_temp_file_write_size 64k;
>      proxy_temp_path            /var/tmp/nginx;
>    }
>
>    error_page 403 /403.html;
>
>    location = /403.html
>    {
>      root /var/www/error;
>    }
>
>    error_page 404 /404.html;
>
>    location = /404.html
>    {
>      root /var/www/error;
>    }
>
>    error_page 500 502 503 504 /50x.html;
>
>    location = /50x.html
>    {
>      root /var/www/error;
>    }
>  }
>
>  server
>  {
>    listen      xxx.xxx.xxx.xxx:80;
>    server_name static.domain.com;
>
>    location /
>    {
>      root      /var/www/static.domain.com;
>      expires 7d;
>      charset off;
>    }
>  }
> }

Картинки отдаются со static.domain.com ?
Есть ли какие-нибудь сообщения в /var/log/nginx/nginx-error.log
на уровне alert и crit ?


Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list