Merhaba arkadaslar, mysql kendi kendine restart yaptigini farkettim, ne zaman
./tuning-primer.sh calistirsam en fazla 1 saat gösteriyor.
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.0.51a-24+lenny2 i486
Uptime = 0 days 0 hrs 24 min 1 sec
Avg. qps = 117
Total Questions = 169397
Threads Connected = 17
Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations To find out more information on how each of these
runtime variables effects performance visit: http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 4 sec.
You have 13916 out of 169418 that take longer than 4 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 See http://dev.mysql.com/doc/refman/5.0/...-recovery.html WORKER THREADS
Current thread_cache_size = 128
Current threads_cached = 50
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 = 19
Historic max_used_connections = 68
The number of used connections is 13% of the configured maximum.
Your max_connections variable seems to be fine.
INNODB STATUS
Current InnoDB index space = 2 M
Current InnoDB data space = 2 M
Current InnoDB buffer pool free = 27 %
Current innodb_buffer_pool_size = 8 M
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory
MEMORY USAGE Max Memory Ever Allocated : 2.43 G
Configured Max Per-thread Buffers : 16.68 G
Configured Max Global Buffers : 170 M
Configured Max Memory Limit : 16.85 G
Physical Memory : 3.91 G
nMax memory limit exceeds 90% of physical memory KEY BUFFER
Current MyISAM index space = 616 M
Current key_buffer_size = 128 M
Key cache miss rate is 1 : 347
Key buffer free ratio = 50 %
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 = 32 M
Current query_cache_used = 21 M
Current query_cache_limit = 4 M
Current Query cache Memory fill ratio = 66.12 %
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 = 26 M
Current read_rnd_buffer_size = 3 M
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 2.00 M
You have had 1 queries where a join could not use an index properly
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.
Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found. OPEN FILES LIMIT
Current open_files_limit = 50000 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 = 860 tables
You have a total of 840 tables
You have 860 open tables.
Current table_cache hit rate is 19%
, while 100% of your table cache is in use
You should probably increase your table_cache TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 3.99 G
Of 3094 temp tables, 18% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Created disk tmp tables ratio seems fine
TABLE SCANS
Current read_buffer_size = 1 M
Current table scan ratio = 1460 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio =
1 : 126
You may benefit from selective use of InnoDB.
my.cnf icerigi [client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
skip-name-resolve
safe-show-database
max_connections = 500
key_buffer = 128M
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 4M
long_query_time = 4
join_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
sort_buffer_size = 26M
max_allowed_packet=64M
table_cache = 860
open_files_limit= 50000
thread_cache_size = 128
tmp_table_size = 5000M
log-queries-not-using-indexes
low_priority_updates = 1
concurrent_insert=2
default-storage-engine = MyISAM
set-variable=local-infile=0
[mysqldump]
quick
quote-names
max_allowed_packet = 1000M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 16M
[myisamchk]
key_buffer = 64M
sort_buffer_size = 64M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
Ayrica xcache kontrolü hata veriyor:
Fatal error: xcache_count() [<a href='http://xcache.lighttpd.net/wiki/InstallAdministration'>http://xcache.lighttpd.net/wiki/InstallAdministration</a>]: xcache.admin.user and/or xcache.admin.pass settings is not configured. Make sure you've modified the correct php ini file for your php used in webserver. in /var/www/xxxx/admin/xcache.php on line 211
xcache.php 211. satir
$pcnt = xcache_count(XC_TYPE_PHP);
Tesekkürler