MySQL Forums
Forum List  »  Performance

Re: High memory usage on mysql 5.6.36-log on linux server
Posted by: Peter Brawley
Date: January 25, 2018 09:02AM

Not a very busy or huge system but some settings are high enough to require swapping, not good. No reboots or settings changes in 9 months, wow. Let's see the result of ...

show variables;

and let's see the result of ...

select 
  engine,
  concat(round(sum(table_rows)/1000000,2),'m') rows, 
  concat(round(sum(data_length)/(1024*1024*1024),2),'g') data, 
  concat(round(sum(index_length)/(1024*1024*1024),2),'g') idx, 
  concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'g') 
  total_size, 
  round(sum(index_length)/sum(data_length),2) idxfrac 
from information_schema.tables 
group by engine;

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.