Ayhan ARDA

Tuning Primer Kurulumu ve Kullanımı

<h4>Tuning Primer Kurulumu ve Kullan&inodot;m&inodot;<&sol;h4>&NewLine;<p>Tuning Primer bir Mysql Tuner Alternatifi &comma; a&scedil;a&gbreve;&inodot;daki komutlar&inodot; s&inodot;ras&inodot; ile dosyas&inodot;n&inodot; indirip çal&inodot;&scedil;t&inodot;rabilirsiniz&period; Mysql Tuner kadar olmasada yeterli bilgiler mevcut ve kullanmaya de&gbreve;er&period;<&sol;p>&NewLine;<p>&lbrack;root&commat;ayhanarda ~&rsqb;&num; <strong>cd &sol;usr&sol;local&sol;bin<&sol;strong><&sol;p>&NewLine;<p>&lbrack;root&commat;ayhanarda bin&rsqb;&num; <strong>wget https&colon;&sol;&sol;launchpadlibrarian&period;net&sol;78745738&sol;tuning-primer&period;sh<&sol;strong><&sol;p>&NewLine;<p>&Scedil;imdi s&inodot;ra çal&inodot;&scedil;t&inodot;rmaya geldi&period;<&sol;p>&NewLine;<p>&lbrack;root&commat;ayhanarda bin&rsqb;&num; <strong>tuning-primer&period;sh<&sol;strong><&sol;p>&NewLine;<p>Çal&inodot;&scedil;t&inodot;r&inodot;ld&inodot;&gbreve;&inodot;nda mysql in conf u ile elde etti&gbreve;i de&gbreve;erleri en iyi optimizasyon için kar&scedil;&inodot;la&scedil;t&inodot;rarak size öneriler sunuyor&period;<&sol;p>&NewLine;<p>Mysql in versiyonundan ne kadar süredir servis verdi&gbreve;ine &comma; aç&inodot;k oldu&gbreve;u son süre içinde kaç query ye cevap verdi&gbreve;ine&comma; anl&inodot;k ba&gbreve;lant&inodot; say&inodot;s&inodot;na &comma; slow query olup olmad&inodot;&gbreve;&inodot;na &comma; cache size &inodot;n&inodot;z&inodot;n yeterli olup olmad&inodot;&gbreve;&inodot;na &comma; max connections de&gbreve;erinizin anl&inodot;k de&gbreve;erinizi kar&scedil;&inodot;lay&inodot;p kar&scedil;&inodot;lamad&inodot;&gbreve;&inodot;na &comma; memory kullan&inodot;m&inodot;n&inodot;za &comma; join lerinize &comma; temp alan&inodot;n&inodot;za &comma; tablo lock say&inodot;n&inodot;za kadar ölçüp biçip size öneriler sunuyor&period; Örne&gbreve;in ben çaql&inodot;&scedil;t&inodot;rd&inodot;mda ç&inodot;kt&inodot;s&inodot; a&scedil;a&gbreve;&inodot;daki gibi oldu&period;<&sol;p>&NewLine;<p>Ancak öncesinde 48 saat kadar mysql servisinizin aç&inodot;k olmas&inodot; daha do&gbreve;ru sonuçlar alman&inodot;z&inodot; sa&gbreve;layacakt&inodot;r&period;<&sol;p>&NewLine;<p>MySQL Version 10&period;0&period;34-MariaDB x86&lowbar;64<&sol;p>&NewLine;<p>Uptime &equals; 1 days 18 hrs 21 min 54 sec<br &sol;>&NewLine;Avg&period; qps &equals; 1402<br &sol;>&NewLine;Total Questions &equals; 213875408<br &sol;>&NewLine;Threads Connected &equals; 34<&sol;p>&NewLine;<p>SLOW QUERIES<br &sol;>&NewLine;The slow query log is NOT enabled&period;<br &sol;>&NewLine;Current long&lowbar;query&lowbar;time &equals; 10&period;000000 sec&period;<br &sol;>&NewLine;You have 8 out of 213875496 that take longer than 10&period;000000 sec&period; to complete<br &sol;>&NewLine;Your long&lowbar;query&lowbar;time seems to be fine<&sol;p>&NewLine;<p>WORKER THREADS<br &sol;>&NewLine;Current thread&lowbar;cache&lowbar;size &equals; 200<br &sol;>&NewLine;Current threads&lowbar;cached &equals; 103<br &sol;>&NewLine;Current threads&lowbar;per&lowbar;sec &equals; 0<br &sol;>&NewLine;Historic threads&lowbar;per&lowbar;sec &equals; 0<br &sol;>&NewLine;Your thread&lowbar;cache&lowbar;size is fine<&sol;p>&NewLine;<p>MAX CONNECTIONS<br &sol;>&NewLine;Current max&lowbar;connections &equals; 200<br &sol;>&NewLine;Current threads&lowbar;connected &equals; 35<br &sol;>&NewLine;Historic max&lowbar;used&lowbar;connections &equals; 137<br &sol;>&NewLine;The number of used connections is 68&percnt; of the configured maximum&period;<br &sol;>&NewLine;Your max&lowbar;connections variable seems to be fine&period;<&sol;p>&NewLine;<p>No InnoDB Support Enabled&excl;<&sol;p>&NewLine;<p>MEMORY USAGE<br &sol;>&NewLine;Max Memory Ever Allocated &colon; 13&period;54 G<br &sol;>&NewLine;Configured Max Per-thread Buffers &colon; 8&period;38 G<br &sol;>&NewLine;Configured Max Global Buffers &colon; 7&period;79 G<br &sol;>&NewLine;Configured Max Memory Limit &colon; 16&period;18 G<br &sol;>&NewLine;Physical Memory &colon; 23&period;36 G<br &sol;>&NewLine;Max memory limit seem to be within acceptable norms<&sol;p>&NewLine;<p>KEY BUFFER<br &sol;>&NewLine;Current MyISAM index space &equals; 1&period;53 G<br &sol;>&NewLine;Current key&lowbar;buffer&lowbar;size &equals; 1&period;00 G<br &sol;>&NewLine;Key cache miss rate is 1 &colon; 99348<br &sol;>&NewLine;Key buffer free ratio &equals; 54 &percnt;<br &sol;>&NewLine;Your key&lowbar;buffer&lowbar;size seems to be too high&period;<br &sol;>&NewLine;Perhaps you can use these resources elsewhere<&sol;p>&NewLine;<p>QUERY CACHE<br &sol;>&NewLine;Query cache is enabled<br &sol;>&NewLine;Current query&lowbar;cache&lowbar;size &equals; 800 M<br &sol;>&NewLine;Current query&lowbar;cache&lowbar;used &equals; 800 M<br &sol;>&NewLine;Current query&lowbar;cache&lowbar;limit &equals; 100 M<br &sol;>&NewLine;Current Query cache Memory fill ratio &equals; 100&period;00 &percnt;<br &sol;>&NewLine;Current query&lowbar;cache&lowbar;min&lowbar;res&lowbar;unit &equals; 4 K<br &sol;>&NewLine;MySQL won&&num;8217&semi;t cache query results that are larger than query&lowbar;cache&lowbar;limit in size<&sol;p>&NewLine;<p>SORT OPERATIONS<br &sol;>&NewLine;Current sort&lowbar;buffer&lowbar;size &equals; 1 M<br &sol;>&NewLine;Current read&lowbar;rnd&lowbar;buffer&lowbar;size &equals; 768 K<br &sol;>&NewLine;Sort buffer seems to be fine<&sol;p>&NewLine;<p>JOINS<br &sol;>&NewLine;&sol;usr&sol;local&sol;bin&sol;tuning-primer&period;sh&colon; line 402&colon; export&colon; &grave;2097152&&num;8242&semi;&colon; not a valid identifier<br &sol;>&NewLine;Current join&lowbar;buffer&lowbar;size &equals; 40&period;00 M<br &sol;>&NewLine;You have had 576657 queries where a join could not use an index properly<br &sol;>&NewLine;You have had 1303 joins without keys that check for key usage after each row<br &sol;>&NewLine;join&lowbar;buffer&lowbar;size &gt&semi;&equals; 4 M<br &sol;>&NewLine;This is not advised<br &sol;>&NewLine;You should enable &&num;8220&semi;log-queries-not-using-indexes&&num;8221&semi;<br &sol;>&NewLine;Then look for non indexed joins in the slow query log&period;<&sol;p>&NewLine;<p>OPEN FILES LIMIT<br &sol;>&NewLine;Current open&lowbar;files&lowbar;limit &equals; 138451 files<br &sol;>&NewLine;The open&lowbar;files&lowbar;limit should typically be set to at least 2x-3x<br &sol;>&NewLine;that of table&lowbar;cache if you have heavy MyISAM usage&period;<br &sol;>&NewLine;Your open&lowbar;files&lowbar;limit value seems to be fine<&sol;p>&NewLine;<p>TABLE CACHE<br &sol;>&NewLine;Current table&lowbar;open&lowbar;cache &equals; 69120 tables<br &sol;>&NewLine;Current table&lowbar;definition&lowbar;cache &equals; 65960 tables<br &sol;>&NewLine;You have a total of 59378 tables<br &sol;>&NewLine;You have 65487 open tables&period;<br &sol;>&NewLine;The table&lowbar;cache value seems to be fine<&sol;p>&NewLine;<p>TEMP TABLES<br &sol;>&NewLine;Current max&lowbar;heap&lowbar;table&lowbar;size &equals; 256 M<br &sol;>&NewLine;Current tmp&lowbar;table&lowbar;size &equals; 1&period;46 G<br &sol;>&NewLine;Of 17855233 temp tables&comma; 32&percnt; were created on disk<br &sol;>&NewLine;Effective in-memory tmp&lowbar;table&lowbar;size is limited to max&lowbar;heap&lowbar;table&lowbar;size&period;<br &sol;>&NewLine;Perhaps you should increase your tmp&lowbar;table&lowbar;size and&sol;or max&lowbar;heap&lowbar;table&lowbar;size<br &sol;>&NewLine;to reduce the number of disk-based temporary tables<br &sol;>&NewLine;Note&excl; BLOB and TEXT columns are not allow in memory tables&period;<br &sol;>&NewLine;If you are using these columns raising these values might not impact your<br &sol;>&NewLine;ratio of on disk temp tables&period;<&sol;p>&NewLine;<p>TABLE SCANS<br &sol;>&NewLine;Current read&lowbar;buffer&lowbar;size &equals; 1 M<br &sol;>&NewLine;Current table scan ratio &equals; 309 &colon; 1<br &sol;>&NewLine;read&lowbar;buffer&lowbar;size seems to be fine<&sol;p>&NewLine;<p>TABLE LOCKING<br &sol;>&NewLine;Current Lock Wait ratio &equals; 1 &colon; 1582<br &sol;>&NewLine;You may benefit from selective use of InnoDB&period;<br &sol;>&NewLine;If you have long running SELECT&&num;8217&semi;s against MyISAM tables and perform<br &sol;>&NewLine;frequent updates consider setting &&num;8216&semi;low&lowbar;priority&lowbar;updates&equals;1&&num;8217&semi;<&sol;p>&NewLine;<p>Ayhan ARDA<&sol;p>&NewLine;&NewLine;

Mobil sürümden çık