very urgent. speed problem

Masteryo Team support at dev-m.com
Thu Sep 16 15:26:43 MSD 2010


Hello guys

any help will be appreciate it

I have new server with 1 Gbit port speed and I installed nginx on it. The
server only for downloading data.

Now there are
TCP Connections in ESTABLISHED State

2060.0 con

the currently traffic use : 140.6 Mb/s
see MRTG http://server07.animedown.tv/mrtg/

I have 4MB speed in my computer. if I download file by flashget/download
manager program , the speed will be around 100 KB/s.

in the same server if I download through apache the speed will be around 400
- 500 KB/s

you can test download speed by your self

FROM Nginx:
http://server07.animedown.tv/s1/ArbicSub/S/Death_Note/Death_Note_01.avi/1a287429aff39b5b711836924b994e94/4c930ccd

FROM Apache:
http://server07.animedown.tv:81/s1/ArbicSub/S/Bleach/Bleach_001.avi


[root@ ~]# /opt/nginx/sbin/nginx -V
nginx version: nginx/0.7.61
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configure arguments: --prefix=/opt/nginx --sbin-path=/opt/nginx/sbin/nginx
--conf-path=/opt/nginx/conf/nginx.conf
--error-log-path=/opt/nginx/logs/error_log
--pid-path=/opt/nginx/logs/nginx.pid --lock-path=/var/lock/nginx.lock
--http-log-path=/opt/nginx/logs/access_log --user=apache --group=apache
--http-proxy-temp-path=/opt/nginx/logs/proxy
--http-client-body-temp-path=/opt/nginx/logs/client-body
--http-fastcgi-temp-path=/opt/nginx/logs/fastcgi --with-http_sub_module
--with-debug --add-module=/opt/nginx/addons/ngx_http_secure_download
--with-md5=/opt/md


user apache apache;
worker_processes 25;
worker_rlimit_nofile 32768;
pid /opt/nginx/logs/nginx.pid;
lock_file /var/lock/subsys/nginx;
error_log /opt/nginx/logs/error_log error;

events {
  worker_connections 1024;
  use epoll;
}

http {

  include /opt/nginx/conf/mime.types;
  default_type text/plain;
#  aio on;
  sendfile off;
  output_buffers 1 256k;
  directio 4m;
#  ssi off;
#  ssi_silent_errors on;
#  gzip off;
  tcp_nopush on;
  tcp_nodelay on;
  expires off;
  auth_basic off;
  # TUNING
  client_header_timeout 30;
  client_body_timeout 60;
  send_timeout 30;
  connection_pool_size 512;
  client_header_buffer_size 1k;
  client_body_buffer_size 32m;
  large_client_header_buffers 4 4k;
  request_pool_size 8k;
  postpone_output 1460;
  keepalive_timeout 75 30;
  reset_timedout_connection on;
  server_names_hash_bucket_size 128;
  # PROXY
  proxy_buffering off;
  proxy_cache  off;
  proxy_connect_timeout 3000;
  proxy_send_timeout 3000;
  proxy_read_timeout 3000;
  proxy_buffer_size 2048k;
  proxy_buffers 2 2048k;
  proxy_busy_buffers_size 2048k;
#  proxy_max_temp_file_size 0;
#  proxy_buffering on;
#  proxy_temp_file_write_size 128k;
#  proxy_temp_path /opt/nginx/logs/proxy_temp;

#  geo  $GEOIP_COUNTRY_CODE  {
#      include  geoip.conf;
#      default  XX;
#  }

  # DEFAULT
  server {
    listen 127.0.0.1:80 default;
    access_log /opt/nginx/logs/access_log combined;
    #location /sts {
    #  stub_status on;
    #    access_log   off;
    #        allow all;
    #}
    location / {
      root /var/www;
      deny all;
    }
  }


server {
  listen 67.159.60.93:80;
  server_name server07.animedown.tv *.server07.animedown.tv;
  error_log off;
  access_log off;

  autoindex on;
  index index.shtml index.html index.php;
  location ~* \.php$ {
    proxy_redirect off;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Host $http_host;
    proxy_set_header X-URI $uri;
    proxy_set_header X-ARGS $args;
    proxy_set_header Host $http_host;
    proxy_set_header Refer $http_refer;
    proxy_pass http://67.159.60.93:81;
  }

  location /s1/php {
    root /data;
  }
  location /s1/ArbicSub {
    root /data;
    secure_download on;
    secure_download_secret masteryo;
    secure_download_path_mode file;
    secure_download_fail_location /error;
    add_header Content-Disposition "attachment; filename=$uri";
    #internal;
  }
  location /s2/php {
    root /data;
  }
  location /s2/ArbicDub {
    root /data;
    secure_download on;
    secure_download_secret masteryo;
    secure_download_path_mode file;
    secure_download_fail_location /error;
    add_header Content-Disposition "attachment; filename=$uri";
    #internal;
  }



  location /mrtg {
    index index.shtml;
    root /var/www;
  }



}


}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100916/3aa0fa5f/attachment.html>


More information about the nginx mailing list