MySQL Forums
Forum List  »  Performance

MySQL Server crashes - spawning too many threads.
Posted by: Erin ONeill
Date: July 28, 2005 01:24PM

Could be something I tweaked?? Or could be something I didn't tweak and should have! I did find out that interactive_timeout set to the default could cause this problem on occassion (but not in which version of MySQL). My interactive_timeout had been reset to the default.

I do NOT have access to the box except thru phpMyAdmin (we're working on this). two nites ago it crashed with the same error but it was made to sound like an OS error and not a database error at the time. I checked the stats that I had taken and nothing but Aborted Client connections seemed strange (and they've been high for a week and a half).

The query caching has been set back to being low and should be tweaked but I'd rather have the server stable first.

here's the nitty gritty details:

Mysql 4.0.20 ONLY is running on a dual processer box with 2 cpus and 4GB ram. Supposedly MySQL only uses about half the RAM. At the moment most of the tables are MyISAM. I've been working on the slow queries. The box was rebooted about 10 days ago for a resaon separate from MySQL.


Any help will be greatly appreciated!

erin

show variables says this:

back_log 50
basedir /usr/local/mysql-max-4.0.20-pc-linux-i686/
bdb_cache_size 8388600
bdb_log_buffer_size 634880
bdb_home /var/lib/mysql/
bdb_max_lock 10000
bdb_logdir
bdb_shared_data OFF
bdb_tmpdir /tmp/
bdb_version Sleepycat Software: Berkeley DB 3.2.9a: (May 14, 2...
binlog_cache_size 32768
bulk_insert_buffer_size 8388608
character_set latin1
character_sets latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis...
concurrent_insert ON
connect_timeout 5
convert_character_set
datadir /var/lib/mysql/
default_week_format 0
delay_key_write ON
delayed_insert_limit 100
delayed_insert_timeout 300
delayed_queue_size 1000
flush OFF
flush_time 0
ft_boolean_syntax + -><()~*:""&|
ft_min_word_len 4
ft_max_word_len 254
ft_max_word_len_for_sort 20
ft_stopword_file (built-in)
have_bdb YES
have_crypt YES
have_innodb YES
have_isam YES
have_raid YES
have_symlink YES
have_openssl NO
have_query_cache YES
init_file
innodb_additional_mem_pool_size 1048576
innodb_buffer_pool_size 8388608
innodb_data_file_path ibdata1:10M:autoextend
innodb_data_home_dir
innodb_file_io_threads 4
innodb_force_recovery 0
innodb_thread_concurrency 8
innodb_flush_log_at_trx_commit 1
innodb_fast_shutdown ON
innodb_flush_method
innodb_lock_wait_timeout 50
innodb_log_arch_dir ./
innodb_log_archive OFF
innodb_log_buffer_size 1048576
innodb_log_file_size 5242880
innodb_log_files_in_group 2
innodb_log_group_home_dir ./
innodb_mirrored_log_groups 1
innodb_max_dirty_pages_pct 90
interactive_timeout 100
join_buffer_size 2097152
key_buffer_size 402653184
language /usr/local/mysql-max-4.0.20-pc-linux-i686/share/my...
large_files_support ON
license GPL
local_infile ON
locked_in_memory OFF
log OFF
log_update OFF
log_bin OFF
log_slave_updates OFF
log_slow_queries ON
log_warnings ON
long_query_time 2
low_priority_updates OFF
lower_case_file_system OFF
lower_case_table_names 0
max_allowed_packet 10484736
max_binlog_cache_size 4294967295
max_binlog_size 1073741824
max_connections 350
max_connect_errors 100
max_delayed_threads 20
max_insert_delayed_threads 20
max_heap_table_size 16777216
max_join_size 18446744073709551615
max_relay_log_size 0
max_seeks_for_key 4294967295
max_sort_length 1024
max_user_connections 0
max_tmp_tables 32
max_write_lock_count 4294967295
myisam_max_extra_sort_file_size 268435456
myisam_max_sort_file_size 2147483647
myisam_repair_threads 1
myisam_recover_options OFF
myisam_sort_buffer_size 33554000
net_buffer_length 16384
net_read_timeout 30
net_retry_count 10
net_write_timeout 60
Variable_name Value
new OFF
open_files_limit 2890
pid_file /var/run/mysqld/mysqld.pid
log_error
port 3306
protocol_version 10
query_alloc_block_size 8192
query_cache_limit 2097152
query_cache_size 163580000
query_cache_type ON
query_prealloc_size 8192
range_alloc_block_size 2048
read_buffer_size 2097152
read_only OFF
read_rnd_buffer_size 2097152
rpl_recovery_rank 0
server_id 0
slave_net_timeout 3600
skip_external_locking ON
skip_networking OFF
skip_show_database OFF
slow_launch_time 2
socket /var/lib/mysql/mysql.sock
sort_buffer_size 2097200
sql_mode 0
table_cache 1240
table_type MYISAM
thread_cache_size 96
thread_stack 196608
tx_isolation REPEATABLE-READ
timezone PDT
tmp_table_size 41943040
tmpdir /tmp/
transaction_alloc_block_size 8192
transaction_prealloc_size 4096
version 4.0.20-max-log
version_comment Official MySQL-max binary
version_compile_os pc-linux
wait_timeout 20

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

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.