Merhabalar arkadaşlar,
Bir vds'imde yaklaşık 40 site mevcuttur. Ancak toplam tekil hit 5 K civarında.
Sadece 1 sitede Wordpress kullanıyorum gunluk hiti 3-5 TEKIL
Mevcut my.cnf dosyam. [mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
expire_logs_days=3
log_bin_trust_function_creators=TRUE
slow-query-log=1
slow-query-log-file=/var/log/mysql-slow.log
log-bin=mysql-bin
query_cache_size = 256M
query_cache_type=1
query_cache_limit=128M
slow-query-log = 1
slow-query-log-file = /var/log/mysql/mysql-slow.log
long_query_time = 1
join_buffer_size = 62M
read_buffer_size = 62M
sort_buffer_size = 62M
tmp_table_size = 128M
table_cache = 128M
table_definition_cache=250M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
binlog-do-db=foodb1
Mevcut tuning raporu
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.1.73-log x86_64
Uptime = 0 days 0 hrs 9 min 51 sec
Avg. qps = 73
Total Questions = 43494
Threads Connected = 5
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.1/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 enabled.
Current long_query_time = 1.000000 sec.
You have 775 out of 43519 that take longer than 1.000000 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is enabled
Binlog sync is not enabled, you could loose binlog records during a server crash
WORKER THREADS
Current thread_cache_size = 0
Current threads_cached = 0
Current threads_per_sec = 1
Historic threads_per_sec = 1
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 151
Current threads_connected = 2
Historic max_used_connections = 16
The number of used connections is 10% 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
INNODB STATUS
Current InnoDB index space = 83 M
Current InnoDB data space = 305 M
Current InnoDB buffer pool free = 0 %
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 : 3.18 G
Configured Max Per-thread Buffers : 27.50 G
Configured Max Global Buffers : 273 M
Configured Max Memory Limit : 27.77 G
Physical Memory : 4.00 G
Max memory limit exceeds 90% of physical memory
KEY BUFFER
Current MyISAM index space = 6 M
Current key_buffer_size = 7 M
Key cache miss rate is 1 : 64
Key buffer free ratio = 81 %
Your key_buffer_size seems to be fine
QUERY CACHE
Query cache is enabled
Current query_cache_size = 256 M
Current query_cache_used = 15 M
Current query_cache_limit = 128 M
Current Query cache Memory fill ratio = 5.94 %
Current query_cache_min_res_unit = 4 K
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won't cache query results that are larger than query_cache_limit in size
SORT OPERATIONS
Current sort_buffer_size = 62 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 62.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 = 1024 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_open_cache = 431 tables
Current table_definition_cache = 524288 tables
You have a total of 974 tables
You have 431 open tables.
Current table_cache hit rate is 14%
, 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 = 128 M
Of 1123 temp tables, 42% 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 = 62 M
Current table scan ratio = 18774 : 1
read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
TABLE LOCKING
Current Lock Wait ratio = 1 : 27571
Your table locking seems to be fineŞimdiden yardımcı olan yardım etmek isteyen tüm arkadaşlarıma teşekkür ederim..