450 connections to MYSQL ?

hi,
using MyToolkit i see the following for mysql procces. Is there any way to tweak thsi better and recude the load?

In other words there are high values as:
- 450 connections to Mysql (Connections/Second = 0.760
Per Hour = 2736.486)
- 123 Created_tmp_tables (Temporary Tables Created/Second = 0.208)
Per Hour = 747.973
1872944 Bytes_received (KB Received/Second = 3.090
Per Hour = 11122.297)
- 21204810 Bytes_sent 21204810 (KB Sent/Second = 34.978
Per Hour = 125920.946)

----------------------------------


SHOW STATUS --- Running on MySQL Version 4.0.22-standard
Variable_name Value Stats Notes, Advice from MySql.com Manual.
Aborted_clients 40 Number of connections aborted because the client died without closing the connection properly.
This is incremented if one of the following has happened:
The client program did not call mysql_close() before exit.
The client had been sleeping more than wait_timeout or interactive_timeout without doing any requests.
The client program ended abruptly in the middle of the transfer. (Docs)
Aborted_connects 0 % of Total Connections = 0.000% Number of tries to connect to the MySQL server that failed,
The server variable Aborted_connects is incremented when:
When a connection packet doesn't contain the right information.
When the user didn't have privileges to connect to a database.
When a user uses a wrong password.
When it takes more than connect_timeout seconds to get a connect package.
Note: if this is high it could indicate that someone is trying to break into your database! (Docs)
Bytes_received 1872944 KB Received/Second = 3.090
Per Hour = 11122.297 Number of bytes received from all clients.
Bytes_sent 21204810 KB Sent/Second = 34.978
Per Hour = 125920.946 Number of bytes sent to all clients.
Com_admin_commands 12
Com_alter_table 0
Com_analyze 0
Com_backup_table 0
Com_begin 0
Com_change_db 557
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 93
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 52
Com_insert_select 0
Com_kill 0
Com_load 0
Com_load_master_data 0
Com_load_master_table 0
Com_lock_tables 6
Com_optimize 0
Com_purge 0
Com_rename_table 0
Com_repair 0
Com_replace 0
Com_replace_select 0
Com_reset 0
Com_restore_table 0
Com_revoke 0
Com_rollback 0
Com_savepoint 0
Com_select 2147
Com_set_option 0
Com_show_binlog_events 0
Com_show_binlogs 0
Com_show_create 59
Com_show_databases 0
Com_show_fields 59
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 2
Com_show_slave_hosts 0
Com_show_slave_status 0
Com_show_status 1
Com_show_innodb_status 0
Com_show_tables 1
Com_show_variables 1
Com_slave_start 0
Com_slave_stop 0
Com_truncate 0
Com_unlock_tables 6
Com_update 308
Connections 450 Connections/Second = 0.760
Per Hour = 2736.486 Number of connection attempts to the MySQL server.
Created_tmp_disk_tables 18 Number of implicit temporary tables on disk created while executing statements. If this is big, you may want to increase the tmp_table_size variable to get the temporary tables memory based instead of disk based.
Created_tmp_tables 123 Temporary Tables Created/Second = 0.208
Per Hour = 747.973 Number of implicit temporary tables in memory created while executing statements.
Created_tmp_files 3 How many temporary files mysqld have created.
Delayed_insert_threads 0 Number of delayed insert handler threads in use.
Delayed_writes 0 Number of rows written with INSERT DELAYED.
Delayed_errors 0 Number of rows written with INSERT DELAYED for which some error occurred (probably duplicate key).
Flush_commands 1 Number of executed FLUSH commands.
Handler_commit 0
Handler_delete 19 Number of times a row was deleted from a table.
Handler_read_first 423 Number of times the first entry was read from an index. If this is high, it suggests that the server is doing a lot of full index scans, for example, SELECT col1 FROM foo, assuming that col1 is indexed.
Handler_read_key 82997 Number of requests to read a row based on a key. If this is high, it is a good indication that your queries and tables are properly indexed.
Handler_read_next 20614 Number of requests to read next row in key order. This will be incremented if you are querying an index column with a range constraint. This also will be incremented if you are doing an index scan.
Handler_read_prev 1851 How many times after "Handler_read_key" we realized we need one more record, and went back to look at the index, looked up the previous record position, and read it.
Handler_read_rnd 4824 Number of requests to read a row based on a fixed position. This will be high if you are doing a lot of queries that require sorting of the result. If this is big, then you probably have a lot of queries that require MySQL to scan whole tables or you have joins that don't use keys properly.
Handler_read_rnd_next 697963 Number of requests to read the next row in the datafile. This will be high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have.
Handler_rollback 2
Handler_update 18945 Number of requests to update a row in a table.
Handler_write 4119 Number of requests to insert a row in a table.
Key_blocks_used 376 Approx. 2% of key_buffer in use
Key Buffer Size = 16 Mb. The number of used blocks in the key cache.
If "percentage of key_buffer in use is 100% you may want to increase your "key_buffer=" variable in the my.cnf file, if the percentage is low you may want to reduce your key_buffer variable to save some memory.
Key_read_requests 94394 The number of requests to read a key block from the cache.
Key_reads 348 Key Reads/Key Read Requests = 0.003687
Cache hit = 99.996313% The number of physical reads of a key block from disk.
Key_write_requests 718 The number of requests to write a key block to the cache.
Key_writes 97 Key Writes/Key Write Requests = 0.135097 The number of physical writes of a key block to disk.
Max_used_connections 4 The maximum number of connections in use simultaneously.
Not_flushed_key_blocks 0 Keys blocks in the key cache that has changed but hasn't yet been flushed to disk.
Not_flushed_delayed_rows 0 Number of rows waiting to be written in INSERT DELAYED queues.
Open_tables 304 30% of table_cache in use Number of tables that are open. More Info ....
Open_files 584 Number of files that are open.
Open_streams 0 Number of streams that are open (used mainly for logging).
Opened_tables 310 Number of tables that have been opened.
Questions 15621 Queries/Second = 26.387
Queries/Hour = 94992.568 Number of queries sent to the server.
Qcache_queries_in_cache 1386
Qcache_inserts 2030
Qcache_hits 11895 85% of Queries Cached
Qcache_lowmem_prunes 0
Qcache_not_cached 117
Qcache_free_memory 28440720
Qcache_free_blocks 1
Qcache_total_blocks 3035
Rpl_status NULL
Select_full_join 47 % of Total Queries = 0.301% Number of joins without keys (Should be 0).
Select_full_range_join 0 Number of joins where we used a range search on reference table.
Select_range 17 Number of joins where we used ranges on the first table. (It's normally not critical even if this is big.)
Select_range_check 2 Number of joins without keys where we check for key usage after each row (Should be 0).
Select_scan 859 Number of joins where we scanned the first table.
Slave_open_temp_tables 0 Number of temporary tables currently open by the slave thread
Slave_running OFF This tells whether the slave is running.
Slow_launch_threads 0 Number of threads that have taken more than slow_launch_time to connect.
Slow_queries 0 Slow Queries/Second = 0.000
Slow Queries/Hour = 0.000
% of Total Queries = 0.000% Number of queries that have taken more than long_query_time. (Docs)
Sort_merge_passes 0 Number of merges the sort has to do. If this value is large you should consider increasing sort_buffer.
Sort_range 81 Number of sorts that where done with ranges.
Sort_rows 7282 Number of sorted rows.
Sort_scan 308 Number of sorts that where done by scanning the table.
Table_locks_immediate 3581 % of total locks 100.000000%
Locks/Second = 6.049
Locks/Hour = 21776.351 Number of times a table lock was acquired immediately. Available after 3.23.33.
Table_locks_waited 0 % of total locks 0.000000%
Locks/Second = 0.000
Locks/Hour = 0.000 Number of times a table lock could not be acquired immediately and a wait was needed. If this is high, and you have performance problems, you should first optimise your queries, and then either split your table(s) or use replication. Available after 3.23.33.
Threads_cached 4 Number of threads in the thread cache.
Threads_created 5 Cache hit Rate = 98.888889% Number of threads created to handle connections. If Threads_created is big or the cache hit rate is low, you may want to increase the thread_cache_size variable.
Threads_connected 1 Number of currently open connections.
Threads_running 1 Number of threads that are not sleeping.
Uptime 592 9 mins 52 secs How many seconds the server has been up.
--------------



Current "my.cnf" Settings

[mysqld]
skip-locking
skip-innodb
set-variable = key_buffer=16M
set-variable = join_buffer=1020K
set-variable = read_buffer_size=1020K
set-variable = sort_buffer_size=2M

set-variable = max_allowed_packet=5M
set-variable = tmp_table_size=32M
set-variable = max_connections=250
set-variable = table_cache=1028
set-variable = thread_cache_size=286
set-variable = connect_timeout=15


(Experimental) Recommended Settings (Reccomanded settings byMyToolkit)

[mysqld]
skip-locking
safe-show-database
skip-innodb
query_cache_limit = 1M
query_cache_size = 48M
query_cache_type = 1
set-variable = key_buffer=1M
set-variable = join_buffer=128K
set-variable = read_buffer_size=1M
set-variable = sort_buffer_size=1M

set-variable = tmp_table_size=32M
set-variable = table_cache=350
set-variable = max_connections=50
set-variable = thread_concurrency=1
set-variable = thread_cache_size=286
# max_allowed_packet - only increase this value if you are using big BLOB columns.
set-variable = max_allowed_packet=1M
set-variable = connect_timeout=15

 

 

 

 

Top