Skip to main content

MySQL 5.6 Optimize help

Comments

4 comments

  • cPanelMichael
    Hello :) You may also want to run "mysqladmin processlist" to get a better idea of what databases are utilizing the most resources. Thank you.
    0
  • PPNSteve
    There are 3 active dbs on this server.. I know which one is using the most as its the primary site this server is hosting. (a large vB based forum community) mysqladmin processlist +---------+------------------+-----------+----------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time | State | Info | +---------+------------------+-----------+----------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+ | 5167934 | eximstats | localhost | eximstats | Sleep | 206 | | | | 5994796 | leechprotect | localhost | leechprotect | Sleep | 3330 | | | | 6014857 | pokecomm_dbadmin | localhost | pokecomm_vBold | Query | 0 | Sending data | SELECT userid, username, joindate, usergroupid, displaygroupid, lastactivity, posts FROM user WHERE | | 6014858 | pokecomm_dbadmin | localhost | pokecomm_vBold | Sleep | 0 | | | | 6014859 | root | localhost | | Query | 0 | init | show processlist | +---------+------------------+-----------+----------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
    just for fun, mytop output: MySQL on localhost (5.6.17-log) up 10+11:42:54 [20:13:13] Queries: 20.0 qps: 0 Slow: 0.0 Se/In/Up/De(%): 865933740/00/00/00 qps now: 0 Slow qps: 0.0 Threads: 6 ( 4/ 13) 33400/00/00/00 Key Efficiency: 100.0% Bps in/out: 0.0/ 0.1 Now in/out: 8.3/ 1.9k Id User Host/IP DB Time Cmd Query or State -- ---- ------- -- ---- --- ---------- 6015437 root localhost eximstats 0 Query show full processlist 6015628 pokecomm_ localhost pokecomm_v 0 Query SELECT userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid, IF(user.displayg 6015625 pokecomm_ localhost pokecomm_v 1 Query SELECT userid, username, joindate, usergroupid, displaygroupid, lastactivity, posts FROM user WHERE FROM_UNIXTIME(joindate, '%D %M') = FROM_UNIX 6015627 pokecomm_ localhost pokecomm_v 1 Query UPDATE user SET lastactivity = 1406837592 WHERE userid = 282170 5167934 eximstats localhost eximstats 19 Sleep 5994796 leechprot localhost leechprote 3451 Sleep
    0
  • triantech
    Try this and see if it helps, add the following line to /etc/my.cnf and restart the service. performance_schema = 0
    0
  • PPNSteve
    performance_schema is disabled by default IIRC and thus not ON currently
    0

Please sign in to leave a comment.