• 21-10-2018, 17:18:19
    #1
    Üyeliği durduruldu
    merhabna suınuıcum aşırı mysql kullanıyor ve mysqltuner.pl ile tarama yaptıgımda ayarelar böyle olması gerekiyormus ama nasıl yapacağım bilmiyorum yardımcı oluırmusunuzx

    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.7.23
    [OK] Operating on 64-bit architecture
    
    -------- Log file Recommendations ------------------------------------------------------------------
    [--] Log file: /var/lib/mysql/s1.maxtakipci.com.err(49M)
    [OK] Log file /var/lib/mysql/s1.maxtakipci.com.err exists
    [OK] Log file /var/lib/mysql/s1.maxtakipci.com.err is readable.
    [OK] Log file /var/lib/mysql/s1.maxtakipci.com.err is not empty
    [!!] Log file /var/lib/mysql/s1.maxtakipci.com.err is bigger than 32 Mb
    [!!] /var/lib/mysql/s1.maxtakipci.com.err contains 298968 warning(s).
    [!!] /var/lib/mysql/s1.maxtakipci.com.err contains 27594 error(s).
    [--] 26 start(s) detected in /var/lib/mysql/s1.maxtakipci.com.err
    [--] 1) 2018-10-21T14:01:56.708926Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 2) 2018-10-21T13:57:04.646214Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 3) 2018-10-21T13:55:46.360238Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 4) 2018-10-21T13:47:47.032960Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 5) 2018-10-21T13:39:34.251561Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 6) 2018-10-21T13:37:20.182422Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 7) 2018-10-21T13:30:45.473152Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 8) 2018-10-20T15:57:44.062242Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 9) 2018-10-20T15:53:42.412621Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 10) 2018-10-20T14:54:56.735854Z 0 [Note] /usr/sbin/mysqld: ready for connections.
    [--] 7 shutdown(s) detected in /var/lib/mysql/s1.maxtakipci.com.err
    [--] 1) 2018-10-21T13:57:17.073972Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
    [--] 2) 2018-10-20T15:53:48.845300Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
    [--] 3) 2018-10-20T15:53:25.133926Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
    [--] 4) 2018-10-20T09:25:45.169834Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
    [--] 5) 2018-10-20T08:11:26.414508Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
    [--] 6) 2018-10-19T17:41:48.377824Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
    [--] 7) 2018-10-19T15:33:46.001792Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
    
    -------- Storage Engine Statistics -----------------------------------------------------------------
    [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
    [--] Data in MyISAM tables: 15.8M (Tables: 58)
    [--] Data in InnoDB tables: 69.8M (Tables: 129)
    [OK] Total fragmented tables: 0
    
    -------- Analysis Performance Metrics --------------------------------------------------------------
    [--] innodb_stats_on_metadata: OFF
    [OK] No stat updates during querying INFORMATION_SCHEMA.
    
    -------- Security Recommendations ------------------------------------------------------------------
    [OK] There are no anonymous accounts for any database users
    [OK] All database users have passwords assigned
    [--] There are 618 basic passwords in the list.
    
    -------- CVE Security Recommendations --------------------------------------------------------------
    [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
    
    -------- Performance Metrics -----------------------------------------------------------------------
    [--] Up for: 13m 41s (451K q [549.808 qps], 113K conn, TX: 1G, RX: 52M)
    [--] Reads / Writes: 72% / 28%
    [--] Binary logging is disabled
    [--] Physical Memory     : 31.5G
    [--] Max MySQL memory    : 5.6G
    [--] Other process memory: 839.6M
    [--] Total buffers: 4.3G global + 1.8M per thread (750 max threads)
    [--] P_S Max memory usage: 0B
    [--] Galera GCache Max memory usage: 0B
    [OK] Maximum reached memory usage: 4.9G (15.47% of installed RAM)
    [OK] Maximum possible memory usage: 5.6G (17.87% of installed RAM)
    [OK] Overall possible memory usage with other process is compatible with memory available
    [OK] Slow queries: 0% (0/451K)
    [OK] Highest usage of available connections: 41% (308/750)
    [OK] Aborted connections: 0.00%  (1/113619)
    [--] Skipped name resolution test due to skip_networking=ON in system variables.
    [!!] Query cache may be disabled by default due to mutex contention.
    [OK] Query cache efficiency: 86.3% (276K cached / 321K selects)
    [OK] Query cache prunes per day: 0
    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 392 sorts)
    [OK] No joins without indexes
    [OK] Temporary tables created on disk: 12% (241 on disk / 1K total)
    [OK] Thread cache hit rate: 99% (308 created / 113K connections)
    [OK] Table cache hit rate: 67% (2K open / 3K opened)
    [OK] Open file limit used: 0% (467/56K)
    [!!] Table locks acquired immediately: 83%
    
    -------- Performance schema ------------------------------------------------------------------------
    [--] Performance schema is disabled.
    [--] Memory used by P_S: 0B
    [--] Sys schema is installed.
    
    -------- ThreadPool Metrics ------------------------------------------------------------------------
    [--] ThreadPool stat is disabled.
    
    -------- MyISAM Metrics ----------------------------------------------------------------------------
    [!!] Key buffer used: 18.2% (390M used / 2B cache)
    [OK] Key buffer size / total MyISAM indexes: 2.0G/1.1M
    [OK] Read Key buffer hit rate: 98.0% (5K cached / 106 reads)
    [OK] Write Key buffer hit rate: 98.8% (164 cached / 162 writes)
    
    -------- InnoDB Metrics ----------------------------------------------------------------------------
    [--] InnoDB is enabled.
    [--] InnoDB Thread Concurrency: 4
    [OK] InnoDB File per table is activated
    [OK] InnoDB buffer pool / data size: 2.0G/69.8M
    [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 256.0M * 2/2.0G should be equal 25%
    [!!] InnoDB buffer pool instances: 8
    [--] Number of InnoDB Buffer Pool Chunk : 16 for 8 Buffer Pool Instance(s)
    [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
    [OK] InnoDB Read buffer efficiency: 100.00% (109392184 hits/ 109393878 total)
    [!!] InnoDB Write Log efficiency: 83.85% (16004 hits/ 19086 total)
    [OK] InnoDB log waits: 0.00% (0 waits / 3082 writes)
    
    -------- AriaDB Metrics ----------------------------------------------------------------------------
    [--] AriaDB is disabled.
    
    -------- TokuDB Metrics ----------------------------------------------------------------------------
    [--] TokuDB is disabled.
    
    -------- XtraDB Metrics ----------------------------------------------------------------------------
    [--] XtraDB is disabled.
    
    -------- Galera Metrics ----------------------------------------------------------------------------
    [--] Galera is disabled.
    
    -------- Replication Metrics -----------------------------------------------------------------------
    [--] Galera Synchronous replication: NO
    [--] No replication slave(s) for this server.
    [--] Binlog format: ROW
    [--] XA support enabled: ON
    [--] Semi synchronous replication Master: Not Activated
    [--] Semi synchronous replication Slave: Not Activated
    [--] This is a standalone server
    
    -------- Recommendations ---------------------------------------------------------------------------
    General recommendations:
        /var/lib/mysql/s1.maxtakipci.com.err is > 32Mb, you should analyze why or implement a rotation log strategy such as logrotate!
        Control warning line(s) into /var/lib/mysql/s1.maxtakipci.com.err file
        Control error line(s) into /var/lib/mysql/s1.maxtakipci.com.err file
        MySQL was started within the last 24 hours - recommendations may be inaccurate
        Optimize queries and/or use InnoDB to reduce lock wait
        Performance schema should be activated for better diagnostics
    Variables to adjust:
        query_cache_size (=0)
        query_cache_type (=0)
        performance_schema = ON enable PFS
        innodb_buffer_pool_instances(=2)
  • 21-10-2018, 21:12:32
    #2
    /etc/my.cnf içindeki değerleri mysqltunner e göre düzenleyebilirsiniz
  • 21-10-2018, 21:13:50
    #3
    Üyeliği durduruldu
    nasıl yapıldıgına göre bir fikrim yok