Ver Mensaje Individual
  #29 (permalink)  
Antiguo 20/11/2009, 13:45
kepardox
 
Fecha de Ingreso: junio-2005
Mensajes: 36
Antigüedad: 18 años, 11 meses
Puntos: 1
Respuesta: Necesito ayuda para optimizar mi servidor

Resultados de tuning-primer.sh

-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -

MySQL Version 5.0.81-community-log i686

Uptime = 2 days 2 hrs 48 min 11 sec
Avg. qps = 59
Total Questions = 10839249
Threads Connected = 2

Server has been running for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these

SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 5 sec.
You have 2 out of 10839276 that take longer than 5 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery


WORKER THREADS
Current thread_cache_size = 16384
Current threads_cached = 21
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 500
Current threads_connected = 1
Historic max_used_connections = 23
The number of used connections is 4% of the configured maximum.
You are using less than 10% of your configured max_connections.
Lowering max_connections could help to avoid an over-allocation of memory
See "MEMORY USAGE" section to make sure you are not over-allocating

MEMORY USAGE
Max Memory Ever Allocated : 944 M
Configured Max Per-thread Buffers : 17.79 G
Configured Max Global Buffers : 106 M
Configured Max Memory Limit : 17.89 G
Physical Memory : 7.91 G

Max memory limit exceeds 90% of physical memory

KEY BUFFER
Current MyISAM index space = 14 M
Current key_buffer_size = 32 M
Key cache miss rate is 1 : 885
Key buffer free ratio = 48 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 64 M
Current query_cache_used = 41 M
Current query_cache_limit = 16 M
Current Query cache Memory fill ratio = 65.13 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 24 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 4.00 M
You have had 0 queries where a join could not use an index properly
Your joins seem to be using indexes properly
join_buffer_size >= 4 M
This is not advised

OPEN FILES LIMIT
Current open_files_limit = 4096 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 256 tables
You have a total of 90 tables
You have 126 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 64 M
Of 216159 temp tables, 49% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.

TABLE SCANS
Current read_buffer_size = 8 M
Current table scan ratio = 773 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 1167
You may benefit from selective use of InnoDB.

Espero que todo esté bien. Me da miedo :(