大内存WDCP apache & mysql 该如何优化
请问阿里云16G内存,WDCP apache 和mysql 应该如何优化?=================================
mysql 目前默认设置如下:
配置文件 /www/wdlinux/etc/my.cnf
最大连接数max_connections 300
连接时间wait_timeout 30
缓冲key_buffer_size 128M
查询缓存query_cache_size 16
表缓存table_open_cache 128M
临时表大小tmp_table_size 16
==================================
apache httpd-wdl.conf 配置:
Timeout 30
KeepAlive Off
MaxKeepAliveRequests 600
KeepAliveTimeout 5
UseCanonicalName Off
ServerTokens Prod
ServerSignature Off
HostnameLookups Off
AddType application/x-httpd-php .php
DirectoryIndex index.html index.php index.htm
<IfModule mpm_worker_module>
ServerLimit 32
ThreadLimit 256
StartServers 12
MaxClients 2048
MinSpareThreads 50
MaxSpareThreads 256
ThreadsPerChild 256
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_prefork_module>
ServerLimit 1024
StartServers 5
MinSpareServers 3
MaxSpareServers 30
MaxClients 1024
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_itk_module>
ServerLimit 1024
StartServers 5
MinSpareServers 3
MaxSpareServers 30
MaxClients 1024
MaxRequestsPerChild 0
</IfModule> 同求,,,,谁能讲一下呢? ????????怎么没有人回答呢? 好像都没人回答的什么情况 MaxRequestsPerChild 设置为非0 会不会好点,我测试了 再观察中。cpu也是经常跑满
页:
[1]