PDA

View Full Version : Server Optimise Request


Mbx
Wed 3rd Sep '03, 5:14pm
1. dedicated

2. cpu speed/type single or dual cpus): dual athlon mc 2.4ghz
how much memory installed: 1gb ram
hard drive type/configuration: 2x18scsi raid 1
linux distributor or windows version: suse 8.1
apache/IIS version: apache 1.3.28
PHP version: php 4.3.3
MySQL version: mysql 4.0.14

3. nope

4. standart; but O3 optimized.

5.

10:00pm up 28 days, 21:47, 1 user, load average: 5.22, 4.99, 4.64
122 processes: 111 sleeping, 11 running, 0 zombie, 0 stopped
CPU0 states: 40.0% user, 14.4% system, 0.0% nice, 45.0% idle
CPU1 states: 38.2% user, 10.4% system, 0.0% nice, 50.3% idle
Mem: 1029900K av, 1010348K used, 19552K free, 0K shrd, 11016K buff
Swap: 1052216K av, 14980K used, 1037236K free 752100K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
20547 nobody 16 0 8080 8080 4172 R 14.0 0.7 0:01 httpd
20728 nobody 16 0 7840 7840 4160 R 7.9 0.7 0:00 httpd
20483 nobody 15 0 6988 6988 4180 S 5.5 0.6 0:00 httpd
20749 mysqld 16 0 27648 27M 2964 R 5.1 2.6 0:00 mysqld
11140 nobody 15 0 7796 7796 4204 S 4.9 0.7 1:45 httpd
20516 nobody 16 0 7976 7976 4180 R 4.7 0.7 0:01 httpd
14264 nobody 15 0 6724 6724 4184 S 3.3 0.6 0:17 httpd
14064 nobody 16 0 6728 6728 4196 S 3.1 0.6 0:21 httpd
16518 nobody 15 0 6716 6716 4184 S 2.7 0.6 0:10 httpd
20739 mysqld 15 0 27648 27M 2964 R 2.5 2.6 0:00 mysqld
8152 snort 15 0 7204 2004 1704 S 2.3 0.1 405:17 snort
20510 nobody 15 0 7108 7108 4184 S 2.3 0.6 2:44 httpd
20481 nobody 15 0 5952 5952 4124 S 1.9 0.5 0:00 httpd
20546 nobody 15 0 6048 6048 4132 S 1.9 0.5 0:00 httpd
20737 mysqld 15 0 27648 27M 2964 S 1.9 2.6 0:00 mysqld
20759 mysqld 15 0 27648 27M 2964 S 1.9 2.6 0:00 mysqld
15268 nobody 15 0 6548 6548 4188 S 1.7 0.6 0:14 httpd
20473 nobody 15 0 6172 6172 4168 S 1.7 0.5 0:00 httpd
20750 mysqld 15 0 27648 27M 2964 S 1.7 2.6 0:00 mysqld
14002 nobody 15 0 6988 6988 4200 S 1.5 0.6 0:19 httpd
15219 nobody 15 0 6684 6684 4184 S 1.5 0.6 0:14 httpd
20354 nobody 15 0 6140 6140 4136 S 1.3 0.5 0:00 httpd
14763 nobody 15 0 7012 7012 4196 S 1.1 0.6 0:15 httpd
13797 nobody 15 0 7536 7536 4184 S 0.9 0.7 0:17 httpd
20755 root 15 0 1064 1064 804 R 0.9 0.1 0:00 top
17607 nobody 15 0 6844 6844 4184 S 0.7 0.6 0:05 httpd
20493 nobody 15 0 7020 7020 4128 S 0.7 0.6 0:00 httpd
20539 nobody 15 0 6768 6768 4180 S 0.7 0.6 0:00 httpd
20751 mysqld 15 0 27648 27M 2964 S 0.7 2.6 0:00 mysqld
1255 nobody 15 0 6784 6784 4252 S 0.5 0.6 2:15 httpd
22556 nobody 15 0 6928 6928 4212 S 0.3 0.6 2:36 httpd
7756 nobody 15 0 6552 6552 4184 S 0.3 0.6 0:24 httpd
14061 nobody 15 0 6632 6632 4184 S 0.3 0.6 0:16 httpd
18039 nobody 15 0 6428 6428 4188 S 0.3 0.6 0:04 httpd
20482 nobody 15 0 5868 5868 4144 S 0.3 0.5 0:00 httpd
20689 nobody 15 0 6296 6296 4172 S 0.3 0.6 0:00 httpd
29033 mysqld 15 0 27648 27M 2964 S 0.1 2.6 0:30 mysqld
20767 nobody 15 0 7492 7492 4220 S 0.1 0.7 2:45 httpd
21035 nobody 15 0 7160 7160 4248 S 0.1 0.6 2:49 httpd
11174 nobody 15 0 7360 7360 4224 S 0.1 0.7 1:34 httpd
30354 nobody 15 0 7136 7136 4180 S 0.1 0.6 0:54 httpd
17339 nobody 15 0 6644 6644 4184 S 0.1 0.6 0:07 httpd
17513 nobody 15 0 7060 7060 4184 S 0.1 0.6 0:04 httpd
17985 nobody 15 0 6108 6108 4184 R 0.1 0.5 0:04 httpd
20453 nobody 15 0 6124 6124 4136 S 0.1 0.5 0:00 httpd
20534 nobody 15 0 5936 5936 4108 S 0.1 0.5 0:00 httpd
20753 mysqld 15 0 27648 27M 2964 S 0.1 2.6 0:00 mysqld
1 root 15 0 84 76 72 S 0.0 0.0 0:08 init
2 root 0K 0 0 0 0 SW 0.0 0.0 0:00 migration_CPU0
3 root 0K 0 0 0 0 SW 0.0 0.0 0:00 migration_CPU1
4 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
5 root 34 19 0 0 0 SWN 0.0 0.0 0:15 ksoftirqd_CPU0
6 root 34 19 0 0 0 RWN 0.0 0.0 0:16 ksoftirqd_CPU1

