MySQL Forums
Forum List  »  Performance

Re: High memory usage on mysql 5.7.18 running on ubuntu server 16.04
Posted by: Peter Brawley
Date: June 19, 2017 02:12AM

Seems to me if a bug were responsible for this, thousands of installations with much bigger demands would be inoperable. Looks more likely to be due to slow queries running into resource walls. I'd turn on the slow query log to find the slow queries, and optimise them.

What's the result of ...

select
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
where engine = 'innodb';

Options: ReplyQuote




Sorry, only registered users may post in this forum.

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.