easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Disable Performance Schema On Newer MySQL

Open duajanuari opened this issue 12 years ago • 8 comments

Hello, I noticed that newer easy engine using MySQL 5.6 (percona). I'd like to see/discuss about performance schema option. In default settings, performance_schema is turned on, I don't know about what it will benefit, but it seems it consume more RAM than it should. For comparison on my 1 GB RAM VPS, mysqld using about 500MB RAM, while turning off performance schema under [mysqld] it consume only half of it.

note: there is only one wordpress site with only almost no visitor when I do this comparison.

duajanuari avatar Oct 19 '14 08:10 duajanuari

According to http://www.percona.com/blog/2014/02/11/performance_schema-vs-slow-query-log/ and http://www.percona.com/resources/mysql-webinars/using-mysql-56-performance-schema-troubleshoot-typical-workload-bottlenecks it should be turned off by default as it is for analysis ;-)

Kind regards

solhuebner avatar Oct 19 '14 08:10 solhuebner

Here's my htop and mysql variables on ee default install with only one site setup ee site create example.com --w3tc it seems still turned on. would you kindly check yours?

mysql mysql-var

duajanuari avatar Oct 19 '14 08:10 duajanuari

Can not do this before Monday :-( I should have written "should be" disabled ;-) Most users will not use it :-)

solhuebner avatar Oct 19 '14 09:10 solhuebner

ah I see, it seems I skipped that part. I'm sorry mate :smile:

duajanuari avatar Oct 19 '14 09:10 duajanuari

By default, performance schema should be disabled.

ee debug should turn it on and off during debugging.

rahul286 avatar Oct 21 '14 20:10 rahul286

@rahul286

ee debug should turn it on and off during debugging.

O_O[[email protected]:~]# mysql -e "set global performance_schema = 'ON';"
ERROR 1238 (HY000) at line 1: Variable 'performance_schema' is a read only variable

It seems like we need to restart MySQL to change its value which is not a good idea...

gau1991 avatar Oct 30 '14 11:10 gau1991

It seems like we need to restart MySQL to change its value which is not a good idea...

Point noted. I will check what @RakshitThakker has to say about this.

rahul286 avatar Oct 30 '14 12:10 rahul286

We are closing this for now.

Let's see how this affects after moving to MariaDB - https://github.com/rtCamp/easyengine/issues/362

Also on MariaDB, performance schema will be disabled by default.

rahul286 avatar Dec 16 '14 10:12 rahul286