Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > MySQL Veritabanı SQL
Kayıt ol Blogs Yardım Üye Listesi Ajanda iTrader Forumları Okundu Kabul Et

MySQL Veritabanı SQL SQL MySQL Access MSSQL Oracle Veritabani Database

Cevapla Add This!
 
LinkBack (8) Seçenekler Stil
  #161 (permalink)   iTrader 
Alt 2008-03-31, 12:50
aLcadraz - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Mar 2005
Mesajlar: 384
Tecrübe Puanı: 3
iTrader: %0/0
aLcadraz is on a distinguished road
Standart

top - 12:51:13 up 1 day, 19:16, 1 user, load average: 10.51, 6.98, 3.56
Tasks: 206 total, 2 running, 203 sleeping, 1 stopped, 0 zombie
Cpu(s): 15.0% us, 1.2% sy, 0.0% ni, 69.2% id, 14.5% wa, 0.0% hi, 0.1% si
Mem: 3116652k total, 2959176k used, 157476k free, 6980k buffers
Swap: 2000968k total, 1633864k used, 367104k free, 425764k cached

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
936 webarsiv 39 19 0 0:27.06 45.8 2168m 1.4g 576 T analog
4538 mysql 20 0 11 209:13.40 4.6 286m 140m 2872 S mysqld
2285 nobody 20 0 6 6:10.98 0.7 34336 21m 2652 S httpd
2288 nobody 20 0 0 5:16.66 0.7 33724 20m 2556 S httpd
2290 nobody 20 0 0 5:53.34 0.7 33716 20m 2624 S httpd
2292 nobody 20 0 9 5:47.69 0.7 33388 20m 2612 S httpd
24411 nobody 20 0 0 1:50.68 0.7 33264 20m 2544 S httpd
2286 nobody 20 0 0 6:14.32 0.7 33648 20m 2552 S httpd
2296 nobody 20 0 0 6:36.20 0.7 33192 20m 2612 S httpd
2291 nobody 20 0 0 6:22.12 0.7 33920 19m 2544 S httpd
2293 nobody 20 0 5 6:03.98 0.7 33256 19m 2520 S httpd
2297 nobody 20 0 0 5:33.90 0.6 32472 19m 2656 S httpd
29956 nobody 20 0 0 0:42.02 0.6 32512 19m 2508 S httpd
29047 nobody 20 0 0 0:51.83 0.6 31852 18m 2644 S httpd
27075 nobody 20 0 0 1:06.98 0.6 31728 18m 2524 S httpd
29048 nobody 20 0 2 0:46.48 0.6 31328 18m 2584 S httpd
29107 nobody 20 0 5 0:47.11 0.6 30100 17m 2576 S httpd
26307 nobody 20 0 0 1:04.92 0.6 30184 17m 2568 S httpd
3810 root 20 0 0 0:06.79 0.6 27788 17m 1288 S spamd
29998 nobody 20 0 12 0:34.24 0.5 29364 16m 2612 S httpd
30601 nobody 20 0 1 0:27.08 0.5 28920 15m 2456 S httpd
29955 nobody 20 0 0 0:31.43 0.5 27940 15m 2492 S httpd
29999 nobody 20 0 0 0:28.36 0.5 27652 14m 2484 S httpd
30600 nobody 20 0 0 0:23.50 0.5 27360 14m 2492 S httpd
31592 nobody 20 0 0 0:12.66 0.5 27664 14m 2440 S httpd
29954 nobody 20 0 0 0:37.40 0.5 27400 14m 2512 S httpd
32410 nobody 20 0 0 0:13.71 0.5 27232 14m 2532 S httpd
31591 nobody 20 0 0 0:17.23 0.5 27492 14m 2324 S httpd
31260 nobody 20 0 0 0:18.10 0.5 26812 14m 2548 S httpd
991 nobody 20 0 0 0:01.69 0.5 26760 14m 2504 S httpd
30602 nobody 20 0 0 0:22.58 0.4 26184 13m 2528 S httpd


