• 10-06-2009, 00:45:13
    #10
    Üyeliği durduruldu
    8 GB ram icin ayrica 64 bit isletim sistemi kurdurdum.Celiskili anlatimlar oldugu icin.. Hizlilik konusunda cok etkili oldu. su an hizli... httpd.conf dosyasini optimize ederken. bi ara site yogunlasti ve yavasladi. yaptigim ayarlari tek tek eskiye cevirip hatayi bulmaya calistim ve KeepAlive On yaptigim an "Segmentation fault" hatasi aldigimi farkettim...allah askina performans acisindan KeepAlive On öneriliyor,peki ben On yapinca neden böyle bir hata aliyorum. nedir bu KeepAlive olayi..

    Bu aciklamadan birsey anlamadim..
    # KeepAlive: Israrlı bağlantılara (persistent connection - aynı istemciden birden fazla istek) izin
    # verilip verilmeyeceği. Kaldırmak için "Off" yapınız.
    KeepAlive On
    Tesekkürler.
  • 10-06-2009, 01:29:07
    #11
    mow
    Üyeliği durduruldu
    Keepalive = belirli bir süre içerisinde aynı ip den gelen istekler için ortak kaynak kullanılmasını sağlar. Keepalive açık olduğunda, "keepalive timeout" süresince 100 kişiden gelen 1000 istek için 100x kaynak ayrılır, kapalı olursa 1000x kaynak ayrılır, tam olarak böyle değil ama kabaca yol ve amaç budur. Yani "keepalive off" yaparak kat kat yük bindiriyorsun demektir.

    64 bit işlemcin varsa zaten 64 bit kernel kullanmalısın, 32 bit kullanman hata. Sorununa gelince; sorun genel bir sorun olmadığı için kimse sihirli bir çözüm söyleyemez, o yüzden işi bilen güvendiğin birine baktırmalısın.
  • 10-06-2009, 01:46:13
    #12
    Üyeliği durduruldu
    komutuna karsilik bu ciktiyi verdi:

    yum install kernel*
    
    Package kernel-headers-2.6.18-53.1.21.el5.x86_64 installed and not available
    yaklasik keepalive Off yaptigimdan beri hata almadim..

    load su an
    0.43, 0.78, 0.78

    mevcut httpd.conf ayarim:

    ServerTokens OS
    ServerRoot "/etc/httpd"
    PidFile run/httpd.pid
    Timeout 5
    KeepAlive Off
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    
    
    <IfModule prefork.c>
    StartServers       16
    MinSpareServers   10
    MaxSpareServers   40
    ServerLimit      512
    MaxClients       512
    MaxRequestsPerChild  5000
    </IfModule>
    Keepalive off durumunda timeout ne olmali?

    tesekkürler.
  • 10-06-2009, 01:52:19
    #13
    yum update httpd yap.
    Geçenlerde güncel bir paket yayınlamıştı centos. Değişen birşey olacak mı merak ediyorum...
  • 10-06-2009, 02:05:32
    #14
    Üyeliği durduruldu
    hayir yok, yaptim...
    tüm güncellemeler tamam, ´centos, centosplus, atomic repositorylerini kullaniyorum.
    Yum Repository at Utter Ramblings burada apache 2.2.8 var ancak onuda denemistim.Uzun süredir site pasif oldugu icin repositorysini kiurmadim.

    tesekkürler.
  • 10-06-2009, 02:07:39
    #15
    GDB ile hata ayıkladın mı peki?

    Apache HTTPD Debugging Guide - The Apache HTTP Server Project burayı incelemeni öneriririm.
  • 10-06-2009, 02:19:07
    #16
    Üyeliği durduruldu
    # gdb httpd komutu sonuclari.
    # gdb httpd
    GNU gdb Fedora (6.8-27.el5)
    Copyright (C) 2008 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu"...
    (no debugging symbols found)
    (no debugging symbols found) sanirim bulamadi.
  • 10-06-2009, 02:46:46
    #17
    Bu debug bilgisi değil, lisans bilgisi... Ek olarak run komutunu çalıştır.

    1.the "gdb httpd" command does not include any command-line options for httpd: those are provided when the "run" command is done within gdb;
  • 10-06-2009, 03:43:53
    #18
    Üyeliği durduruldu
    gdb httpd
    ardindan
    (gdb) run
    komutlari ciktisinda bu var:
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    [Thread debugging using libthread_db enabled]
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    [New Thread 0x7fec13847760 (LWP 3963)]
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    
    Program exited with code 01.