..... and some more.

6.

| back_log | 50 |
| basedir | /usr/local/mysql/4.0.14/ |
| binlog_cache_size | 32768 |
| bulk_insert_buffer_size | 8388608 |
| character_set | latin1 |
| character_sets | latin1 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 | /var/mysql/data/ |
| 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 | NO |
| 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 | 28800 |
| join_buffer_size | 131072 |
| key_buffer_size | 8388600 |
| language | /usr/local/mysql/4.0.14/share/mysql/english/ |
| large_files_support | ON |
| local_infile | ON |
| locked_in_memory | OFF |
| log | OFF |
| log_update | OFF |
| log_bin | OFF |
| 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 | 1048576 |
| max_binlog_cache_size | 4294967295 |
| max_binlog_size | 1073741824 |
| max_connections | 100 |
| 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 | 8388608 |
| net_buffer_length | 16384 |
| net_read_timeout | 30 |
| net_retry_count | 10 |
| net_write_timeout | 60 |
| new | OFF |
| open_files_limit | 0 |
| pid_file | /var/mysql/data/linux.pid |
| log_error | |
| port | 3306 |
| protocol_version | 10 |
| read_buffer_size | 131072 |
| read_only | OFF |
| read_rnd_buffer_size | 262144 |
| rpl_recovery_rank | 0 |
| query_cache_limit | 1048576 |
| query_cache_size | 0 |
| query_cache_type | ON |
| server_id | 0 |
| 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 | 64 |
| table_type | MYISAM |
| thread_cache_size | 0 |
| thread_stack | 196608 |
| tx_isolation | REPEATABLE-READ |
| timezone | CEST |
| tmp_table_size | 33554432 |
| tmpdir | /tmp/ |
| version | 4.0.14 |
| wait_timeout | 28800 |
+---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+

7.