şuan aşırı ram ve swap kullanıyor :S
__________________
sohbetWebArsiv
Alıntı ile Cevapla

  #162 (permalink)   iTrader 
Alt 2008-04-07, 01:07
Junior Member
 
Üyelik tarihi: Feb 2008
Mesajlar: 8
Tecrübe Puanı: 0
iTrader: %0/0
MysteriousTR is an unknown quantity at this point
Standart

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

MySQL Version 4.1.22-standard i686

./tuning-primer.sh: line 388: bc: command not found
./tuning-primer.sh: line 389: bc: command not found
./tuning-primer.sh: line 390: bc: command not found
./tuning-primer.sh: line 391: bc: command not found
./tuning-primer.sh: line 392: bc: command not found
./tuning-primer.sh: line 393: bc: command not found
Uptime = days hrs min sec
Avg. qps = 5
Total Questions = 1707329
Threads Connected = 1

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
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/4.1/...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 = 10 sec.
You have 99 out of 1707343 that take longer than 10 sec. to complete
Your long_query_time may be too high, I typically set this under 5 sec.

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/4.1/...-recovery.html

WORKER THREADS
Current thread_cache_size = 128
Current threads_cached = 85
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 = 86
The number of used connections is 17% of the configured maximum.
Your max_connections variable seems to be fine.

