server hebat tapi koneksi lelet??

Pasti pernah mengalami ini. Sudah investasi server super cepat, diinstal linux update terbaru, tapi di cek pake netstat kok cuma beberapa puluh koneksi sudah down. :(

cobalah tips ini:
Secara default, semua distribusi linux memberikan nilai maximum tcp connection sebesar 128 connection. Ubahlah nilai tersebut sesuai kemampuan server anda.
Cek nilainya disini:

$ cat /proc/sys/net/core/somaxconn
128

ubah nilainya ke sesuatu nilai yang cukup, misal 512:

$ sysctl -s net.core.somaxconn=512

untuk memberikan perubahan secara permanen, masukkan entry tersebut di /etc/sysctl.conf

net.core.somaxconn = 512

Selamat mencoba, and let me know the results. :)

Tags: , , ,

{ 1 comment to read ... please submit second! }

  1. begh…mantap!!

    Ditunggu pak tulisan lainnya

{ 0 Pingbacks/Trackbacks }

Leave a Reply

Your email address will not be published. Required fields are marked *

*


+ one = 9

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>