+--------------------------+-----------+
| Variable_name | Value |
+--------------------------+-----------+
| Aborted_clients | 122 |
| Aborted_connects | 266 |
| Bytes_received | 448207882 |
| Bytes_sent | 516380418 |
| Com_admin_commands | 0 |
| Com_alter_table | 0 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 146924 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 0 |
| Com_delete | 12174 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 0 |
| Com_flush | 0 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 17170 |
| Com_insert_select | 998 |
| Com_kill | 12 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 0 |
| Com_optimize | 4 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 17 |
| Com_replace | 4506 |
| Com_replace_select | 6 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 2140375 |
| Com_set_option | 0 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 0 |
| Com_show_databases | 203 |
| Com_show_fields | 175 |
| Com_show_grants | 0 |
| Com_show_keys | 78 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 23 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 1 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 479 |
| Com_show_variables | 21 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 0 |
| Com_update | 229605 |
| Connections | 146761 |
| Created_tmp_disk_tables | 3337 |
| Created_tmp_tables | 83025 |
| Created_tmp_files | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 18705 |
| Handler_read_first | 31991 |
| Handler_read_key | 131870566 |
| Handler_read_next | 122402633 |
| Handler_read_prev | 335823 |
| Handler_read_rnd | 45539917 |
| Handler_read_rnd_next | 878575905 |
| Handler_rollback | 0 |
| Handler_update | 333184 |
| Handler_write | 8030280 |
| Key_blocks_used | 7793 |
| Key_read_requests | 321829290 |
| Key_reads | 1932996 |
| Key_write_requests | 294486 |
| Key_writes | 225487 |
| Max_used_connections | 100 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 64 |
| Open_files | 121 |
| Open_streams | 0 |
| Opened_tables | 306911 |
| Questions | 2699741 |
| Qcache_queries_in_cache | 0 |
| Qcache_inserts | 0 |
| Qcache_hits | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 0 |
| Qcache_free_memory | 0 |
| Qcache_free_blocks | 0 |
| Qcache_total_blocks | 0 |
| Rpl_status | NULL |
| Select_full_join | 511 |
| Select_full_range_join | 1736 |
| Select_range | 449158 |
| Select_range_check | 0 |
| Select_scan | 479952 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 1 |
| Slow_queries | 725 |
| Sort_merge_passes | 0 |
| Sort_range | 229811 |
| Sort_rows | 50369334 |
| Sort_scan | 331742 |
| Table_locks_immediate | 2960001 |
| Table_locks_waited | 34134 |
| Threads_cached | 0 |
| Threads_created | 146760 |
| Threads_connected | 2 |
| Threads_running | 1 |
| Uptime | 63590 |
+--------------------------+-----------+

8. Only the this vB and one other WBB.

9. About 80-90 User.

10. In Work.

11.

KeepAlive off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
MinSpareServers 8
MaxSpareServers 24
StartServers 16
MaxClients 256

12. vB 2.3.2

Mbx
Wed 3rd Sep '03, 5:17pm
The my.conf file.

# The following options will be passed to all MySQL clients
# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
#pid-file = /var/mysql/data/linux.pid
#datadir = /var/mysql/data
skip-locking
skip-innodb
skip-networking
set-variable = max_connections=400
set-variable = key_buffer=192M
set-variable = max_allowed_packet=1M
set-variable = table_cache=1024
set-variable = thread_cache_size=128
set-variable = sort_buffer=4M
set-variable = join_buffer=2M
set-variable = record_buffer=2M
set-variable = myisam_sort_buffer_size=64M
set-variable = wait_timeout=1800
set-variable = connect_timeout=10
set-variable = max_connect_errors=5
set-variable = thread_concurrency=8
set-variable = query_cache_limit=2M
set-variable = query_cache_size=48M
set-variable = query_cache_type=1
set-variable = long_query_time=20
log-slow-queries=/var/log/mysql-slow-queries.log

log-bin
server-id = 1

# The safe_mysqld script
[safe_mysqld]
open_files_limit = 8192
err-log=/var/lib/mysql/mysqld.log

[mysqldump]
quick
set-variable = max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[myisamchk]
set-variable = key_buffer=64M
set-variable = sort_buffer=64M
set-variable = read_buffer=16M
set-variable = write_buffer=16M

[mysqlhotcopy]
interactive-timeout


