June 18, 2013

Post: 10+ Ways to Crash or Overload MySQL

… is to get enough memory allocated to get to address space limit and MySQL will crash when one of internal memory allocations would unexpectedly… like MySQL tries to make server bullet proof if somebody tries to break it intensionally – most of the limits, such as max_heap_table_size or max_prepared_stmt_count are designed to protect…

Post: TMP_TABLE_SIZE and MAX_HEAP_TABLE_SIZE

… enough as MySQL also looks at max_heap_table_size variable and uses lower value as a limit to for in memory temporary table…://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html MEMORY table contents are stored in memory, which is a property that MEMORY….mysql.internal +7 -0 BUG #4291: max_heap_table_size affects creation of disk-based temporary table fix: the new system variable memory

Post: Can't Create Thread: Errno 11 (A Tale of Two Ulimits)

… thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent… down MySQL (Percona Server)… SUCCESS! Starting MySQL (Percona Server).. SUCCESS! [~] (root@revolution 23:59:45)# cat /proc/`pidof mysqld`/limits | egrep “(processes|files)” Max

Post: Identifying the load with the help of pt-query-digest and Percona Server

…the right way. But vanilla MySQL does have its limitations, it reports only a …memory. What it says though is that, if this query would run on a cold MySQL…03:10 # Attribute pct total min max avg 95% stddev median # ============ === ======= ======= ======= ======= ======= ======= ======= # Count 1 312…

Post: MySQL Server Memory Usage

memory needed for OS, File Cache and other applications. For 32bit envinronment you also should keep 32bit limits into account and probably limit… Virtual Memory allocated by MySQL process. You can also look at “Resident Memory” …to 4MB and 1000 max_connections increases peak memory consumption just …

Post: Evaluating IO subsystem performance for MySQL Needs

…significant amounts of memory (or reducing amount of usable memory). The …MySQL. To prepare small 128MB single file working set we can use the following command: [root@DB10 sysbench]# ./sysbench –test=fileio –max…read test Threads started! Time limit exceeded, exiting… Done. Operations performed: …

Post: InnoDB Flushing: a lot of memory and slow disk

… time (minutes). This comes from the fact that MySQL performs changes in memory at a faster rate than it can write to… work, as MySQL is not able to keep the number of dirty pages within the given innodb_max_dirty_pages_pct limit. Another… with changes in memory, we need to have a throttling mechanism that will limit the rate of changes in memory. Optimize the flushing…

Post: MySQL Server Variables - SQL layer or Storage Engine specific.

… was MyISAM for disk tables and HEAP for in memory tables. So first MySQL versions did not bother naming variables with storage… still have some tables in MyISAM format in “mysql” database. Plus HEAP/MEMORY tables are used for temporary tables which may become… the disk ft_boolean_syntax, ft_max_word_len, ft_min_word_len, ft_query_expansion_limit, ft_stopword_file FullText search…

Post: Performance Schema tables stats

… Schema was mainly in memory workload and against single tables. Now …_DELETE: 0 AVG_TIMER_DELETE: 0 MAX_TIMER_DELETE: 0 *************************** 3. row *************************** OBJECT…IO mysql> select * from file_summary_by_instance order by COUNT_READ desc limit 6G *************************** …

Post: Talking MySQL to Sphinx

… try is GROUP BY – Sphinx executes GROUP BY in fixed memory which means results may be approximate – this is geared towards… mysql> select max(forum_id) as m,author_id as a from sptest group by author_id order by m desc limit 10…) MySQL mysql> select max(forum_id) as m,author_id as a from sptest group by author_id order by m desc limit 10…