Note that there are some explanatory texts on larger screens.

plurals
  1. POMySQL - Out of memory error
    primarykey
    data
    text
    <p>Recently I've found "out of memory" errors in the MySQL error log, but the host machine still has enough physical memory and swap space according to <code>free -k</code>:</p> <pre><code> total used free shared buffers cached Mem: 4087156 3842396 244760 0 615840 2031416 -/+ buffers/cache: 1195140 2892016 </code></pre> <blockquote> <p>[ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space</p> </blockquote> <p>I've afraid that there is a MySQL bug that is causing a memory leak.</p> <p>Will the memory usage of MySQL grow dynamically? If yes, what factor or event will cause MySQL to allocate more memory? Any possible impact when there is not enough memory for MySQL and how to avoid it?</p> <p>Here is the machine configuration: OS Linux 2.6.18-128.el5PAE i386</p> <p>MySQL Server version: 5.0.50-enterprise-gpl-log MySQL Enterprise Server (GPL)</p> <p>/etc/my.cnf:</p> <pre><code>[mysqld] port = 3306 socket = /tmp/mysql.sock datadir = /opt/mysql skip-locking key_buffer = 1G max_allowed_packet = 2M table_cache = 256 sort_buffer_size = 1M read_buffer_size = 2M read_rnd_buffer_size = 8M myisam_sort_buffer_size = 64M thread_cache = 32 query_cache_size= 32M thread_concurrency = 16 max_heap_table_size = 1G auto_increment_increment = 10 auto_increment_offset = 1 server-id = 20 log-warnings log-slow-queries skip-innodb skip-slave-start core-file </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload