Disable Performance Schema On Newer MySQL
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.
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
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?

Can not do this before Monday :-( I should have written "should be" disabled ;-) Most users will not use it :-)
ah I see, it seems I skipped that part. I'm sorry mate :smile:
By default, performance schema should be disabled.
ee debug should turn it on and off during debugging.
@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...
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.
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.