[ASK] optimasi litespeed

Discussion in 'Software Hosting dan Control Panel' started by pangeran1995, 18 Feb 2015.

Thread Status:
Not open for further replies.
  1. pangeran1995

    pangeran1995 Hosting Guru

    Messages:
    1,352
    Likes Received:
    105
    Trophy Points:
    63
    Hallo Tuan
    saya ada rencana server dedicated mau menggunakan LiteSpeed sebelumnya menggunakan nginx dan apache ada beberapa pelanggan mengeluh load terlalu lambat dan sering internal server error masalah pada htaccess nya
    saya rencana mau menggunakan dan baru menggunakan litespeed.
    ada saran untuk optimasi litespeed harus gmn agar website pelanggan wus wus :D

    terima kasih
     
  2. mustafaramadhan

    mustafaramadhan Hosting Guru

    Messages:
    3,237
    Likes Received:
    857
    Trophy Points:
    113
    Jika pakai nginx-proxy (pada kasus Kloxo-MR) dengan setting default biasanya perlu apache-nya dioptimasi (menaikkan nilai ServerLimit and MaxClient). Jika tidak maka tidak ada keseimbangan 'komunikasi' antara nginx dan apache.
     
  3. pangeran1995

    pangeran1995 Hosting Guru

    Messages:
    1,352
    Likes Received:
    105
    Trophy Points:
    63
    untuk settingan apachrnya gmn tuh mas
     
  4. mustafaramadhan

    mustafaramadhan Hosting Guru

    Messages:
    3,237
    Likes Received:
    857
    Trophy Points:
    113
    Ini setting pada /etc/httpd/~lxcenter.conf untuk memory 8GB pada 'low' optimize:
    Code:
    Timeout 150
    KeepAlive Off
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    
    <IfModule prefork.c>
        StartServers 2
        MinSpareServers 14
        MaxSpareServers 29
        ServerLimit 29
        <IfVersion >= 2.4>
            MaxRequestWorkers 29
            MaxConnectionsPerChild 4000
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 29
            MaxRequestsPerChild 4000
        </IfVersion>
        MaxMemFree 2
        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>
    
    <IfModule itk.c>
        StartServers 2
        MinSpareServers 14
        MaxSpareServers 29
        ServerLimit 29
        <IfVersion >= 2.4>
            MaxRequestWorkers 29
            MaxConnectionsPerChild 4000
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 29
            MaxRequestsPerChild 4000
        </IfVersion>
        MaxMemFree 2
        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>
    
    <IfModule worker.c>
        StartServers 2
        MinSpareThreads 12
        MaxSpareThreads 25
        ThreadsPerChild 25
        ServerLimit 25
        <IfVersion >= 2.4>
            MaxRequestWorkers 300
            MaxConnectionsPerChild 0
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 300
            MaxRequestsPerChild 0
        </IfVersion>
    
        ThreadStackSize 8196
        MaxMemFree 2
        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>
    
    <IfModule event.c>
        StartServers 2
        MinSpareThreads 12
        MaxSpareThreads 25
        ThreadsPerChild 25
        ServerLimit 25
        MaxRequestsPerChild 0
        ThreadStackSize 8196
        <IfVersion >= 2.4>
            MaxRequestWorkers 300
            MaxConnectionsPerChild 0
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 300
            MaxRequestsPerChild 0
        </IfVersion>
    
        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>
    
    Include /opt/configs/apache/conf/defaults/*.conf
    Include /opt/configs/apache/conf/domains/*.conf
    
    
    Jika pakai CP lain tinggal disesuaikan saja. Jika masih dirasa kurang bisa dinaikkan nilai ServerLimit, MaxClients dan MaxRequestWorkers menjadi 2-3 kali-nya.
     
    pangeran1995 likes this.
  5. pangeran1995

    pangeran1995 Hosting Guru

    Messages:
    1,352
    Likes Received:
    105
    Trophy Points:
    63
    makasih mas udah membantu
    suwun
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...