Hmmmm ... really? Nothing stands out or useful info from tuner?
[OK] Maximum reached memory usage: 342.1M (1.45% of installed RAM)
[OK] Maximum possible memory usage: 752.7M (3.20% of installed RAM)
Server not using much memory for DB is it - could use more!!!
But ... A Biggy:
[!!] InnoDB buffer pool / data size: 128.0M/40.8G
Your DB has 40.8 Gig of data, but server buffer pools configured to use only 128Megs.
That's got to translate as DB slow - which then translates to site slow .. in certain areas.
Pay attention to the !! in this section:
-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 0
[OK] InnoDB File per table is activated
[!!] InnoDB buffer pool / data size: 128.0M/40.8G
[!!] 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: 94.19% (78517692 hits/ 83359832 total)
[!!] InnoDB Write Log efficiency: 83.06% (51791 hits/ 62350 total)
[OK] InnoDB log waits: 0.00% (0 waits / 10559 writes)
Be sure to read and understand the recommendations Tuner makes at the end:
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
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
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 (16364) variable
should be greater than table_open_cache (2000)
Performance schema should be activated for better diagnostics
Consider installing Sys schema from https://github.com/mysql/mysql-sys
** Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: http://bit.ly/2wgkDvS
Variables to adjust:
query_cache_size (=0)
query_cache_type (=0)
query_cache_size (> 16M)
join_buffer_size (> 256.0K, or always use indexes with JOINs)
table_open_cache (> 2000)
performance_schema = ON enable PFS
** innodb_buffer_pool_size (>= 40.8G) 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)
Is this from production server or clone? Clone won't tell you much as far as traffic.
It's ok to run tuner on production as well. Just don't do any of the recommended tweaks without some research.
Important on production server:
[OK] Highest usage of available connections: 3% (5/151)
[OK] Aborted connections: 0.77% (5/648)
The first, on production server, might show a number higher than 151 - has to do with concurrent connections to the DB. Server your size/usage might have more than 150 users on it at one time - which then makes the second .. Aborted connections ... an indication of user problems.
The top command ... one is interested in the 'top' of 'top' for memory usage:- the following from an 8Git Memory box.
top - 15:37:28 up 32 days, 17:19, 1 user, load average: 0.00, 0.01, 0.05
Tasks: 145 total, 2 running, 143 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.1 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8004216 total, 366352 free, 1468188 used, 6169676 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5722852 avail Mem
Notice it isn't using SWAP space ... example above NOT a true production server in use all the time but a sandbox. Your production server was using some SWAP ... hard to make out how much with that you shared.
The rest of the display of top shows realtime ... what process kicks in and goes to the top of all the processes which means it's using the most memory.
The one that says mysqld is your DB server.
Are you using Solr Search? Then one will see Java ... another biggy memory wise ... how about document conversions?
Now a caution ... while DB servers run best when it can load the DB into memory - 80% - one might be able to attain that on a dedicated DB server ... not one that is also the web service. Memory tweaking for an all in one box becomes a balancing act between Apache web service and MySQLD.
Bottom line on an all in one ... no can give you values here in forums. Get the DB to use as much memory as it can AND yet have enough to run other services server needs to run + (and a biggy) enough Apache clients to handle connections by students.
Clear as mud, huh? :|
'spirit of sharing', Ken