About the key-buffer. I started at 16 MB but which this, it was really slow...

eva2000
Wed 3rd Sep '03, 6:35pm
you buffers are set too high and you have mysql logging enabled which will slow your server to a crawl


try this new my.cnf and restart mysql


[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
skip-innodb
skip-networking
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 64
wait_timeout = 1800
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb

[safe_mysqld]
open_files_limit = 8192
err-log=/var/lib/mysql/mysqld.log

[mysqldump]
quick
max_allowed_packet=16M

[mysql]
no-auto-rehash

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

Mbx
Wed 3rd Sep '03, 6:47pm
you buffers are set too high and you have mysql logging enabled which will slow your server to a crawl


try this new my.cnf and restart mysql

I try now.

But one question:
max_connections | 100 |

Why this ? I was wondering how this can be...

eva2000
Thu 4th Sep '03, 7:29pm
I try now.

But one question:
max_connections | 100 |

Why this ? I was wondering how this can be...
the mysql variable from mysqladmin variable command shows you have set max_connections = 100 which is the default mysql setting for new mysql installs... it's probably too low for you and when your mysql usage hits 100 mysql concurrent connections (NOT the same as vB users online) you will get too many connections error message

my recommended my.cnf should fix that.. after you restart mysql with my recommended settings

Mbx
Fri 5th Sep '03, 10:01am
the mysql variable from mysqladmin variable command shows you have set max_connections = 100 which is the default mysql setting for new mysql installs... it's probably too low for you and when your mysql usage hits 100 mysql concurrent connections (NOT the same as vB users online) you will get too many connections error message

my recommended my.cnf should fix that.. after you restart mysql with my recommended settings

That`s the point. I did what you said; but still the same.

eva2000
Fri 5th Sep '03, 11:53am
you edited /etc/my.cnf right and restarted mysql ?

can you repost the output of these commands

mysqladmin -u root -p variables

mysqladmin -u root -p extended-status

Mbx
Fri 5th Sep '03, 2:38pm
you edited /etc/my.cnf right and restarted mysql ?

can you repost the output of these commands

mysqladmin -u root -p variables

mysqladmin -u root -p extended-status

Yes, i did.

--------
+---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
+---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
| back_log | 50 |
| basedir | /usr/local/mysql/4.0.14/ |
| binlog_cache_size | 32768 |
| bulk_insert_buffer_size | 8388608 |
| character_set | latin1 |
| character_sets | latin1 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 | /var/mysql/data/ |
| 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 | NO |
| 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 | 28800 |
| join_buffer_size | 131072 |
| key_buffer_size | 8388600 |
| language | /usr/local/mysql/4.0.14/share/mysql/english/ |
| large_files_support | ON |
| local_infile | ON |
| locked_in_memory | OFF |
| log | OFF |
| log_update | OFF |
| log_bin | OFF |
| 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 | 1048576 |
| max_binlog_cache_size | 4294967295 |
| max_binlog_size | 1073741824 |
| max_connections | 100 |
| 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 | 8388608 |
| net_buffer_length | 16384 |
| net_read_timeout | 30 |
| net_retry_count | 10 |
| net_write_timeout | 60 |
| new | OFF |
| open_files_limit | 0 |
| pid_file | /var/mysql/data/linux.pid |
| log_error | |
| port | 3306 |
| protocol_version | 10 |
| read_buffer_size | 131072 |
| read_only | OFF |
| read_rnd_buffer_size | 262144 |
| rpl_recovery_rank | 0 |
| query_cache_limit | 1048576 |
| query_cache_size | 0 |
| query_cache_type | ON |
| server_id | 0 |
| 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 | 64 |
| table_type | MYISAM |
| thread_cache_size | 0 |
| thread_stack | 196608 |
| tx_isolation | REPEATABLE-READ |
| timezone | CEST |
| tmp_table_size | 33554432 |
| tmpdir | /tmp/ |
| version | 4.0.14 |
| wait_timeout | 28800 |
+---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
--------

+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 75 |
| Aborted_connects | 7 |
| Bytes_received | 1044815583 |
| Bytes_sent | 307955596 |
| Com_admin_commands | 0 |
| Com_alter_table | 0 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 339042 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 0 |
| Com_delete | 33303 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 0 |
| Com_flush | 0 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 41896 |
| Com_insert_select | 2494 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 0 |
| Com_optimize | 0 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 2 |
| Com_replace | 10944 |
| Com_replace_select | 20 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 5052708 |
| Com_set_option | 0 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 0 |
| Com_show_databases | 11 |
| Com_show_fields | 0 |
| Com_show_grants | 0 |
| Com_show_keys | 0 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 1 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 1 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 24 |
| Com_show_variables | 7 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 0 |
| Com_update | 537604 |
| Connections | 339018 |
| Created_tmp_disk_tables | 6830 |
| Created_tmp_tables | 195077 |
| Created_tmp_files | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 79659 |
| Handler_read_first | 76115 |
| Handler_read_key | 305472731 |
| Handler_read_next | 280099831 |
| Handler_read_prev | 1062156 |
| Handler_read_rnd | 103905923 |
| Handler_read_rnd_next | 1846628030 |
| Handler_rollback | 0 |
| Handler_update | 811672 |
| Handler_write | 17618443 |
| Key_blocks_used | 7793 |
| Key_read_requests | 745962825 |
| Key_reads | 3556280 |
| Key_write_requests | 1451352 |
| Key_writes | 1108603 |
| Max_used_connections | 100 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 64 |
| Open_files | 125 |
| Open_streams | 0 |
| Opened_tables | 412411 |
| Questions | 6356993 |
| Qcache_queries_in_cache | 0 |
| Qcache_inserts | 0 |
| Qcache_hits | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 0 |
| Qcache_free_memory | 0 |
| Qcache_free_blocks | 0 |
| Qcache_total_blocks | 0 |
| Rpl_status | NULL |
| Select_full_join | 781 |
| Select_full_range_join | 4669 |
| Select_range | 1089057 |
| Select_range_check | 0 |
| Select_scan | 1137662 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 1 |
| Slow_queries | 1157 |
| Sort_merge_passes | 0 |
| Sort_range | 533632 |
| Sort_rows | 115345140 |
| Sort_scan | 771339 |
| Table_locks_immediate | 7021818 |
| Table_locks_waited | 54901 |
| Threads_cached | 0 |
| Threads_created | 339017 |
| Threads_connected | 2 |
| Threads_running | 1 |
| Uptime | 157189 |
+--------------------------+------------+
---------

eva2000
Fri 5th Sep '03, 4:00pm
doesn't seem mysql was restarted properly how are you restarting mysql ?

also can you post the output you get from this command in ssh telnet as root user

locate my.cnf

Mbx
Fri 5th Sep '03, 5:15pm
doesn't seem mysql was restarted properly how are you restarting mysql ?

also can you post the output you get from this command in ssh telnet as root user

locate my.cnf

mysql.server stop
mysql.server start

/etc/my.conf

Mysql runs as:
|-mysqld_safe---mysqld---mysqld---35*[mysqld]

eva2000
Sun 7th Sep '03, 2:06am
there's your problem it's my.cnf not my.conf ;)

Mbx
Sun 7th Sep '03, 11:02am
there's your problem it's my.cnf not my.conf ;)

Jepp, i found it out yesterday. Seems to work fine now. Thanks !

Limey
Mon 8th Sep '03, 4:46am
I dont know how the key buffer affects vb specifically but why not raise the key buffer on any of these optimizations?

eva2000
Tue 9th Sep '03, 3:08am
Jepp, i found it out yesterday. Seems to work fine now. Thanks !
good to hear Mbx :)

eva2000
Tue 9th Sep '03, 3:09am
I dont know how the key buffer affects vb specifically but why not raise the key buffer on any of these optimizations?
cause it most cases if any vB client's server hit their max_connection setting they'd run out of memory very quickly... just being cautious

Limey
Tue 9th Sep '03, 3:13am
ah ok...i used the above file but lowered the max connections...and i may lower it a bit more....my server is not as powerful as the one listed above.