{% r.title %}
Read more…
Sık kullanılan optimizasyon ayarları şöyledir.
Mysql ayar dosyası /etc/my.cnf
[mysqld] max_connections = 300 key_buffer = 32M myisam_sort_buffer_size = 32M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 4000 thread_cache_size = 286 interactive_timeout = 25 wait_timeout = 7000 connect_timeout = 10 max_allowed_packet = 16M max_connect_errors = 10 query_cache_limit = 2M query_cache_size = 12M query_cache_type = 1 tmp_table_size = 16M skip-innodb [mysqld_safe] open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M [mysqlhotcopy] interactive-timeout
Apache ayar dosyası /usr/local/apache/conf/httpd.conf yada /etc/httpd/conf/httpd.conf
RLimitCPU 20 30 RLimitMEM 3000000 RLimitNPROC 4 8 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 1 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 1000
not: Ayar dosyaları centos vb. dağıtımlara göre verilmiştir. Diğer dağıtımlarda yerleri ve dosya isimleri değişebilir…