SpaceCowboy

Well-Known Member
Jan 18, 2014
54
5
8
cPanel Access Level
Website Owner
Hi, i wonder if someone can help me figure if i can do better, load is a bit high when many users are on and i'f like to know if i can get better results by tweaking mysql settings, this is my log:
PS: If you need more info please tell me the location of the files and i'll post it cos i'm no expert.

Code:
]# perl mysqltuner.pl
>>  MySQLTuner 1.6.12 - Major Hayden <[email protected]>
>>  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] Currently running supported MySQL version 10.0.28-MariaDB
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics ---------------------------------------------                                     --------------------
[--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MEMORY +MRG_MyIS                                     AM +MyISAM +PERFORMANCE_SCHEMA
[--] Data in MyISAM tables: 2M (Tables: 18)
[--] Data in InnoDB tables: 219M (Tables: 92)
[!!] Total fragmented tables: 3

-------- Security Recommendations ----------------------------------------------                                     --------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned
[--] There are 605 basic passwords in the list.

-------- CVE Security Recommendations ------------------------------------------                                     --------------------
[OK] NO SECURITY CVE FOUND FOR YOUR VERSION

-------- Performance Metrics ---------------------------------------------------                                     --------------------
[--] Up for: 14d 14h 51m 16s (5B q [3K qps], 9M conn, TX: 3604G, RX: 1193G)
[--] Reads / Writes: 99% / 1%
[--] Binary logging is disabled
[--] Physical Memory     : 15.5G
[--] Max MySQL memory    : 22.3G
[--] Other process memory: 3.5G
[--] Total buffers: 1.3G global + 130.7M per thread (165 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 3.2G (20.47% of installed RAM)
[!!] Maximum possible memory usage: 22.3G (143.66% of installed RAM)
[!!] Overall possible memory usage with other process exceeded memory
[OK] Slow queries: 0% (145/5B)
[OK] Highest usage of available connections: 9% (15/165)
[OK] Aborted connections: 0.00%  (288/9860426)
[OK] Query cache is disabled by default due to mutex contention on multiprocesso                                     r machines.
[OK] Sorts requiring temporary tables: 0% (3K temp sorts / 2B sorts)
[!!] Joins performed without indexes: 19981
[OK] Temporary tables created on disk: 2% (45M on disk / 2B total)
[OK] Table cache hit rate: 34% (361 open / 1K opened)
[OK] Open file limit used: 1% (119/10K)
[OK] Table locks acquired immediately: 99% (9B immediate / 9B locks)

-------- ThreadPool Metrics ----------------------------------------------------                                     --------------------
[--] ThreadPool stat is enabled.
[--] Thread Pool Size: 8 thread(s).
[--] Using default value is good enough for your version (10.0.28-MariaDB)

-------- Performance schema ----------------------------------------------------                                     --------------------
[--] Performance schema is disabled.

-------- MyISAM Metrics --------------------------------------------------------                                     --------------------
[!!] Key buffer used: 20.6% (13M used / 67M cache)
[OK] Key buffer size / total MyISAM indexes: 64.0M/1.6M
[OK] Read Key buffer hit rate: 100.0% (57B cached / 15K reads)
[!!] Write Key buffer hit rate: 11.8% (1M cached / 1M writes)

-------- AriaDB Metrics --------------------------------------------------------                                     --------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B
[OK] Aria pagecache hit rate: 99.6% (9B cached / 42M reads)

-------- InnoDB Metrics --------------------------------------------------------                                     --------------------
[--] InnoDB is enabled.
[OK] InnoDB buffer pool / data size: 1.0G/219.2M
[OK] InnoDB buffer pool instances: 1
[OK] InnoDB Used buffer: 98.44% (64511 used/ 65535 total)
[OK] InnoDB Read buffer efficiency: 100.00% (360962777118 hits/ 360962795580 tot                                     al)
[!!] InnoDB Write Log efficiency: 79.29% (21999853 hits/ 27747616 total)
[OK] InnoDB log waits: 0.00% (0 waits / 5747763 writes)

-------- TokuDB Metrics --------------------------------------------------------                                     --------------------
[--] TokuDB is disabled.

-------- Galera Metrics --------------------------------------------------------                                     --------------------
[--] Galera is disabled.

-------- Replication Metrics ---------------------------------------------------                                     --------------------
[--] Galera Synchronous replication: NO
[--] No replication slave(s) for this server.
[--] This is a standalone server.

-------- Recommendations -------------------------------------------------------                                     --------------------
General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    Reduce your overall MySQL memory footprint for system stability
    Dedicated this server to your database for highest performance.
    Adjust your join queries to always utilize indexes
Variables to adjust:
  *** MySQL's maximum memory usage is dangerously high ***
  *** Add RAM before increasing MySQL buffer variables ***
    join_buffer_size (> 128.0M, or always use indexes with joins)
/etc/my.cnf file:
Code:
  GNU nano 2.0.9                           File: my.cnf

[mysqld]
performance-schema=0
max_connections=165
wait_timeout=14400
interactive_timeout=14400
query_cache_type=0
query_cache_limit=1M
query_cache_size=1M
join_buffer_size=128M
tmp_table_size=64M
max_heap_table_size=64M
thread_cache_size=4
table_open_cache=3000
max_allowed_packet=268435456
open_files_limit=10000
innodb_buffer_pool_size = 1024M
innodb_log_file_size = 256M
innodb_buffer_pool_instances=1
key_buffer_size = 64M
innodb_file_per_table
default-storage-engine=MyISAM
 

SysSachin

Well-Known Member
Aug 23, 2015
604
49
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

You could try implementing some of the advice suggested by the tuner:

-------- Recommendations ------------------------------------------------------- -------------------- : *** MySQL's maximum memory usage is dangerously high *** *** Add RAM before increasing MySQL buffer variables *** join_buffer_size (> 128.0M, or always use indexes with joins)
Then, let MySQL run for at least 24 hours, and run the tuner again to see if there's new advice.