Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 23:10:43

Author Topic: WEBSITE LAMBAT LOAD IO NGINX 99%  (Read 5845 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #15 on: 2015-09-26, 15:29:26 »
Jika nginx saja (tanpa apache) apa juga akan bermasalah juga?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bugis

  • Valuable Member
  • *
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #16 on: 2015-09-26, 15:44:11 »
A. Kloxo-MR: 7.0.0.b-2015092401
   - Web: hiawatha-9.14.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
C. Services:
   1. MySQL: MariaDB-server-10.0.21-1.el6.x86_64
   2. PHP:
      - Branch: php56u-cli-5.6.13-1.ius.el6.x86_64
      - Used: --Use PHP Branch--
   3. Httpd: --uninstalled--
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.5-1.el6.ngx.x86_64
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64

Tetap error pak

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #17 on: 2015-09-26, 16:08:43 »
COba anda beri saya akses ke ssh dan Kloxo-MR panel. Kirim via PM saja.

Tapi, mungkin baru besok bisa saya 'pelajari'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bugis

  • Valuable Member
  • *
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #18 on: 2015-09-26, 16:15:48 »
Baru ingat, nginx harus didowngrade ke versi 1.7.10 agar stabil

rm -f nginx*.rpm
yum remove nginx -y
wget http://nginx.org/packages/mainline/rhel/6/SRPMS/...
rpm -ivh nginx*.rpm
sh /script/cleanup


setelah proses sh /script/cleanup nginx kembali lagi ke yang terbaru 1.9.5


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #19 on: 2015-09-26, 16:32:59 »
Ya, cleanup akan menyebabkan update rpm. Lakukan downgrade dan kemudian tambahkan 'exclude=nginx*' di /etc/yum.conf.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bugis

  • Valuable Member
  • *
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #20 on: 2015-09-26, 16:36:42 »
setelah downgrade dan sh /script/cleanup

muncul error pada nginx :

*** Executing Update (cleanup) - END ***

*** Restart services - BEGIN ***

Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
-------------------------------------------------------------------

Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
-------------------------------------------------------------------

Stopping php-fpm:                                          [  OK  ]
pkill to make sure stopped
Starting php-fpm:                                          [  OK  ]
-------------------------------------------------------------------

nginx: [warn] invalid value "threads" in /etc/nginx/nginx.conf:20
nginx: configuration file /etc/nginx/nginx.conf test failed
-------------------------------------------------------------------


*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

- For help, type '/script/restart-mail [--help|-h]'
-------------------------------------------------------------------

Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
-------------------------------------------------------------------

* kloxo-phpcgi ('php54s' in 'cgi' mode): No need to start
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
-------------------------------------------------------------------
*** Restart services - END ***

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #21 on: 2015-09-26, 16:45:37 »
Copy /opt/configs/nginx/etc/nginx.conf ke custom.nginx.conf. Kemudian ubah 'aio threads;' ke '#aio threads;'. Setelah itu jalankan copy custom.nginx.conf ke /etc/nginx/nginx.conf. Kemudian jalankan cleanup lagi.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bugis

  • Valuable Member
  • *
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #22 on: 2015-09-26, 16:58:19 »
/opt/configs/nginx/etc/nginx (isinya kosong)

custom.nginx.conf (isinya kosong)

/etc/nginx/nginx.conf

user nginx;

worker_processes auto;
worker_rlimit_nofile 400000;

pid /var/run/nginx.pid;

events {
    worker_connections 20480;
    multi_accept on;
    use epoll;

    ## MR -- only work in tengine
    ## to modified, copy this file to custom.nginx.conf and run fixweb
    #reuse_port on;
}

http {
    sendfile on;
    aio threads;
    directio 4m;

    tcp_nopush on;
    tcp_nodelay on;

    server_tokens on;

    add_header Cache-Control public;

    server_names_hash_max_size 4096;
    server_names_hash_bucket_size 2048;

    types_hash_bucket_size 256;
    types_hash_max_size 2048;

    client_header_buffer_size 2k;
    client_header_timeout 90s;
    client_body_timeout 90s;
    send_timeout 90s;
client_max_body_size 64M;
    client_body_buffer_size 128k;

    #include koi-utf;
    #charset utf-8;
    #source_charset koi8-r;

    include '/etc/nginx/conf.d/*.conf';
}


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #23 on: 2015-09-26, 17:12:46 »
File yang dicari adalah /opt/configs/nginx/etc/conf/nginx.conf.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bugis

  • Valuable Member
  • *
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #24 on: 2015-09-27, 01:06:35 »
sama saja pak, tetap error.

nginx: [warn] invalid value "threads" in /etc/nginx/nginx.conf:20
nginx: configuration file /etc/nginx/nginx.conf test failed

Padahal di kloxo 6.5.0 final setelah downgrade dan jalankan sh /script/cleanup semuanya berjalan lancar.

Apakah ada jalan, walaupun menggunakan nginx terbaru setelah sh /script/cleanup SSL tetap valid di kloxoMR ?

Mohon dibantu pak | web sudah 10 jam down :(


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #25 on: 2015-09-27, 02:10:24 »
Jika masih error 'threads' artinya nilai 'aio threads;' masih belum di-disable (kemungkinan juga 'directio 4m;'). Perhatikan /etc/nginx/nginx.conf.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bugis

  • Valuable Member
  • *
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #26 on: 2015-09-27, 03:30:06 »
Malah tambah error pak.

*** Process for NGINX service ***
Starting nginx: nginx: [emerg] unknown directive "fastcgi_request_buffering" in /opt/configs/nginx/conf/globals/switch_standard.conf:25
                                                           [FAILED]
  - Process: reload
Reloading nginx:                                           [FAILED]


atau saya kirimkan panel dan sshnya pak ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #27 on: 2015-09-27, 03:52:19 »
Malah tambah error pak.

*** Process for NGINX service ***
Starting nginx: nginx: [emerg] unknown directive "fastcgi_request_buffering" in /opt/configs/nginx/conf/globals/switch_standard.conf:25
                                                           [FAILED]
  - Process: reload
Reloading nginx:                                           [FAILED]


atau saya kirimkan panel dan sshnya pak ?
Kan sudah saya tawarkan sebelumnya untuk beri akses ke saya?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bugis

  • Valuable Member
  • *
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #28 on: 2015-09-27, 04:36:56 »
PM Sent..............

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: WEBSITE LAMBAT LOAD IO NGINX 99%
« Reply #29 on: 2015-09-27, 06:37:36 »
Sudah saya periksa dan optimasi.

Jika menjalankan 'top' dari ssh terlihat '%wa' bernilai tinggi. Ini menunjukkan proses menunggu sebelum penulisan ke HDD terjadi. Ini yang membuat semuanya menjadi lambat.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.048 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM