MySQL Forums
Forum List  »  Performance

Re: High memory usage on mysql 5.7.18 running on ubuntu server 16.04
Posted by: Øystein Grøvlen
Date: June 22, 2017 01:59AM

Hi,

Note that in MySQL 5.7, performance schema contains information about memory usage within MySQL. Take a look at the tables describe in:

https://dev.mysql.com/doc/refman/5.7/en/memory-summary-tables.html

To get a summary of current usage you can use a sys schema view:
select * from sys.memory_global_by_current_bytes;

Note that you first need to enable the collection of memory statistics using this statement:

UPDATE performance_schema.setup_instruments
SET enabled = 'YES'
WHERE name LIKE 'memory/%';

Hope this helps,

Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: High memory usage on mysql 5.7.18 running on ubuntu server 16.04
910
June 22, 2017 01:59AM


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.