Bug #23834 Mysql crashes a few times a day
| Submitted: | 1 Nov 2006 12:04 | Modified: | 1 Nov 2006 17:49 |
|---|---|---|---|
| Reporter: | Cedric Anes | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 4.1.21 | OS: | pc-linux-gnu on i686 |
| Assigned to: | CPU Architecture: | Any |
[1 Nov 2006 12:04]
Cedric Anes
[1 Nov 2006 13:03]
Valeriy Kravchuk
Thank you for a problem report. Please, describe your hardware (how much RAM do you have), send your my.cnf content and the results of: getconf GNU_LIBPTHREAD_VERSION
[1 Nov 2006 13:46]
Cedric Anes
getconf GNU_LIBPTHREAD_VERSION => NPTL 2.3.4 Hardware: 2 Intel Xeon CPU with 4Gb RAM /* Begin of my.cnf */ [mysqld] safe-show-database ft_min_word_len=2 default-table-type=InnoDB default-character-set=utf8 default-collation=utf8_unicode_ci innodb_data_home_dir = /home/innodb/data/ innodb_data_file_path = ibdata0:1024M:autoextend innodb_log_group_home_dir = /home/innodb/logs/ set-variable = innodb_log_files_in_group=2 set-variable = innodb_log_file_size=128M set-variable = innodb_log_buffer_size=8M set-variable = innodb_buffer_pool_size=1640M set-variable = innodb_additional_mem_pool_size=64M innodb_flush_log_at_trx_commit=0 set-variable = innodb_lock_wait_timeout=50 set-variable = thread_concurrency=8 set-variable = thread_cache_size=64 set-variable = max_connections=600 set-variable = max_heap_table_size=512M set-variable = key_buffer_size=96M set-variable = join_buffer_size=96M set-variable = sort_buffer_size=96M set-variable = read_buffer_size=96M set-variable = table_cache=8192 set-variable = tmp_table_size=512M set-variable = max_allowed_packet=16M set-variable = query_cache_size=64M set-variable = query_cache_type=2 log-bin = /home/innodb/logs/logbin log-bin-index = /home/innodb/logs/logbin set-variable = max_binlog_size=128M log-slow-queries=/var/lib/mysql/slow.log [myisamchk] ft_min_word_len=2 /* End of my.cnf */
[1 Nov 2006 14:22]
Valeriy Kravchuk
With these settings: set-variable = max_connections=600 set-variable = max_heap_table_size=512M set-variable = key_buffer_size=96M set-variable = join_buffer_size=96M set-variable = sort_buffer_size=96M set-variable = read_buffer_size=96M set-variable = table_cache=8192 set-variable = tmp_table_size=512M You ofviously have out of memory issue with several dozens concurrent connections. Set all these buffers properly and check again.
[1 Nov 2006 14:55]
Cedric Anes
Do you have any recommandation for those settings ? Any help would be greatly appreciated. Thank you very much.
[1 Nov 2006 17:49]
Valeriy Kravchuk
Please, read the manual. Namely: http://dev.mysql.com/doc/refman/4.1/en/memory-use.html and http://dev.mysql.com/doc/refman/4.1/en/server-system-variables.html.
[1 Nov 2006 17:51]
Valeriy Kravchuk
http://dev.mysql.com/doc/refman/4.1/en/innodb-parameters.html (and all the pages about InnoDB) will be, surely, also useful to you.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.