Hello,
After an upgrade from MySQL 5.5 to Percona MySQL 5.7, I noticed that the usage of the RAM never goes down and MySQL always finished by using all the RAM of the server which crashed. Here some logs before the crash:
The example is based on a small server but I have big servers facing the same issue. What I found is that Percona MySQL 5.7 seems to nerver release RAM until it crashes (as shown on the graph).
I have read many information about the innodb_buffer_pool_size or on how MySQL is using the RAM but none of this helped me to get a stable system.
Any advise or information is more than welcome.
Hello, sorry to hear that. Could you just provide a few more details please:
[LIST]
[]What are the OS and environment details please?
[]What specific version of Percona Server for MySQL 5.7 are you running? And if possible what specific version of 5.5?
[*]Did you follow a particular process i.e. is there a link somewhere to the upgrade method you followed? We’d expect you to step through the versions in your updates.
[/LIST] A couple of the docs I found online suggested disk problems, but from what you are saying this is happening to you with more than one server. Could you confirm that please? Thanks!
Hello,
Thank you for the fast answer. Here the details you asked:
[LIST]
[]OS is Ubuntu 16.04 VM 4 CPUs, 4GB RAM, MySQL takes 18GB on a 40GB SSD. The VM is dedicated to MySQL
[]Percona is 5.7.19-17 but I’ve seen the same issue on 5.7.22-22. Before, it was a MySQL 5.5.60 on Ubuntu 14.04
[*]The processs is just to bring the MySQL dump from 5.5 to 5.7. We changed the server during the process (Percona was a fresh installation)
[/LIST]
Yes, I’m facing the same issue in several servers with different sizes as well. I tested the disk and in average I have 1GB/s.
Therefore, I think it might be due to a deadly cocktail of not well setup variables as I’m seeing a lot of logs like:
[Note] InnoDB: page_cleaner: 1000ms intended loop took 4057ms. The settings might not be optimal. (flushed=4, during the time.)
But even playing with variables like lru_scan_depth nothing changed.
OK, first I’d advise caution since it seems like you might not be following the prescribed upgrade path so please be sure to take all the steps necessary to secure your data. There is a blog post that covers upgrades, you can substitute the version 57 into the links (it’s an older blog post) to get to the right MySQL manual pages for example
I know that’s not where you are, but I need to state that to help future posters too! Plus reviewing these might help identify potential incompatibilities that you need to address.
Take a look at these suggestions and see if any of them help? If you are still struggling it is possible that the support needed is very specific to your case and falls outside of what we can provide via the open source forum, BUT let’s see how you get on first…
Thank you for your answer.
I went through the documentation and regarding the upgrade in our case we transfer only our data, we do not touch the system tables and we recreat our tables from scratch.
Furthermore, our new servers (preinstalled with Percona 5.7.22-22) are also impacted with this RAM usage so I guess the issue might only be link to 5.7 and not to the upgrade.
As you can see on the screenshot, we have this new server with a really small DB (20GB) which is using more than 6GB of RAM when InnoDB is set at 3GB.
What also intrigues me is why MySQL does not release a bigger amount of RAM when it is not heavily used.
Disabling the performance schema did help but still our 5.7 servers are hogging a lot of RAM. I have seen on some servers that the table innodb_index_stats contains wrong information which led to error logs like:
[Note] InnoDB: Ignoring strange row from mysql.innodb_index_stats WHERE database_name = ‘db’ AND table_name = ‘tab’ AND index_name = ‘PRIMARY’ AND stat_name = ‘n_diff_pfx02’; because stat_name is out of range, the index has 1 unique columns"
Have you been able to gather information regarding my current issue ?
If you need any specific information that could help to troubleshoot I can gather it.
Hi ebutonto date I’ve not had anything back from our tech team.
This is usually because the scope of the question goes beyond what they’re able to answer in the context of a ‘free’ open source forum. The feedback that I gave on 9/11 comes into play here.
In other words, there’s not a simple answer if those responses did not help you. To identify and resolve the issues would require a more direct engagement and access to your systems.
I don’t know your situation, but I can put you in touch with someone who can talk to you about our professional services options if you would like me to.