![]() |
|
|||||||
| MySQL Veritabanı SQL SQL MySQL Access MSSQL Oracle Veritabani Database |
![]() |
|
|
LinkBack (10) | Seçenekler | Stil |
|
|||
|
Merhaba iyinet bana yardımcı olurmusun sunucum donanım olarak çok iyibir makine fakat serverde en ufak sql işlemi olsa makıne kasıyor biçok sitemi kullanmayıyorum 1k hitli video sitemin sqli bile kaıyo nerdeyse aşagıda degerler var bu değerler 1k lik site ile olusan değerler 20k ya yakın bir sitemi actım an makşnem down olucak hale geliyor.
PHP- Kodu:
|
|
|||
|
Kafam basmadı bu işe
![]() Intel e6600 fs 2.4 Core2duo 2 gb ram Kod:
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 4.1.22 i386
Uptime = 5 days 1 hrs 31 min 12 sec
Avg. qps = 26
Total Questions = 11764611
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/4.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 NOT enabled.
Current long_query_time = 10 sec.
You have 1 out of 11764632 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/en/point-in-time-recovery.html
WORKER THREADS
Current thread_cache_size = 0
Current threads_cached = 0
Current threads_per_sec = 2
Historic threads_per_sec = 1
Threads created per/sec are overrunning threads cached
You should raise thread_cache_size
MAX CONNECTIONS
Current max_connections = 500
Current threads_connected = 2
Historic max_used_connections = 16
The number of used connections is 3% 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 : 92 M
Configured Max Per-thread Buffers : 1 G
Configured Max Global Buffers : 49 M
Configured Max Memory Limit : 1 G
Physical Memory : 1.99 G
Max memory limit seem to be within acceptable norms
KEY BUFFER
Current MyISAM index space = 301 K
Current key_buffer_size = 7 M
Key cache miss rate is 1 : 281
Key buffer fill ratio = 100.00 %
Your key_buffer_size seems to be fine
QUERY CACHE
Query cache is enabled
Current query_cache_size = 32 M
Current query_cache_used = 21 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 68.65 %
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 = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 132.00 K
You have had 3753 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 = 11095 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 = 128 tables
You have a total of 808 tables
You have 128 open tables.
Current table_cache hit rate is 0%, 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 = 10 M
Of 118038 temp tables, 99% were created on disk
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 = 128 K
Current table scan ratio = 247 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 6437
Your table locking seems to be fine
__________________
18/03/2004 * Ateş Tanrısı * oxxi.net |
|
||||
|
Alıntı:
Değişikliği devreye almanızın ardından mysql 2-3 gün çalışsın. 2-3 gün sonunda my.cnf dosyanızın içeriği ve yeni bir mysql performans raporu ile yeniden yazın, kalan ayarları birlikte yapalım. |
|
||||
|
Merhabalar, sizden de aynı şeyleri yapmanızı isteyeceğim.
Öncelikle belleğe göre my.cnf ayarları bölümüneki hazır paket ayarlardan makinanıza uygun olanı seçip uygulayın. Değişikliği devreye almanızın ardından mysql 2-3 gün çalışsın. 2-3 gün sonunda my.cnf dosyanızın içeriği ve yeni bir mysql performans raporu ile yeniden yazın, kalan ayarları birlikte yapalım. |
|
|||
|
sağol iyinet peki cpaneldede etc/my.cnf bu dizindemi
etc/my.cnf dizininde [mysqld] set-variable = max_connections=500 set-variable = wait_timeout=50 set-variable = interactive_timeout=50 safe-show-database bu sekılde var fakat bu my.cnf yi arkadaş elıylemi olusturdu ole hatırlıyorum cpanelde faklı biyerde olma itiamli varmı |
|
||||
|
rapor şu şekilde:
teşekkürler.
__________________
cesaret bilgisizlikten gelirse, cehalettir. |
|
||||
|
tuning-primer.sh ile forumdaki örneklere bakarak yaptığım ayarlar ile 1 haftadır gözle görülür performans artışı sağladım.
Aşağıdaki son rapora göre kalan bir kaç problem var onları da çözmeliyim, kontrol ve yardım ederseniz sevinirim. AMD 2.8 - 2GB RAM my.cnf Alıntı:
Alıntı:
|
|
||||
|
Alıntı:
Veritabaninin bu hali ile my.cnf ayarlarini daha iyi hale getirebilecegimizi sanmiyorum. Veritabaninda sanki yeterince index yok gibi. "You have 154746 out of 11729358 that take longer than 4 sec." Bu satir 154746 sorgunun 4 saniyeden fazla surdugunu soyluyor. Sorgular tablo uzerinde index olmayinca uzun surer. "MyISAM index space = 2 M" Ya tablo boylarin cok ufak yada yukarida dedigim gibi tablolarinda yeterince index yok. Innodb kullaniyormusun? Replication kullanmiyorsan asagidaki satiri kaldir: set-variable=local-infile=0 Veritabanin uzerinde calisan uygulama nedir (gizli bir bilgi degilse)? Konu iyinet tarafından (2008-03-26 Saat 00:07 ) değiştirilmiştir.. |
![]() |
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 | |
| iyinet webmaster forumu 2008 seo yarışması 2008 Mayıs | This thread | Refback | 2008-07-12 04:39 | |
| iyinet webmaster forumu 2008 seo yarışması - iyinet webmaster forumu 2008 seo yarışması Mysql Performans Testi | This thread | Pingback | 2008-05-27 19:14 | |
| 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 | |
| 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 |