High server load. Need help.
Every day durring peak hours my server's load spikes off the charts. 20.0 even 40.0 LOL
When I shut down vb the problem goes away. Sometimes I also have to shut down mysql for a few minutes.
Thanks for taking a look.
Here's all the info you requested:
1. Dedicated server
2. Dual Xeon 2.4ghz, 1Gig Ram, 240Gig non raid, FreeBsd 4.8, Apache 1.3.28, php 4.3.3, mysql 4.0.15
3. I don't have any innodb databases
4. I don't know how mysql was compiled.
5. Top Stats: http://www.titanetinc.com/top/
6. my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
max_connections = 400
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache = 64
wait_timeout = 28800
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
record_buffer = 2M
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
max_connections = 800
[mysqlhotcopy]
interactive-timeout
7.
have_bdb YES
have_crypt YES
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 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 28800
join_buffer_size 1044480
key_buffer_size 16777216
language /usr/local/share/mysql/english/
large_files_support ON
local_infile ON
log OFF
log_update OFF
log_bin ON
log_slave_updates OFF
log_slow_queries OFF
log_warnings OFF
long_query_time 10
low_priority_updates OFF
lower_case_table_names OFF
max_allowed_packet 16776192
max_binlog_cache_size 4294967295
max_binlog_size 1073741824
max_connections 400
max_connect_errors 10
max_delayed_threads 20
max_heap_table_size 16777216
max_join_size 4294967295
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 67108864
net_buffer_length 16384
net_read_timeout 30
net_retry_count 1000000
net_write_timeout 60
new OFF
open_files_limit 14781
pid_file /var/db/mysql/galar.pid
log_error
port 3306
protocol_version 10
query_cache_limit 1048576
query_cache_size 33554432
query_cache_type ON
read_buffer_size 2093056
read_only OFF
read_rnd_buffer_size 262144
rpl_recovery_rank 0
server_id 1
slave_net_timeout 3600
skip_external_locking ON
skip_networking OFF
skip_show_database OFF
slow_launch_time 2
socket /tmp/mysql.sock
sort_buffer_size 2097144
sql_mode 0
table_cache 1024
table_type MYISAM
thread_cache_size 64
thread_stack 196608
tx_isolation REPEATABLE-READ
timezone EST
tmp_table_size 33554432
tmpdir /var/tmp/
version 4.0.15-log
wait_timeout 28800
8. Vb is the only script running on the server. There are over 30 active domains.
9. 20 to 40 Users on my VB Forum
10. http://www.titanetinc.com/tests/phpinfo.php For some odd reason it's displaying old values
11. httpd.conf
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 50
MaxSpareServers 100
StartServers 50
MaxClients 500
12. VB 3.0.0 Gamma
I'll post the results tomorrow.
The slowdown in noticeable when the load hits 5 :(
Thanks for the suggestion; I'll look into installing Turke MMCache.
I'll keep you guys posted.
MinSpareServers 50
MaxSpareServers 100
StartServers 50
MaxClients 500
to
MinSpareServers 30
MaxSpareServers 60
StartServers 50
MaxClients 160
restart apache see how that does
then in my.cnf change
max_connections = 400
to
max_connections = 500
restart mysql
If I was you, I would install Turke MMCache (http://www.vbulletin.com/forum/showthread.php?t=75878&highlight=turk). I am sure Eva will be able to help you with MySQL cnf.
#If you have any other info about this subject , Please add it free.# |