开发者社区> 问答> 正文

dz3.2nignx512m内存2m带宽求服务优化配置

最近一段时间服务器老是出现503错误,然后mysql自动停止。反馈工单后客服给改了下max_request。今天下午测试如下


测试期间,打开网站主页503错误,停止测试后打开网站主页,测试并发100 tps才到7.55 这个数值还有提升的空间嘛,如何做

展开
收起
句号 2015-01-05 13:52:35 8761 0
4 条回答
写回答
取消 提交回答
  • Redz3.2nignx512m内存2m带宽求服务优化配置
    应该是你512m内存太小了吧。你试试升级1G内存试试

    -------------------------

    Redz3.2nignx512m内存2m带宽求服务优化配置
    你没事看看自己机器的free还剩多少(应该是linux的吧),负载平均多少。如果为内存为0了,应用肯定会挂掉。

    -------------------------

    Redz3.2nignx512m内存2m带宽求服务优化配置
    内存还剩蛮多的。看来不是内存的事了
    2015-01-06 12:48:01
    赞同 展开评论 打赏
  • 回2楼大韵科技的帖子
    直接说解决方案就可以了

    -------------------------

    回4楼布尔凱索的帖子
    512 m 每天才300-500pv的访问量足够了

    -------------------------

    回5楼大韵科技的帖子

    [06-Jan-2015 13:19:04]  [pool www] pid 9480
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064d38] curl_exec() /alidata/wwwsource/function/function_filesock.php:68
    [0x00007f0a65064af0] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a650649a0] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064878] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a65064758] +++ dump failed


    [06-Jan-2015 13:26:20]  [pool www] pid 9480
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064d38] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a65064af0] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a650649a0] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064878] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a65064758] +++ dump failed


    [06-Jan-2015 13:28:28]  [pool www] pid 10188
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064d38] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a65064af0] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a650649a0] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064878] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a65064758] +++ dump failed


    [06-Jan-2015 13:28:55]  [pool www] pid 9407
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064d38] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a65064af0] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a650649a0] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064878] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a65064758] +++ dump failed


    [06-Jan-2015 14:17:18]  [pool www] pid 9486
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064cc8] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a65064a80] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a65064930] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064808] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a650646e8] +++ dump failed


    [06-Jan-2015 15:26:07]  [pool www] pid 10186
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064be0] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a65064998] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a65064848] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064720] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a65064600] +++ dump failed


    [06-Jan-2015 15:48:19]  [pool www] pid 9486
    script_filename = /alidata/www/member.php
    [0x00007f0a65065aa0] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a65065858] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a650656e8] dfsockopen() /alidata/www/source/class/class_captcha.php:89
    [0x00007f0a65065540] validate() /alidata/www/source/plugin/cloudcaptcha/seccode/seccode_cloudcaptcha.php:27
    [0x00007f0a65065370] check() /alidata/www/source/class/helper/helper_seccheck.php:132
    [0x00007f0a65065208] check_seccode() /alidata/www/source/function/function_core.php:1341
    [0x00007f0a650650d0] check_seccode() /alidata/www/source/class/helper/helper_form.php:29
    [0x00007f0a65064f48] submitcheck() /alidata/www/source/function/function_core.php:1423
    [0x00007f0a65064990] submitcheck() /alidata/www/source/class/class_member.php:469
    [0x00007f0a65064818] on_register() /alidata/www/source/module/member/member_register.php:19
    [0x00007f0a65064718] +++ dump failed


    [06-Jan-2015 15:50:11]  [pool www] pid 9486
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064cc8] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a65064a80] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a65064930] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064808] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a650646e8] +++ dump failed


    [06-Jan-2015 15:55:54]  [pool www] pid 10188
    script_filename = /alidata/www/plugin.php
    [0x00007f0a65064b40] curl_exec() /alidata/www/source/function/function_filesock.php:68
    [0x00007f0a650648f8] _dfsockopen() /alidata/www/source/function/function_core.php:201
    [0x00007f0a650647a8] dfsockopen() /alidata/www/source/class/class_captcha.php:74
    [0x00007f0a65064680] get() /alidata/www/source/plugin/cloudcaptcha/get.inc.php:14
    [0x00007f0a65064560] +++ dump failed

    -------------------------

    回5楼大韵科技的帖子
    [06-Jan-2015 14:17:18] WARNING: [pool www] child 9486, script '/alidata/www/plugin.php' (request: "POST /plugin.php") executing too slow (1.325587 sec), logging
    [06-Jan-2015 14:17:18] NOTICE: child 9486 stopped for tracing
    [06-Jan-2015 14:17:18] NOTICE: about to trace 9486
    [06-Jan-2015 14:17:18] ERROR: failed to ptrace(PEEKDATA) pid 9486: Input/output error (5)
    [06-Jan-2015 14:17:18] NOTICE: finished trace of 9486
    [06-Jan-2015 15:26:07] WARNING: [pool www] child 10186, script '/alidata/www/plugin.php' (request: "GET /plugin.php") executing too slow (1.277215 sec), logging
    [06-Jan-2015 15:26:07] NOTICE: child 10186 stopped for tracing
    [06-Jan-2015 15:26:07] NOTICE: about to trace 10186
    [06-Jan-2015 15:26:07] ERROR: failed to ptrace(PEEKDATA) pid 10186: Input/output error (5)
    [06-Jan-2015 15:26:07] NOTICE: finished trace of 10186
    [06-Jan-2015 15:48:19] WARNING: [pool www] child 9486, script '/alidata/www/member.php' (request: "POST /member.php") executing too slow (1.307745 sec), logging
    [06-Jan-2015 15:48:19] NOTICE: child 9486 stopped for tracing
    [06-Jan-2015 15:48:19] NOTICE: about to trace 9486
    [06-Jan-2015 15:48:19] ERROR: failed to ptrace(PEEKDATA) pid 9486: Input/output error (5)
    [06-Jan-2015 15:48:19] NOTICE: finished trace of 9486
    [06-Jan-2015 15:50:11] WARNING: [pool www] child 9486, script '/alidata/www/plugin.php' (request: "POST /plugin.php") executing too slow (1.132193 sec), logging
    [06-Jan-2015 15:50:11] NOTICE: child 9486 stopped for tracing
    [06-Jan-2015 15:50:11] NOTICE: about to trace 9486
    [06-Jan-2015 15:50:11] ERROR: failed to ptrace(PEEKDATA) pid 9486: Input/output error (5)
    [06-Jan-2015 15:50:11] NOTICE: finished trace of 9486
    [06-Jan-2015 15:55:54] WARNING: [pool www] child 10188, script '/alidata/www/plugin.php' (request: "GET /plugin.php") executing too slow (1.035964 sec), logging
    [06-Jan-2015 15:55:54] NOTICE: child 10188 stopped for tracing
    [06-Jan-2015 15:55:54] NOTICE: about to trace 10188
    [06-Jan-2015 15:55:54] ERROR: failed to ptrace(PEEKDATA) pid 10188: Input/output error (5)
    [06-Jan-2015 15:55:54] NOTICE: finished trace of 10188

    -------------------------

    回9楼布尔凱索的帖子
    total       used       free     shared    buffers     cached
    Mem:        507484     501736       5748          0      57352     140104
    -/+ buffers/cache:     304280     203204
    Swap:            0          0          0
    2015-01-06 12:39:48
    赞同 展开评论 打赏
  • 如有问题可以联系我处理

    -------------------------

    不看错误日志,在这里瞎猜可猜不出来

    2015-01-05 16:04:39
    赞同 展开评论 打赏
  • Redz3.2nignx512m内存2m带宽求服务优化配置
    我用的WDCP,dz3.2,没有问题啊,我的站点:http://www.bbseat.com.cn
    2015-01-05 14:53:50
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
内存取证与IaaS云平台恶意行 为的安全监控 立即下载
云服务器ECS内存增强型实例re6全新发布 立即下载
低代码开发师(初级)实战教程 立即下载