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


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

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

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.