Kucuk bir vps sunucu uzerinde web siteleri host ediliyor. Vps 1GB ram e sahip. Mysql 5.0 bazen 'Too many connections' hatasi veriyor. Cozum icin max connections sayisini 500 yaptim ama sonuc alamadim. Ne tavsiye edersiniz my.cnf da asagidakiler var
[mysqld] skip-bdb max_connections = 500 query_cache_size = 64M query_cache_type= 1 query_cache_limit= 4M thread_cache_size=4 log-slow-queries=/var/log/mysqlslowquery.log log_queries_not_using_indexes default-character-set=utf8 default-collation=utf8_turkish_ci character-set-server=utf8 collation-server=utf8_turkish_ci init-connect='SET NAMES utf8' ...... mysqltuner verileri [--] Up for: 2h 21m 26s (100K q [11.845 qps], 7K conn, TX: 444M, RX: 12M) [--] Reads / Writes: 99% / 1% [--] Total buffers: 98.0M global + 2.7M per thread (500 max threads) [!!] Maximum possible memory usage: 1.4G (146% of installed RAM) [OK] Slow queries: 2% (2K/100K) [OK] Highest usage of available connections: 17% (88/500) [OK] Key buffer size / total MyISAM indexes: 8.0M/224.7M [OK] Key buffer hit rate: 100.0% (2M cached / 648 reads) [!!] Query cache efficiency: 0.0% (0 cached / 74K selects) [OK] Query cache prunes per day: 0 [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 45K sorts) [OK] Temporary tables created on disk: 0% (0 on disk / 3K total) [OK] Thread cache hit rate: 92% (541 created / 7K connections) [OK] Table cache hit rate: 82% (29 open / 35 opened) [OK] Open file limit used: 1% (49/2K) [OK] Table locks acquired immediately: 100% (159K immediate / 159K locks) [OK] InnoDB data size / buffer pool: 1.3M/8.0M
_______________________________________________ Linux-sunucu E-Posta Listesi Linux-sunucu@liste.linux.org.tr Liste kurallarını http://liste.linux.org.tr/kurallar.php bağlantısından okuyabilirsiniz; Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1 dakika içinde üyeliğinizi sonlandırabilirsiniz. https://liste.linux.org.tr/mailman/listinfo/linux-sunucu