Naila

Member
Jun 20, 2017
15
0
1
Indonesia
cPanel Access Level
Root Administrator
One of my server have low server load just about 1.xx to 2.xx max, but wordpress site run slow, maybe someone have suggestion what should code need to increase in my.cnf ? Dedicated server only for one medium wp site. I see from mysqltuner get limit like Thread cache hit etc.

Access WHM => Restart Services » SQL Server (MySQL) about 5 minutes, other whm menu just 4 sec.


-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 39m 23s (1M q [765.257 qps], 2K conn, TX: 2G, RX: 204M)
[--] Reads / Writes: 99% / 1%
[--] Binary logging is disabled
[--] Physical Memory : 31.1G
[--] Max MySQL memory : 20.9G
[--] Other process memory: 0B
[--] Total buffers: 19.5G global + 2.9M per thread (500 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B

[OK] Maximum reached memory usage: 19.5G (62.78% of installed RAM)
[OK] Maximum possible memory usage: 20.9G (67.26% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: 0% (0/1M)
[OK] Highest usage of available connections: 1% (9/500)
[OK] Aborted connections: 0.04% (1/2625)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
[OK] Sorts requiring temporary tables: 0% (11 temp sorts / 93K sorts)
[OK] No joins without indexes
[!!] Temporary tables created on disk: 55% (21K on disk / 38K total)
[OK] Thread cache hit rate: 99% (9 created / 2K connections)
[OK] Table cache hit rate: 97% (291 open / 297 opened)
[OK] table_definition_cache(9086) is upper than number of tables(409)
[OK] Open file limit used: 0% (238/236K)
[OK] Table locks acquired immediately: 99% (1M immediate / 1M locks)



-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 68.1% (91M used / 134M cache)
[OK] Key buffer size / total MyISAM indexes: 128.0M/225.3M
[OK] Read Key buffer hit rate: 100.0% (202M cached / 65K reads)
[OK] Write Key buffer hit rate: 97.5% (4K cached / 4K writes)

-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 0
[OK] InnoDB File per table is activated
[OK] InnoDB buffer pool / data size: 19.0G/126.0M
[OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 2.0G * 2/19.0G should be equal to 25%
[OK] InnoDB buffer pool instances: 19
[--] Number of InnoDB Buffer Pool Chunk : 152 for 19 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: 99.88% (6703574 hits/ 6711932 total)
[!!] InnoDB Write Log efficiency: 198.66% (296 hits/ 149 total)
[OK] InnoDB log waits: 0.00% (0 waits / 445 writes)

Current my.cnf config

Code:
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d

[mysqld]
log-error=/var/lib/mysql/servermysqlsystem.err

max_connections=500
performance-schema=0
default-storage-engine=InnoDB

#max_allowed_packet=268435456
open_files_limit=236340
sql_mode=""

skip-external-locking

query_cache_size = 0
query_cache_type = 0

## Table and TMP settings
max_heap_table_size      = 256M
tmp_table_size           = 256M
table_open_cache          = 78780
table_definition_cache   = 9086

wait_timeout         = 60
#interactive_timeout  = 60
connect_timeout      = 60

### InnoDB Plugin Independent Settings ###
innodb_file_per_table           = 1
innodb_log_file_size            = 2G
innodb_buffer_pool_size         = 19G   #global buffer
#innodb_log_buffer_size         = 256M  #global buffer
innodb_lock_wait_timeout        = 90  
#innodb_flush_log_at_trx_commit = 2
innodb_flush_method             = O_DIRECT     #O_DIRECT = local/DAS, O_DSYNC = SAN/iSCSI
skip-innodb-doublewrite

innodb_buffer_pool_instances = 19
innodb_stats_on_metadata=0

## MyISAM Engine
key_buffer_size           = 1G      #global buffer
myisam_sort_buffer_size   = 512M    #index buffer size for creating/altering indexes
myisam_max_sort_file_size = 512M    #max file size for tmp table when creating/alering indexes
myisam_repair_threads     = 4       #thread quantity when running repairs
myisam_recover            = BACKUP  #repair mode, recommend BACKUP

max_allowed_packet =268435456
[mysqldump]
quick
max_allowed_packet = 1024M
 

Naila

Member
Jun 20, 2017
15
0
1
Indonesia
cPanel Access Level
Root Administrator
Hi @Naila

Did you have a chance to re-run the MySQL Tuner?
Hi @cPanelLauren

Current result:

Code:
[[email protected] ~]# ./mysqltuner.pl
 >>  MySQLTuner 1.7.19 - 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.3.19-MariaDB
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
[--] Data in MyISAM tables: 1.4G (Tables: 80)
[--] Data in InnoDB tables: 127.9M (Tables: 76)
[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 is no basic password file list!

-------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined

-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 9h 5m 44s (32M q [977.561 qps], 54K conn, TX: 68G, RX: 3G)
[--] Reads / Writes: 99% / 1%
[--] Binary logging is disabled
[--] Physical Memory     : 31.1G
[--] Max MySQL memory    : 20.9G
[--] Other process memory: 0B
[--] Total buffers: 19.5G global + 2.9M per thread (500 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 19.9G (64.08% of installed RAM)
[OK] Maximum possible memory usage: 20.9G (67.26% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: 0% (416/32M)
[OK] Highest usage of available connections: 30% (151/500)
[OK] Aborted connections: 0.01%  (5/54759)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
[OK] Sorts requiring temporary tables: 0% (225 temp sorts / 2M sorts)
[!!] Joins performed without indexes: 155
[!!] Temporary tables created on disk: 56% (462K on disk / 815K total)
[OK] Thread cache hit rate: 99% (151 created / 54K connections)
[OK] Table cache hit rate: 99% (863 open / 869 opened)
[OK] table_definition_cache(9086) is upper than number of tables(421)
[OK] Open file limit used: 0% (597/236K)
[OK] Table locks acquired immediately: 99% (32M immediate / 32M locks)

-------- Performance schema ------------------------------------------------------------------------
[--] Performance schema is disabled.
[--] Memory used by P_S: 0B
[--] Sys schema is installed.

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

-------- MyISAM Metrics ----------------------------------------------------------------------------
[OK] Key buffer used: 94.9% (127M used / 134M cache)
[OK] Key buffer size / total MyISAM indexes: 128.0M/231.6M
[OK] Read Key buffer hit rate: 100.0% (3B cached / 100K reads)
[!!] Write Key buffer hit rate: 25.7% (374K cached / 95K writes)

-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 0
[OK] InnoDB File per table is activated
[OK] InnoDB buffer pool / data size: 19.0G/127.9M
[OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 2.0G * 2/19.0G should be equal to 25%
[OK] InnoDB buffer pool instances: 19
[--] Number of InnoDB Buffer Pool Chunk : 152 for 19 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% (456846882 hits/ 456855345 total)
[!!] InnoDB Write Log efficiency: 63.97% (26997 hits/ 42202 total)
[OK] InnoDB log waits: 0.00% (0 waits / 15205 writes)

-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B
[OK] Aria pagecache hit rate: 99.5% (91M cached / 461K 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: MIXED
[--] XA support enabled: ON
[--] Semi synchronous replication Master: OFF
[--] Semi synchronous replication Slave: OFF
[--] This is a standalone server

-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
    MySQL was started within the last 24 hours - recommendations may be inaccurate
    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
    We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
             See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
             (specially the conclusions at the bottom of the page).
    Temporary table size is already large - reduce result set size
    Reduce your SELECT DISTINCT queries without LIMIT clauses
    Performance schema should be activated for better diagnostics
Variables to adjust:
    join_buffer_size (> 256.0K, or always use indexes with JOINs)
    performance_schema = ON enable PFS