• 25-01-2014, 10:36:41
    #1
    ./mysqltuner.pl çıktım bu arkadaşlar.
    >> MySQLTuner 1.2.0 - Major Hayden <major@mhtx.net>
    >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
    >> Run with '--help' for additional options and output filtering

    -------- General Statistics --------------------------------------------------
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.5.34-cll
    [!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM

    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
    [--] Data in MyISAM tables: 64M (Tables: 319)
    [--] Data in InnoDB tables: 3M (Tables: 88)
    [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
    [!!] Total fragmented tables: 5

    -------- Security Recommendations -------------------------------------------
    [OK] All database users have passwords assigned

    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 11h 4m 39s (11M q [277.394 qps], 25K conn, TX: 12B, RX: 2B)
    [--] Reads / Writes: 96% / 4%
    [--] Total buffers: 560.0M global + 2.7M per thread (300 max threads)
    [OK] Maximum possible memory usage: 1.3G (33% of installed RAM)
    [OK] Slow queries: 0% (0/11M)
    [OK] Highest usage of available connections: 24% (73/300)
    [OK] Key buffer size / total MyISAM indexes: 16.0K/7.7M
    [OK] Key buffer hit rate: 95.9% (11B cached / 481M reads)
    [OK] Query cache efficiency: 87.5% (9M cached / 10M selects)
    [!!] Query cache prunes per day: 116226
    [OK] Sorts requiring temporary tables: 0% (13K temp sorts / 3M sorts)
    [!!] Joins performed without indexes: 1047
    [OK] Temporary tables created on disk: 0% (8K on disk / 1M total)
    [OK] Thread cache hit rate: 86% (3K created / 25K connections)
    [!!] Table cache hit rate: 0% (4 open / 5M opened)
    [OK] Open file limit used: 0% (8/1K)
    [OK] Table locks acquired immediately: 99% (7M immediate / 7M locks)
    [OK] InnoDB data size / buffer pool: 4.0M/512.0M

    -------- Recommendations -----------------------------------------------------
    General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    MySQL started within last 24 hours - recommendations may be inaccurate
    Enable the slow query log to troubleshoot bad queries
    Adjust your join queries to always utilize indexes
    Increase table_cache gradually to avoid file descriptor limits
    Variables to adjust:
    query_cache_size (> 8M)
    join_buffer_size (> 2.0M, or always use indexes with joins)
    table_cache (> 4)

    /etc/my.cnf'um ise bu;
    [mysql]
    no-auto-rehash
    [mysqld]
    key_buffer_size=16K
    thread_stack=128K
    socket="/var/lib/mysql/mysql.sock"
    skip-networking
    tmp_table_size=24M
    max_heap_table_size=24M
    join_buffer_size=2M
    query_cache_size=8M
    port=3306
    skip-external-locking
    max_connections=300
    sort_buffer_size=64K
    innodb_buffer_pool_size=512M
    read_buffer_size=256K
    local-infile=0
    read_rnd_buffer_size=256K
    thread_cache_size=4
    table_cache=6
    max_user_connections=300
    table_open_cache=4
    max_allowed_packet=32M
    net_buffer_length=2K
    server-id=1
    innodb_file_per_table=1
    default-storage-engine=MyISAM
    [mysqlhotcopy]
    interactive-timeout
    [client]
    socket="/var/lib/mysql/mysql.sock"
    port=3306
    [mysqldump]
    max_allowed_packet=16M
    quick
    [myisamchk]
    key_buffer_size=8M
    sort_buffer_size=8M

    Sunucu'da Cpanel var. Rica ediyorum bi uzman arkadaş görüş belirtebilir mi my.cnf ayarlarım hakkında? Ne yapmalıyım?
  • 25-01-2014, 11:04:37
    #2
    Administrator
    Buraya baktınızmı https://www.r10.net/server-optimizasy...i-vericem.html
  • 25-01-2014, 13:21:47
    #3
    my.cnf vermissiniz ama sunucu bilgileriniz ve kullandiğiniz script nedir ?

    Onlari beyan ederseniz insanların size fikirleri açık olmalarını sağlayabilirsiniz.
  • 25-01-2014, 13:22:03
    #4
    AaRadyOcU adlı üyeden alıntı: mesajı görüntüle
    my.cnf vermissiniz ama sunucu bilgileriniz ve kullandiğiniz script nedir ?

    Onlari beyan ederseniz insanların size fikirleri açık olmalarını sağlayabilirsiniz.
    Ram 3 GB, Çok hitli site yok. En fazlası şuan için 1K günlük. Opencart ve Wordpress ağırlıklı siteler.


    Coşkun adlı üyeden alıntı: mesajı görüntüle
    Baktım oranın çok yararı oldu olmasına ama bu sefer pid error'lar vermeye başladı. Ordan burdan kırpıp birşeyler yapmaya çalıştım. Ama yine de %110'larda geziyor fakat load avareges düştü.

    my.cnf'im bu; sizin yardımınızı istesem imkan olur mu bi düzenleme yapsanız hocam.

    # The following options will be passed to all MySQL clients
    [client]
    #password = your_password
    port = 3306
    socket = /var/lib/mysql/mysql.sock

    # Here follows entries for some specific programs

    # The MySQL server
    [mysqld]
    port = 3306
    socket = /var/lib/mysql/mysql.sock
    skip-external-locking
    skip-name-resolve
    max_connections=200
    max_user_connections=200
    key_buffer = 128M
    query_cache_type = 1
    query_cache_size = 16M
    query_cache_limit = 16M
    long_query_time = 4
    join_buffer_size = 2M
    sort_buffer_size = 2M
    key_buffer_size = 16K
    table_cache = 5000
    open_files_limit = 10000
    thread_cache_size = 256
    tmp_table_size = 1024M
    log-queries-not-using-indexes
    wait_timeout = 28800
    max_allowed_packet = 32M
    table_open_cache = 4
    sort_buffer_size = 64K
    read_buffer_size = 1M
    read_rnd_buffer_size = 2M
    net_buffer_length = 2K
    thread_stack = 128K
    default-storage-engine = MyISAM

    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (using the "enable-named-pipe" option) will render mysqld useless!
    #
    skip-networking
    server-id = 1

    # Uncomment the following if you want to log updates
    #log-bin=mysql-bin

    # binary logging format - mixed recommended
    #binlog_format=mixed

    # Causes updates to non-transactional engines using statement format to be
    # written directly to binary log. Before using this option make sure that
    # there are no dependencies between transactional and non-transactional
    # tables such as in the statement INSERT INTO t_myisam SELECT * FROM
    # t_innodb; otherwise, slaves may diverge from the master.
    #binlog_direct_non_transactional_updates=TRUE

    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = /var/lib/mysql
    #innodb_data_file_path = ibdata1:10M:autoextend
    #innodb_log_group_home_dir = /var/lib/mysql
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    innodb_buffer_pool_size = 1G
    #innodb_additional_mem_pool_size = 2M
    # Set .._log_file_size to 25 % of buffer pool size
    #innodb_log_file_size = 5M
    #innodb_log_buffer_size = 8M
    #innodb_flush_log_at_trx_commit = 1
    #innodb_lock_wait_timeout = 50

    [mysqldump]
    quick
    max_allowed_packet = 16M
    quote-names

    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates

    [myisamchk]
    key_buffer = 32M
    key_buffer_size = 8M
    sort_buffer_size = 32M
    read_buffer = 16M
    write_buffer = 16M

    [mysqlhotcopy]
    interactive-timeout
  • 25-01-2014, 13:30:21
    #5
    Administrator
    PİD hatası almanızın nedeni mysql 5.5 sürümünü kullanıyorsanız eski mysql parametrelerini kullanıyor olmanızdan dolayıdır.

    linux ve cpanel ise bilgilerini pm olarak gönderin kontrol edeyim.

    Dedicated server ise tabi.
  • 25-01-2014, 13:30:54
    #6
    Wordpress ve opencart ise wodpress in çok ram + işlemci gücü harcadığını belirtmek isterim.

    Kullandiğiniz hosting resel mi yoksa VPS - VDS yada dediacted ise optimizasyon yapılması gerekiyor.

    paylasımlı hosting veya resel ise VPS - VDS yada dediacted gecmeniz gerekir.

    paylasımlı hostinglerin limitleri azdır.Bu bakımdan sıkıntı yasayabilirsiniz.

    VPS - VDS ise wordpress için cache eklentilerini kullanabilirsiniz.Yada ana dizinde error_log dosyasında hataları bakınız.Oradan da anlam cıkarabilirsiniz.

    my.cnf için Coşkun arkadasımızn bilgilerinden faydalanabilirsiniz.
  • 25-01-2014, 13:38:22
    #7
    VPS kullanıyorum. Cache eklentilerini kullanıyorum. error_log'larım yok sistemimde yani herhangi bir php error_log'u oluşmuyor. Php kodlar veya sorgularda bi sorunum yok.

    Teşekkürler.
  • 25-01-2014, 13:55:25
    #8
    O halde bu posttaki bilgileri dikkati alınız.

    https://www.r10.net/1068557169-post5.html
  • 27-01-2014, 14:30:50
    #9
    Coşkun adlı üyeden alıntı: mesajı görüntüle
    PİD hatası almanızın nedeni mysql 5.5 sürümünü kullanıyorsanız eski mysql parametrelerini kullanıyor olmanızdan dolayıdır.

    linux ve cpanel ise bilgilerini pm olarak gönderin kontrol edeyim.

    Dedicated server ise tabi.
    Bu sorguların yüksek cpu harcaması da eski mysql sürümünden mi kaynaklanıyor acaba ?

    http://i.imgur.com/aJRIdLP.png

    5.1.71 sürümünü kullanıyorum şuanda tuning primer ile düzenlemeye çalıştım fakat hala çok yüksek.