Hi everyone,
I am having problems with my php+mysql driven site, running on a freebsd
box. Mysql tends to lock up once-twice a day (or even more) and stop
responding to queries.
OS is:
# uname -rs
FreeBSD 4.6.2-RELEASE
Database is:
mysql-standard-4.0.6-gamma-unknown-freebsd4.7-i386, binary downloaded
from mysql.com site. I have tried with both 3.x and 4.x versions, and
get almost the same results.. I even think that the 3.x locks up more
frequently, so I continued to use 4.x, even in this beta or whatever state..
PHP Version 4.2.3, Apache/1.3.26
Hardware info:
Intel Pentium III 900mhz, 256MB sdram, 2x40GB hdd raid, mirroring, ultra
ata 100..
One site running, and it just cannot handle the load sometimes. When
there are more than 150 visitors online, locks up and doesnt start
responding even when everything's back to normal.
A few minutes ago a have seen one such lockup myself, the top entry
shows this:
9848 mysql -6 0 151M 26300K biord 2:17 0.63% 0.63% mysqld
And both apache and mysql were not responding any more..
I would really appreciate some help / hints on how to solve this issue.
If you need any more information about the system configuration, please ask!
Show variables output follows..
Thanks,
-Gojko
....
SQL-query :
SHOW VARIABLES
Variable_name Value
back_log 50
basedir /usr/local/mysql-standard-4.0.6-gamma-unknown-freebsd4.7-i386/
binlog_cache_size 32768
bulk_insert_buffer_size 8388608
character_set latin1
character_sets latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620
ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew
win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257
latin5
concurrent_insert ON
connect_timeout 5
convert_character_set
datadir /usr/local/mysql/data/
delay_key_write ON
delayed_insert_limit 50
delayed_insert_timeout 300
delayed_queue_size 1000
flush OFF
flush_time 0
ft_min_word_len 4
ft_max_word_len 254
ft_max_word_len_for_sort 20
ft_boolean_syntax + -><()~*:""&|
have_bdb NO
have_innodb YES
have_isam YES
have_raid NO
have_symlink NO
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 0
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
interactive_timeout 28800
join_buffer_size 131072
key_buffer_size 10485760
language
/usr/local/mysql-standard-4.0.6-gamma-unknown-freebsd4.7-i386/share/mysql/english/
large_files_support ON
local_infile ON
log OFF
log_update OFF
log_bin OFF
log_slave_updates OFF
log_slow_queries ON
log_warnings OFF
long_query_time 5
low_priority_updates OFF
lower_case_table_names OFF
max_allowed_packet 1048576
max_binlog_cache_size 4294967295
max_binlog_size 1073741824
max_connections 1000
max_connect_errors 10
max_delayed_threads 20
max_heap_table_size 16777216
max_join_size 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_recover_options OFF
myisam_sort_buffer_size 8388608
net_buffer_length 16384
net_read_timeout 30
net_retry_count 1000000
net_write_timeout 60
open_files_limit 0
pid_file /usr/local/mysql/data/es.verat.net.pid
port 0
protocol_version 10
read_buffer_size 2093056
read_rnd_buffer_size 262144
rpl_recovery_rank 0
query_cache_limit 1048576
query_cache_size 20971520
query_cache_type ON
server_id 0
slave_net_timeout 3600
skip_external_locking ON
skip_networking ON
skip_show_database OFF
slow_launch_time 2
socket /tmp/mysql.sock
sort_buffer_size 4194296
sql_mode 0
Variable_name Value
table_cache 64
table_type MYISAM
thread_cache_size 0
thread_stack 65536
tx_isolation REPEATABLE-READ
timezone CET
tmp_table_size 33554432
tmpdir /var/tmp/
version 4.0.6-gamma-standard-log
wait_timeout 28800
--
Gojko Vujovic
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
- Re: problem: mysql locks up under freebsd Gojko Vujovic
- Re: problem: mysql locks up under freebsd Simon K. Grabowski