root@vps1735970:~# ./mysqltuner.pl
>> MySQLTuner 1.7.14 - Major Hayden <[Inhalt für Gäste ausgeblendet]>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Logged in using credentials from Debian maintenance account.
[OK] Currently running supported MySQL version 10.0.36-MariaDB-0ubuntu0.16.04.1
[OK] Operating on 64-bit architecture
-------- Log file Recommendations ---------------------------------------------- --------------------
[--] Log file: /var/lib/mysql/vps1735970.vs.webtropia-customer.com.err(0B)
[!!] Log file /var/lib/mysql/vps1735970.vs.webtropia-customer.com.err doesn't ex ist
[!!] Log file /var/lib/mysql/vps1735970.vs.webtropia-customer.com.err isn't read able.
-------- Storage Engine Statistics --------------------------------------------- --------------------
[--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MEMORY +MRG_MyIS AM +MyISAM +PERFORMANCE_SCHEMA
[--] Data in InnoDB tables: 1.9G (Tables: 648)
[--] Data in MyISAM tables: 20.1M (Tables: 80)
[--] Data in MEMORY tables: 152.6K (Tables: 1)
[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
[!!] User 'Gang@%' does not specify hostname restrictions.
[!!] User 'cachet@%' does not specify hostname restrictions.
[!!] User 'calladmin@%' does not specify hostname restrictions.
[!!] User 'data@%' does not specify hostname restrictions.
[!!] User 'elorank@%' does not specify hostname restrictions.
[!!] User 'esay-wi-ost@%' does not specify hostname restrictions.
[!!] User 'gloves@%' does not specify hostname restrictions.
[!!] User 'hlstats@%' does not specify hostname restrictions.
[!!] User 'knife@%' does not specify hostname restrictions.
[!!] User 'next_fanbase@%' does not specify hostname restrictions.
[!!] User 'psa@%' does not specify hostname restrictions.
[!!] User 'ranking_GamDrop@%' does not specify hostname restrictions.
[!!] User 'ranking_TS3@%' does not specify hostname restrictions.
[!!] User 'ranking_infini@%' does not specify hostname restrictions.
[!!] User 'ranking_purple@%' does not specify hostname restrictions.
[!!] User 'rsv_homepage@%' does not specify hostname restrictions.
[!!] User 'sb_bans@%' does not specify hostname restrictions.
[!!] User 'stamm@%' does not specify hostname restrictions.
[!!] User 'store@%' does not specify hostname restrictions.
[!!] User 'ttt@%' does not specify hostname restrictions.
[!!] User 'wbb5@%' does not specify hostname restrictions.
[!!] User 'ws@%' does not specify hostname restrictions.
[!!] There is no basic password file list!
-------- CVE Security Recommendations ------------------------------------------ --------------------
[--] Skipped due to --cvefile option undefined
-------- Performance Metrics --------------------------------------------------- --------------------
[--] Up for: 21d 3h 2m 14s (147M q [80.899 qps], 705K conn, TX: 1775G, RX: 62G)
[--] Reads / Writes: 55% / 45%
[--] Binary logging is disabled
[--] Physical Memory : 2.0G
[--] Max MySQL memory : 725.8M
[--] Other process memory: 0B
[--] Total buffers: 320.0M global + 2.7M per thread (151 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 508.1M (24.81% of installed RAM)
[OK] Maximum possible memory usage: 725.8M (35.44% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: 0% (64/147M)
[OK] Highest usage of available connections: 46% (70/151)
[!!] Aborted connections: 3.27% (23031/705188)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[!!] Query cache may be disabled by default due to mutex contention.
[OK] Query cache efficiency: 26.8% (28M cached / 106M selects)
[!!] Query cache prunes per day: 11358
[OK] Sorts requiring temporary tables: 0% (704 temp sorts / 5M sorts)
[!!] Joins performed without indexes: 45580
[OK] Temporary tables created on disk: 1% (57K on disk / 4M total)
[OK] Thread cache hit rate: 97% (15K created / 705K connections)
[!!] Table cache hit rate: 0% (400 open / 52K opened)
[OK] Open file limit used: 15% (156/1K)
[OK] Table locks acquired immediately: 99% (123M immediate / 123M locks)
-------- Performance schema ---------------------------------------------------- --------------------
[--] Performance schema is disabled.
[--] Memory used by P_S: 0B
-------- ThreadPool Metrics ---------------------------------------------------- --------------------
[--] ThreadPool stat is enabled.
[--] Thread Pool Size: 1 thread(s).
[--] Using default value is good enough for your version (10.0.36-MariaDB-0ubunt u0.16.04.1)
-------- MyISAM Metrics -------------------------------------------------------- --------------------
[!!] Key buffer used: 21.6% (3M used / 16M cache)
[OK] Key buffer size / total MyISAM indexes: 16.0M/8.0M
[OK] Read Key buffer hit rate: 99.7% (21M cached / 57K reads)
[!!] Write Key buffer hit rate: 66.5% (618K cached / 411K writes)
-------- InnoDB Metrics -------------------------------------------------------- --------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 0
[OK] InnoDB File per table is activated
[!!] InnoDB buffer pool / data size: 128.0M/1.9G
[!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 48.0M * 2/128. 0M should be equal 25%
[!!] InnoDB buffer pool <= 1G and Innodb_buffer_pool_instances(!=1).
[--] InnoDB Buffer Pool Chunk Size not used or defined in your version
[OK] InnoDB Read buffer efficiency: 99.96% (54869138819 hits/ 54889416597 total)
[OK] InnoDB Write log efficiency: 98.08% (2778587188 hits/ 2833051446 total)
[OK] InnoDB log waits: 0.00% (0 waits / 54464258 writes)
-------- AriaDB Metrics -------------------------------------------------------- --------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B
[!!] Aria pagecache hit rate: 93.6% (739K cached / 47K reads)
-------- 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: STATEMENT
[--] XA support enabled: ON
[--] Semi synchronous replication Master: Not Activated
[--] Semi synchronous replication Slave: Not Activated
[--] This is a standalone server
-------- Recommendations ------------------------------------------------------- --------------------
General recommendations:
Restrict Host for user@% to user@SpecificDNSorIp
Reduce or eliminate unclosed connections and network issues
Configure your accounts with ip or subnets only, then update your configurat ion with skip-name-resolve=1
Adjust your join queries to always utilize indexes
Increase table_open_cache gradually to avoid file descriptor limits
Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
Read this before increasing for MariaDB https://mariadb.com/kb/en/library/op timizing-table_open_cache/
This is MyISAM only table_cache scalability problem, InnoDB not affected.
See more details here: https://bugs.mysql.com/bug.php?id=49177
This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
Beware that open_files_limit (1024) variable
should be greater than table_open_cache (400)
Performance schema should be activated for better diagnostics
Performance schema shouldn't be activated for MariaDB 10.0 for performance i ssue
Before changing innodb_log_file_size and/or innodb_log_files_in_group read t his: https://bit.ly/2TcGgtU
Variables to adjust:
query_cache_size (=0)
query_cache_type (=0)
query_cache_size (> 16M)
join_buffer_size (> 128.0K, or always use indexes with JOINs)
table_open_cache (> 400)
performance_schema = ON enable PFS
performance_schema = OFF disable PFS
innodb_buffer_pool_size (>= 1.9G) if possible.
innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
innodb_buffer_pool_instances (=1)