MEMORY USAGE
./tuning-primer.sh: line 1204: bc: command not found
./tuning-primer.sh: line 1205: bc: command not found
./tuning-primer.sh: line 1229: bc: command not found
./tuning-primer.sh: line 1232: bc: command not found
./tuning-primer.sh: line 1233: bc: command not found
./tuning-primer.sh: line 1235: bc: command not found
./tuning-primer.sh: line 1237: [: -gt: unary operator expected
./tuning-primer.sh: line 350: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 356: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 362: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=max_memoryHR': not a valid identifier
Max Memory Ever Allocated : bytes
./tuning-primer.sh: line 350: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 356: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 362: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=per_thread_buffersHR': not a valid identifier
Configured Max Per-thread Buffers : bytes
./tuning-primer.sh: line 350: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 356: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 362: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=global_buffersHR': not a valid identifier
Configured Max Global Buffers : bytes
./tuning-primer.sh: line 350: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 356: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 362: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=total_memoryHR': not a valid identifier
Configured Max Memory Limit : bytes
./tuning-primer.sh: line 331: bc: command not found
Physical Memory : G
Max memory limit seem to be within acceptable norms

KEY BUFFER
./tuning-primer.sh: line 331: bc: command not found
./tuning-primer.sh: line 646: bc: command not found
./tuning-primer.sh: line 647: bc: command not found
./tuning-primer.sh: line 331: bc: command not found
Current MyISAM index space = M
./tuning-primer.sh: line 331: bc: command not found
Current key_buffer_size = M
Key cache miss rate is 1 : 521
Key buffer fill ratio = %
./tuning-primer.sh: line 684: [: -ge: unary operator expected
./tuning-primer.sh: line 688: [: -le: unary operator expected
Your key_buffer_size seems to be fine

QUERY CACHE
./tuning-primer.sh: line 719: bc: command not found
./tuning-primer.sh: line 720: bc: command not found
Query cache is enabled
./tuning-primer.sh: line 331: bc: command not found
Current query_cache_size = M
./tuning-primer.sh: line 331: bc: command not found
Current query_cache_used = M
./tuning-primer.sh: line 331: bc: command not found
Current query_cache_limit = M
Current Query cache Memory fill ratio = %
./tuning-primer.sh: line 331: bc: command not found
Current query_cache_min_res_unit = K
./tuning-primer.sh: line 733: bc: command not found
./tuning-primer.sh: line 734: bc: command not found
./tuning-primer.sh: line 735: [: -gt: unary operator expected
./tuning-primer.sh: line 742: [: -le: unary operator expected
./tuning-primer.sh: line 746: [: -ge: unary operator expected
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
./tuning-primer.sh: line 331: bc: command not found
Current sort_buffer_size = M
./tuning-primer.sh: line 331: bc: command not found
Current read_rnd_buffer_size = K
Sort buffer seems to be fine

JOINS
./tuning-primer.sh: line 331: bc: command not found
Current join_buffer_size = M
You have had 31 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 = 2558 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 = 1024 tables
You have a total of 1650 tables
You have 1022 open tables.
Current table_cache hit rate is 11%, while 99% of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
./tuning-primer.sh: line 331: bc: command not found
Current max_heap_table_size = M
./tuning-primer.sh: line 331: bc: command not found
Current tmp_table_size = M
Of 91866 temp tables, 0% 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
./tuning-primer.sh: line 331: bc: command not found
Current read_buffer_size = M
Current table scan ratio = 2109 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 979
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'



Böyle bir çıktı aldım nasıl bir yol izlemem lazım yardımcı olursan sevinirim iyinet.
Alıntı ile Cevapla

  #163 (permalink)   iTrader 
Alt 2008-04-07, 22:59
Junior Member
 
Üyelik tarihi: Feb 2008
Mesajlar: 8
Tecrübe Puanı: 0
iTrader: %0/0
MysteriousTR is an unknown quantity at this point
Standart

Biri yardımcı olabilirmi lütfen
Alıntı ile Cevapla

  #164 (permalink)   iTrader 
Alt 2008-04-18, 09:08
Member
 
Üyelik tarihi: May 2007
Mesajlar: 277
Tecrübe Puanı: 1
iTrader: %0/0
Remark is on a distinguished road
Standart

Merhabalar bende şöyle bir sonuç çıktı.

[root@unix ~]# ./tuning-primer.sh

ls: invalid option -- H
Try `ls --help' for more information.
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -

MySQL Version 5.0.54 i686

./tuning-primer.sh: line 388: bc: command not found
./tuning-primer.sh: line 389: bc: command not found
./tuning-primer.sh: line 390: bc: command not found
./tuning-primer.sh: line 391: bc: command not found
./tuning-primer.sh: line 392: bc: command not found
./tuning-primer.sh: line 393: bc: command not found
Uptime = days hrs min sec
Avg. qps = 5
Total Questions = 760
Threads Connected = 1

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/...variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

ls: invalid option -- H
Try `ls --help' for more information.
SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 0 out of 781 that take longer than 10 sec. to complete
Your long_query_time may be too high, I typically set this under 5 sec.

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 = 0
Current threads_cached = 0
Current threads_per_sec = 1
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 100
Current threads_connected = 1
Historic max_used_connections = 1
The number of used connections is 1% 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

ls: invalid option -- H
Try `ls --help' for more information.
MEMORY USAGE
./tuning-primer.sh: line 1204: bc: command not found
./tuning-primer.sh: line 1205: bc: command not found
./tuning-primer.sh: line 1229: bc: command not found
./tuning-primer.sh: line 1232: bc: command not found
./tuning-primer.sh: line 1233: bc: command not found
./tuning-primer.sh: line 1235: bc: command not found
./tuning-primer.sh: line 1237: [: -gt: unary operator expected
./tuning-primer.sh: line 350: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 356: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 362: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=max_memoryHR': not a valid identifier
Max Memory Ever Allocated : bytes
./tuning-primer.sh: line 350: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 356: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 362: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=per_thread_buffersHR': not a valid identifier
Configured Max Per-thread Buffers : bytes
./tuning-primer.sh: line 350: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 356: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 362: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=global_buffersHR': not a valid identifier
Configured Max Global Buffers : bytes
./tuning-primer.sh: line 350: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 356: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 362: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 369: export: `0=total_memoryHR': not a valid identifier
Configured Max Memory Limit : bytes
./tuning-primer.sh: line 331: bc: command not found
Physical Memory : G
Max memory limit seem to be within acceptable norms

KEY BUFFER
./tuning-primer.sh: line 331: bc: command not found
./tuning-primer.sh: line 646: bc: command not found
./tuning-primer.sh: line 647: bc: command not found
./tuning-primer.sh: line 331: bc: command not found
Current MyISAM index space = M
./tuning-primer.sh: line 331: bc: command not found
Current key_buffer_size = M
Key cache miss rate is 1 : 18
Key buffer fill ratio = %
./tuning-primer.sh: line 680: [: -ge: unary operator expected
./tuning-primer.sh: line 684: [: -ge: unary operator expected
./tuning-primer.sh: line 688: [: -le: unary operator expected
Your key_buffer_size seems to be fine

QUERY CACHE
Query cache is supported but not enabled
Perhaps you should set the query_cache_size

SORT OPERATIONS
./tuning-primer.sh: line 331: bc: command not found
Current sort_buffer_size = M
./tuning-primer.sh: line 331: bc: command not found
Current read_rnd_buffer_size = K
Sort buffer seems to be fine

JOINS
./tuning-primer.sh: line 331: bc: command not found
Current join_buffer_size = K
You have had 0 queries where a join could not use an index properly
Your joins seem to be using indexes properly

ls: invalid option -- H
Try `ls --help' for more information.
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_cache value = 64 tables
You have a total of 528 tables
You have 64 open tables.
Current table_cache hit rate is 10%, while 100% of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
./tuning-primer.sh: line 331: bc: command not found
Current max_heap_table_size = M
./tuning-primer.sh: line 331: bc: command not found
Current tmp_table_size = M
Of 116 temp tables, 10% 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
./tuning-primer.sh: line 331: bc: command not found
Current read_buffer_size = K
Current table scan ratio = 637 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 0 : 958
Your table locking seems to be fine

[root@unix ~]#
Alıntı ile Cevapla

  #165 (permalink)   iTrader 
Alt 2008-04-30, 09:40
Junior Member
 
Üyelik tarihi: Jun 2007
Mesajlar: 85
Tecrübe Puanı: 0
iTrader: %0/0
C0$kuN is an unknown quantity at this point
Standart

bc yi kurman gerek Makinana
Alıntı ile Cevapla

  #166 (permalink)   iTrader 
Alt Dün, 23:38
TrDownload - ait Kullanıcı Resmi (Avatar)
Webmaster :)
 
Üyelik tarihi: Jun 2005
Nerden: Bursa
Mesajlar: 3.505
Tecrübe Puanı: 6
iTrader: %100/14
TrDownload has a spectacular aura aboutTrDownload has a spectacular aura about
Standart

merhabalar mysql i optimizasyon konusunda biraz zayıfım. my.cnf dosyam aşağıda ne gibi bir değişiklikler yapmalıyım ?

CPU Bilgileri:

PHP- Kodu:
model name      Intel(RPentium(R4 CPU 3.20GHz
stepping        
9
cpu MHz         
3200.047
cache size      
1024 KB 
my.cnf dosyasının içeriği:

PHP- Kodu:
[client]
port            3306
socket          
= /var/run/mysqld/mysqld.sock

[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            
0

[mysqld]
safe-show-database
skip
-innodb
user            
mysql
pid
-file        = /var/run/mysqld/mysqld.pid
socket          
= /var/run/mysqld/mysqld.sock
port            
3306
basedir         
= /usr
datadir         
= /var/lib/mysql
tmpdir          
= /tmp
language        
= /usr/share/mysql/english
skip
-external-locking
log
-slow-queries=/var/log/mysql-slow.log
bind
-address            127.0.0.1

key_buffer              
256M
join_buffer_size        
2M
table_cache             
1024
max_allowed_packet      
16M
sort_buffer_size        
2M
read_buffer_size        
2M
read_rnd_buffer_siz     
4M
tmp_table_size          
128M
thread_stack            
128K
max_heap_table_size     
64M
max_allowed_packet      
64M
bulk_insert_buffer_size 
8M
thread_cache_size       
384
max_connections         
200
table_cache             
1024
#thread_concurrency     = 10
query_cache_limit       4M
query_cache_size        
40M
query_cache_type        
1
default-storage-engine  MyISAM
#log            = /var/log/mysql/mysql.log
log_slow_queries        = /var/log/mysql/mysql-slow.log
long_query_time 
2
#log-queries-not-using-indexes
log_bin                 = /var/log/mysql/mysql-bin.log
expire_logs_days        
10
max_binlog_size         
100M
skip
-bdb


[mysqldump]
quick
quote
-names
max_allowed_packet      
32M 
Top M çıktısı:

PHP- Kodu:
top 00:19:53 up 19 days,  6:32,  1 user,  load average4.373.553.14
Tasks
141 total,   3 running138 sleeping,   0 stopped,   0 zombie
Cpu
(s): 62.6%us31.9%sy,  0.0%ni,  4.0%id,  0.3%wa,  0.3%hi,  0.8%si,  0.0%st
Mem
:   2068160k total,  1924136k used,   144024k free,    90812k buffers
Swap
:  2096472k total,       24k used,  2096448k free,  1399892k cached

  PID USER      PR  NI  VIRT  RES  SHR S 
%CPU %MEM    TIME+  COMMAND
20401 mysql     15   0  387m 225m 4800 S  185 11.2   2833
:39 mysqld
 3208 root      15   0 31772  28m 2540 S    0  1.4   0
:23.60 spamd
 3490 root      15   0 31772  26m  632 S    0  1.3   0
:00.18 spamd
 3491 root      18   0 31772  26m  540 S    0  1.3   0
:00.22 spamd
20315 root      18   0 32184  10m 6164 R    0  0.5   0
:34.21 apache2
 2025 www
-data  18   0 33016  10m 5308 S    0  0.5   0:03.93 apache2
 2120 www
-data  15   0 33264  10m 5312 S    0  0.5   0:02.72 apache2
 2296 www
-data  16   0 32940  10m 5028 S    1  0.5   0:01.94 apache2
 2056 www
-data  15   0 32952  10m 5144 S    0  0.5   0:02.55 apache2
 2241 www
-data  15   0 32952  10m 5108 S    0  0.5   0:01.84 apache2
 2131 www
-data  15   0 32924   9m 5156 S    0  0.5   0:01.35 apache2
 2188 www
-data  15   0 32896   9m 5164 S    0  0.5   0:00.79 apache2
 1906 www
-data  17   0 33372 9.8m 4796 S    0  0.5   0:06.36 apache2
 2096 www
-data  15   0 33280 9948 4780 S    0  0.5   0:01.71 apache2
 2114 www
-data  16   0 32920 9752 4568 S    0  0.5   0:03.89 apache2
 2326 www
-data  15   0 32936 9736 4612 S    0  0.5   0:02.29 apache2
 2133 www
-data  15   0 32696 9720 4568 S    0  0.5   0:02.04 apache2
 1994 www
-data  15   0 32692 9676 4588 S    0  0.5   0:01.77 apache2
 2338 www
-data  15   0 32892 9652 4600 S    0  0.5   0:00.93 apache2
 2320 www
-data  16   0 32700 9632 4516 S    0  0.5   0:00.46 apache2 
tuning primer çıktısı:

PHP- Kodu:
-- MYSQL PERFORMANCE TUNING PRIMER --
             - 
ByMatthew Montgomery -

MySQL Version 5.0.32-Debian_7etch5-log i486

Uptime 
2 days 5 hrs 35 min 41 sec
Avg
qps 30
Total Questions 
5949923
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
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
Current long_query_time = 2 sec.
You have 40630 out of 5949948 that take longer than 2 sec. to complete
The slow query log is enabled.
Your long_query_time seems to be fine

WORKER THREADS
Current thread_cache_size = 384
Current threads_cached = 133
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 200
Current threads_connected = 3
Historic max_used_connections = 136
The number of used connections is 68% of the configured maximum.
Your max_connections variable seems to be fine.

MEMORY USAGE
Max Memory Ever Allocated : 1 G
Configured Max Per-thread Buffers : 1 G
Configured Max Global Buffers : 306 M
Configured Max Memory Limit : 2 G
Physical Memory : 1.97 G

Max memory limit exceeds 90% of physical memory

KEY BUFFER
Current MyISAM index space = 306 M
Current key_buffer_size = 256 M
Key cache miss rate is 1 : 4036
Key buffer fill ratio = 44.00 %
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 = 40 M
Current query_cache_used = 24 M
Current query_cache_limit = 4 M
Current Query cache Memory fill ratio = 60.97 %
Current query_cache_min_res_unit = 4 K
Query Cache is 21 % fragmented
Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
If you have many small queries lower '
query_cache_min_res_unit' to reduce fragmentation.
MySQL won'
t cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size 
2 M
Current record
/read_rnd_buffer_size 3 M
Sort buffer seems to be fine

JOINS
Current join_buffer_size 
2.00 M
You have had 28 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
.

NoteThis script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found
.

OPEN FILES LIMIT
Current open_files_limit 
2258 files
The open_files_limit should typically be set to at least 2x
-3x
that of table_cache 
if you have heavy MyISAM usage.
You currently have open more than 75of your open_files_limit
You should set a higher value 
for open_files_limit in my.cnf

TABLE CACHE
Current table_cache value 
1024 tables
You have a total of 772 tables
You have 1024 open tables
.
Current table_cache hit rate is 53%, while 100of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
Current max_heap_table_size 
64 M
Current tmp_table_size 
128 M
Of 91458 temp tables
31were 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 
1 M
Current table scan ratio 
389 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio 
15
You may benefit from selective 
use of InnoDB.
If 
you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting '
low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting '
concurrent_insert=2
onerileriniz icin şimdiden teşekkurler
Alıntı ile Cevapla

Cevapla


LinkBacks (?)
LinkBack to this Thread: http://forum.iyinet.com/mysql-veritabani-sql/77047-tuning-primer-sh-mysql-tuning-scripti-mysql-performans-raporu.html
Konuyu Başlatan For Type Tarih
Turkwm.com: 5 dakikada hızlı mysql server optimizasyonu This thread Refback 2008-05-15 16:20
Turkwm.com This thread Refback 2008-05-15 13:42
2007 Aralk -Webmaster Kaynak Sitesi This thread Refback 2008-01-15 06:13
tuning-primer.sh mysql tuning scripti - Google - Webmaster Forum / Google Webmaster Fan This thread Refback 2008-01-11 19:23
Mysql Tuning Scripti tuning-primer.sh | Webmaster Blogu This thread Pingback 2007-12-23 21:44
Load sorunu yaşayanlar için genel tartışma konusu - vBulletin SEO Forums This thread Refback 2007-12-12 10:58
Linux & Unix -Webmaster Kaynak Sitesi This thread Refback 2007-12-11 08:55
mysql optimizastonu iin tuning-primer.sh scripti -Webmaster Kaynak Sitesi This thread Pingback 2007-12-06 19:03

Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Tuning Merkezi trebuchet55 Yeni Site Tanıtımları 0 2008-02-24 15:21
Sanal Tuning Alexis Yeni Site Tanıtımları 6 2008-01-18 04:07
sadece tuning, sanal tuning siteleri ile - PR4 Alexis Google PR Link Değişimi 0 2007-05-11 00:50
Tuning Siteleri . Com sverdlow Yeni Site Tanıtımları 2 2006-11-19 11:00
Mysql Asp Performans Sorusu disconnect MySQL Veritabanı SQL 6 2006-10-04 22:16


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 20:20 .


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

Firefox