Kubuntu distributive 16.04 with the latest updates. The situation is as follows: apache and mysql are running on the desktop for development. Periodically, a C ++ program accesses mysql data. Basically select queries and them a little. Apache is kept for testing web parts and phpmyadmin. Worth 4GB of RAM, x84. 4 main databases with minimal fields and tables. However, mysql eats from 500mb to 1GB of RAM during idle time. How can I reduce this consumption? my.conf is standard, I quote it:
# # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "~/.my.cnf" to set user-specific options. # # One can use all long options that the program supports. # Run program with --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # For explanations see # http://dev.mysql.com/doc/mysql/en/server-system-variables.html # # * IMPORTANT: Additional settings that can override those from this file! # The files must end with '.cnf', otherwise they'll be ignored. # !includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mysql.conf.d/ Conclusion:
$ sudo ls /etc/mysql/conf.d mysql.cnf mysqldump.cnf $ sudo ls /etc/mysql/mysql.conf.d mysqld.cnf mysqld_safe_syslog.cnf To write everything else is frankly lazy, if necessary - write.