Board logo

标题: [求助] 大内存WDCP apache & mysql 该如何优化 [打印本页]

作者: tuoputu    时间: 2015-2-10 12:15     标题: 大内存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>
作者: xjll    时间: 2015-9-9 21:55

同求,,,,谁能讲一下呢?
作者: xjll    时间: 2015-9-19 18:35

????????怎么没有人回答呢?
作者: longren916    时间: 2015-11-1 11:05

好像都没人回答的什么情况
作者: daxiekeji    时间: 2018-5-27 11:30

MaxRequestsPerChild   设置为非0 会不会好点,我测试了 再观察中。cpu也是经常跑满




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2