首页 > 解决方案 > 带有 100kb JSON blob 的非常慢的 apache 请求

问题描述

堆栈: ELB > EC2 > Apache > Laravel

问题:

故障排除:

real example from laptop to ec2:

     time_namelookup:  0.000707s
        time_connect:  0.095264s
     time_appconnect:  0.000000s
    time_pretransfer:  0.095421s
       time_redirect:  0.000000s
  time_starttransfer:  0.201627s
                     ----------
          time_total:  3.734784s


real example from laptop to ec2:

     time_namelookup:  0.000373s
        time_connect:  0.097481s
     time_appconnect:  0.000000s
    time_pretransfer:  0.097572s
       time_redirect:  0.000000s
  time_starttransfer:  0.205721s
                     ----------
          time_total:  15.709542s

real example from ec2 to itself:

     time_namelookup:  0.000038s
        time_connect:  0.000670s
     time_appconnect:  0.000000s
    time_pretransfer:  0.000722s
       time_redirect:  0.000000s
  time_starttransfer:  0.003291s
                     ----------
          time_total:  0.102886s

标签: phplaravelapacheamazon-ec2

解决方案


推荐阅读