Optimize MySQL for Low Memory Use

MySQL LogoMySQL is a light database engine compared to many of it’s rivals, but for some reason the Debian MySQL-server package contains a setup that makes it very heavy and memory consuming. The Debian version of becomes memory consuming because it comes with config file where MySQL’s most memory consuming and seldom used storage engine InnoDB is enable. As result of this the MySQL server instance uses around 100MB of memory while almost idle.

And here comes the optimization tip.

Since the InnoDB storage engine is used very seldom it can be disable in most cases and let the server save almost about 100MB of memory.

To disable to InnoDB storage engine add this to my.cnf (the default MySQL configuration files) in /etc/mysql/
skip-innodb

More on MySQL and Apache optimization and here

Related posts:

  1. MySQL Optimization and Performance Tips
  2. Optimize MySQL Performance With MySQLTuner
  3. Howto: How to Reset the MySQL Root Password
  4. MDB Tools to export (migrate) from mdb (Microsoft Access format) to MySQL
  5. Slow Query Log Analyzes Tools
  6. Sun acquires MySQL
  7. WSJ: Sun to Use Flash Memory in Servers
  8. WSJ: Sun to Use Flash Memory in Servers
  9. MySQL Performance Monitoring and Optimization Tools
  10. Compressing mysqldump output – mysql, gzip, bzip2 and LZMA (7z)

Popular Related Items »

5 Comments »

  1. Michael said,

    March 22, 2007 @ 20:40

    Hello,

    Thank you for a great tip

  2. Michael said,

    March 22, 2007 @ 21:13

    It really works and saves a lot of my database server’s memory

  3. Freddy Andersen said,

    June 15, 2008 @ 7:23

    “Since the InnoDB storage engine is used very seldom it can be disable in most cases and let the server save almost about 100MB of memory.”

    I have NO! idea where you got that piece of information from?? What other enterprise/production ready storage engine would you use? MyISAM? I can see someone would want to disable Innodb if they have a very low memory footprint and that would be a good solution… but very seldom used engine!?!?

    MyIsam, Innodb, Falcon, Memory and cluster(ndb) is the most used and Innodb is currently at the top of the list of most used engines.

  4. Tuning MySQL for low memory: disable InnoDB « Cursing and Recursing said,

    January 15, 2009 @ 22:09

    [...] to .bootstrap for the [...]

  5. ????????MySQL | small finds said,

    June 20, 2009 @ 22:46

    [...] Optimize Mysql for Low Memory Use [...]

RSS feed for comments on this post · TrackBack URI

Leave a Comment