Skocz do zawartości

tryme

Użytkownicy
  • Zawartość

    27
  • Rejestracja

  • Ostatnio

Posty napisane przez tryme


  1. Witam serdecznie,

     

    Mam problem z poprawnym ustawieniem serwera lighttpd oraz xcache, tak aby nie swapowały za bardzo.

     

    Po restarcie lighttpd zasoby pamięci wyglądają mniej więcej tak

    debian:~# free -m

    total used free shared buffers cached

    Mem: 6074 4986 1088 0 313 2825

    -/+ buffers/cache: 1846 4227

    Swap: 3812 292 3519

    Po kilku, kilkunastu godzinach swap drastycznie rośnie w zależności od ustawień pamięci dla xcache (wpierw 512mb, później 256mb).

    swapweeksj2.th.png

     

    Oto moje pliki konfiguracyjne:

     

    lighttpd.conf

    server.max-keep-alive-requests = 4

    server.max-keep-alive-idle = 4

    server.max-read-idle = 60

    server.max-write-idle = 360

     

    server.modules += ( "mod_fastcgi" )

     

    ## Start an FastCGI server for php4 (needs the php4-cgi package)

    fastcgi.server = ( ".php" =>

    ((

    "bin-path" => "/usr/local/bin/php-cgi",

    "socket" => "/tmp/php.socket",

    "max-procs" => 10,

    "idle-timeout" => 20,

    "bin-environment" => (

    "PHP_FCGI_CHILDREN" => "16",

    "PHP_FCGI_MAX_REQUESTS" => "1000"

    ),

    "bin-copy-environment" => (

    "PATH", "SHELL", "USER"

    ),

    "broken-scriptfilename" => "enable"

    ))

    )

     

    php.ini

     

    [xcache]

    ; ini only settings, all the values here is default unless explained

     

    ; select low level shm/allocator scheme implemenation

    xcache.shm_scheme = "mmap"

    ; to disable: xcache.size=0

    ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows

    xcache.size = 256M

    ; set to cpu count (cat /proc/cpuinfo |grep -c processor)

    xcache.count = 4

    ; just a hash hints, you can always store count(items) > slots

    xcache.slots = 8K

    ; ttl of the cache item, 0=forever

    xcache.ttl = 0

    ; interval of gc scanning expired items, 0=no scan, other values is in seconds

    xcache.gc_interval = 0

     

    ; same as aboves but for variable cache

    xcache.var_size = 16M

    xcache.var_count = 2

    xcache.var_slots = 8K

    ; default ttl

    xcache.var_ttl = 1

    xcache.var_maxttl = 1

    xcache.var_gc_interval = 300

     

    xcache.test = Off

    ; N/A for /dev/zero

    xcache.readonly_protection = On

    ; for *nix, xcache.mmap_path is a file path, not directory.

    ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection

    ; 2 group of php won't share the same /tmp/xcache

    ; for win32, xcache.mmap_path=anonymous map name, not file path

    xcache.mmap_path = "/dev/zero"

     

     

    ; leave it blank(disabled) or "/tmp/phpcore/"

    ; make sure it's writable by php (without checking open_basedir)

    xcache.coredump_directory = "/tmp/phpcore"

     

    ; per request settings

    xcache.cacher = On

    xcache.stat = On

    xcache.optimizer = On

     

    [xcache.coverager]

    ; per request settings

    ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)

    xcache.coverager = Off

     

    ; ini only settings

    ; make sure it's readable (care open_basedir) by coverage viewer script

    ; requires xcache.coverager=On

    xcache.coveragedump_directory = "/tmp/phpcore"

     

    Będę wdzięczny za wszelkie sugestie.


  2. Witam,

     

    Korzystając z programu Tuning Primer Script dostałem taki komunikat:

     

    TEMP TABLES

    Current max_heap_table_size = 16 M

    Current tmp_table_size = 128 M

    Of 440947 temp tables, 60% were created on disk

    Effective in-memory tmp_table_size is limited to max_heap_table_size.

    Perhaps you should increase your tmp_table_size and/or max_heap_table_size

    to reduce the number of disk-based temporary tables

    Note! BLOB and TEXT columns are not allow in memory tables.

    If you are using these columns raising these values might not impact your

    ratio of on disk temp tables.

    Zwiększanie tmp_table_size oraz max_heap_table_size nic nie daje, ponieważ korzystam z kolumn text.

     

    Postanowiłem więc skierować katalog tmp MySQLa na partycję tmpfs, lecz nie zauważyłem tak żadnego ruchu ani zauważalnego spadku Loada.

     

    Czy macie na to jakieś rozwiązanie?


  3. Witam Serdecznie,

     

    Poszukuję doświadczonej osoby, która pomogłaby mi z pracami na serwerze z Ubuntu. W chwili obecnej zależy mi przede wszystkim na:

     

    1) instalacji Lighttpd oraz jego odpowiedniej konfiguracji oraz optymalizacji,

     

    2) instalacji PHP5 wraz z XCache,

     

    3) poprawnego skonfigurowania Postfixa, w tym wycięcie spamu,

     

    4) stworzenie podstawowego firewalla.

     

    Oferta ta skierowana jest dla ludzi z Wrocławia, ponieważ ze względów bezpieczeństwa, chciałbym aby osoba podejmująca się ww. zadania logowała się na serwer w moim towarzystwie (u mnie w domu lub w dowolnym miejscu z mojego laptopa) :)

     

    Mile widziana FV.

     

    Propozycje proszę przesyłać przez PM.

     

    Dziękuję za uwagę.


  4. Witam,

     

    Ostatnio zarejestrowałem nowe domeny lecz tym razem w OVH. Po rejestracji w panelu okazało się, że nie mogę ustawić wildcard ;) Pani na informacji poinformowała mnie, że nawet administrator nie może nic na to poradzić ;)

     

    Pytanie: czy jest jakaś szansa aby w OVH ustawili mi wildcard na domeny czy pozostaje mi jedynie transfer domen ?

     

    Dziękuję za pomoc.

×