Mysql Cpu Sorunu - Google Fan Webmaster Forum
Google Fan Webmaster Forum  
herşeyi sana yazdım

Geri git   Google Fan Webmaster Forum > Webmaster Genel > Site & Server Administration
KEY
Kayıt ol Articles Sosyal Gruplar Forumları Okundu Kabul Et

Site & Server Administration Server Yönetimi hakkında, .htaccess, Apache configuration ve log analiz, güvenlik

Cevapla
 
LinkBack Seçenekler
  1  
Alt 08-08-2008, 16:15:59
Üyeliği durduruldu
 
Standart Mysql Cpu Sorunu

Arkdaşlar mysql aşırı derecede Cpu yiyor şuan %20 leri geçti acaba bunun nedeni neolabilir .Vps deki sitelerin cpu oranları normal herşey normal gözüküyo ama mysql çok cpu yiyor
Alıntı ile Cevapla
  2  
Alt 08-08-2008, 16:53:18
Üyeliği durduruldu
 
Standart

Siten nedir?
Alıntı ile Cevapla
  3  
Alt 08-08-2008, 16:57:01
Üyeliği durduruldu
 
Standart

Site yok vps var bende 30 a yakında site barındırıyorum tüm değerler normal ama mysql çok fazla cpu yiyor.
Alıntı ile Cevapla
  4  
Alt 08-08-2008, 17:02:28
 
Standart

vps de hangi siteler çalışıyor onu soruyor
__________________
facebook.com
Alıntı ile Cevapla
  5  
Alt 08-08-2008, 17:13:20
Üyeliği durduruldu
 
Standart

Alıntı:
tolgahat Nickli Üyeden Alıntı Mesajı göster
vps de hangi siteler çalışıyor onu soruyor
30 tane site var hangi birini yazayım öğle büyük bi site yok dediğim gibi herşey normal ama mysql neden böyle anlamadım
Alıntı ile Cevapla
  6  
Alt 08-08-2008, 18:33:53
Üyeliği durduruldu
 
Standart

30tane sitenden biri ya aşırı saldırı alıyor yada başka birsey var bunu sitelerı sen demeden kımse sana yardımcı olamazkı.
Alıntı ile Cevapla
  7  
Alt 08-08-2008, 20:59:01
 
Standart

eğer forumlar varsa siteler içinde.. bi pluginlere disable ettir öyle bi bak. en basitinden çoğu forumda kullanılan topx eklentisi mysql i bi güzel öper.
Alıntı ile Cevapla
  8  
Alt 08-08-2008, 22:23:02
Üyeliği durduruldu
 
Standart

mysql beni deli ediyor lanet olsn hemi
Alıntı ile Cevapla
  9  
Alt 08-08-2008, 22:38:43
 
Standart

bu optimize scriptini sunucuna yükle ve çalıştır, çıktıyı , my.cnf(etc/my.cnf) dosyası ile alt alta buraya koy,

ayrıca , sistem,ram,cpu,distro,total swap bilgilerinide eklemelisin ve son olarak,

Optimize için SSH komutları
Alıntı:
1-) wget http://day32.com/MySQL/tuning-primer.sh
2-) chmod u+x tuning-primer.sh

3-) ./tuning-primer.sh
Alıntı ile Cevapla
  10  
Alt 09-08-2008, 00:44:32
Üyeliği durduruldu
 
Standart

Makinanın özellikleri Amd 5000 + 1 gb ram

dediğiniz script i kurdum buyrun çıktı buda

Alıntı:
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -

MySQL Version 5.0.51a-community i686

Uptime = 0 days 10 hrs 29 min 57 sec
Avg. qps = 170
Total Questions = 6444095
Threads Connected = 3

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:
MySQL :: MySQL 5.0 Reference Manual :: 5.1.3 System Variables
Visit MySQL :: MySQL Enterprise Advisors
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 122 out of 6444116 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 MySQL :: MySQL 5.0 Reference Manual :: 6.3 Point-in-Time Recovery

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 = 100
Current threads_connected = 2
Historic max_used_connections = 21
The number of used connections is 21% of the configured maximum.
Your max_connections variable seems to be fine.

MEMORY USAGE
Max Memory Ever Allocated : 74 M
Configured Max Per-thread Buffers : 268 M
Configured Max Global Buffers : 17 M
Configured Max Memory Limit : 286 M
Physical Memory : 1010.31 M
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 231 M
Current key_buffer_size = 7 M
Key cache miss rate is 1 : 83
Key buffer fill ratio = 42.00 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is supported but not enabled
Perhaps you should set the query_cache_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 1737 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 = 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 = 64 tables
You have a total of 3987 tables
You have 64 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 = 32 M
Of 43471 temp tables, 14% 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 = 128 K
Current table scan ratio = 26 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 3779
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'.
Alıntı ile Cevapla
Cevapla


Bookmarks

Seçenekler

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Açık



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 22:28:28.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş

Hosting by Radore Hosting

İçerik sağlayacı paylaşım sitelerinden biri olan R10.net WebMaster Forum Adresimizde 5651 Sayılı Kanun’un 8. Maddesine ve T.C.K’nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. R10.net hakkında yapılacak tüm hukuksal Şikayetler adresi ile iletişime geçilmesi halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde R10.net yönetimi olarak tarafımızdan gereken işlemler yapılacak ve Avukatlarımız size dönüş yapacaktır.
ARGUS_OK

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252