• 24-01-2007, 15:28:31
    #1
    VPS hosting servers (Virtual Private Servers) by EuroVPS 'den linux vps aldım. ama daha uyduruktan 2-3 k lık 1 kaç tane site ekledim cpu kullanımı çok yüksekmiş v.s günün yarısı kapanıyor vps , birde yüksek hitli siteleri atsam ne olur düşünemiyorum ne yapmam gerekir kullanımı azaltmam için


  • 24-01-2007, 15:34:01
    #2
    Üyeliği durduruldu
    Kullandığın scripts i kontrol et. Gereksiz bir döngüden bile bunu yapar.
  • 24-01-2007, 15:36:42
    #3
    script'de oynama yapamam evet fazla cpu yiyor,

    başka bir şekilde optimize etmem lazım, tamam fazla cpu yiyor ama bu kadar vps'i öldürmesi imkansız...

    pek bilgim olmadığı için hiç ayar yapmadım vps'i aldığım gibi kullanıyorum neler yapmalıyım ?
  • 24-01-2007, 15:47:53
    #4
    Kimlik doğrulama veya yönetimden onay bekliyor.
    VPS'in kullandığı CPU kaç kişiye bölünmüş durumda ?
    VPS'inde kullandığın scriptler nelerdir ?
    Sitelerin anlık hiti nedir ?
  • 24-01-2007, 15:52:51
    #5
    Linux VPS Hosting Servers | cPanel control panel VPS hosting servers paket burdaki ilki 768 max ram olması lazım

    anlık hit az script fazla cpu kullanır yazmıştım

    dediğim gibi vps'de herşey default ayarlar ben bunlarla oynıyarak cpu kullanımını azaltmak istiyorum

    gerçekten sinir bozucu birşey 50 euro ödedim adamlara 1 haftadır 3-4 gün kapalı vps..
  • 24-01-2007, 15:55:48
    #6
    CPU kullanımı yüksek olduğu için CPU'yu kaç kişiye böldükleri önemli sanırım. Bir de mesela toplist ya da hitlist scripti kullanırsın. İyi optimize edilmemiştir, anlık 50-60 online'ı görünce kasmaya başlar. Tabi scriptin de gereksiz sorgu ve döngülerden de arınmış olması gerekiyor.
  • 24-01-2007, 17:51:11
    #7
    Kurumsal PLUS
    VPS sonuçta ama deneyelim bir optimasyon...

    cat /etc/my.cnf
    mysqladmin -u root -p var ext stat ver
    mysqladmin -u root -p variables
    mysqladmin -u root -p extended-status
    uname -a
    ulimit -aH
    top
    cat /proc/cpuinfo
    free

    bunların çıktınısı aynen buraya yaz...

    httpd.conf ayarlarındaki

    Timeout
    KeepAlive
    MaxKeepAliveRequests
    KeepAliveTimeout
    MinSpareServers
    MaxSpareServers
    StartServers
    MaxClients
    MaxRequestsPerChild

    bunların değerlerinide yaz...

    Herşeyi tam yazmassan yardım edemem...
  • 24-01-2007, 18:40:13
    #8
    root@server [~]# cat /etc/my.cnf
    [mysqld]
    set-variable = max_connections=500
    safe-show-database


    root@server [~]# uname -a
    Linux server.sadzxdxzc.net 2.6.9-023stab033.9-enterprise #1 SMP Tue Dec 5 14:40:57 MSK 2006 i686 i686 i386 GNU/Linux


    root@server [~]# ulimit -aH

    core file size (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    pending signals (-i) 1024
    max locked memory (kbytes, -l) 32
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    stack size (kbytes, -s) unlimited
    cpu time (seconds, -t) unlimited
    max user processes (-u) 98304
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited


    root@server [~]# cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 0
    siblings : 2
    core id : 0
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2982.49
    processor : 1
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 0
    siblings : 2
    core id : 0
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2979.15
    processor : 2
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 1
    siblings : 2
    core id : 1
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2979.24
    processor : 3
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 1
    siblings : 2
    core id : 1
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2979.45
    processor : 4
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 2
    siblings : 2
    core id : 2
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2979.31
    processor : 5
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 2
    siblings : 2
    core id : 2
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2979.27
    processor : 6
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 3
    siblings : 2
    core id : 3
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2979.18
    processor : 7
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) XEON(TM) MP CPU 1.50GHz
    stepping : 2
    cpu MHz : 1489.953
    cache size : 1024 KB
    physical id : 3
    siblings : 2
    core id : 3
    cpu cores : 1
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 2979.21


    root@server [~]# free

    total used free shared buffers cached
    Mem: 12199080 12144816 54264 0 176120 7299656
    -/+ buffers/cache: 4669040 7530040
    Swap: 10241268 138520 10102748
    root@server [~]#


    top:




    mysqladmin -u root -p var ext stat ver
    mysqladmin -u root -p variables
    mysqladmin -u root -p extended-status
    ulaşamadım zaten mysql kullanmıyorum hiçbir sitede


    httpd.conf ayarlarındaki değerleri nasıl bulabilirim ?
  • 24-01-2007, 21:46:58
    #9
    Coojo adlı üyeden alıntı: mesajı görüntüle
    root@server [~]# cat /etc/my.cnf

    httpd.conf ayarlarındaki değerleri nasıl bulabilirim ?
    ssh de bu komutu gir:

    pico /etc/httpd/conf/httpd.conf