dpzbh1779 2014-03-07 09:58
浏览 10
已采纳

AWS EC2 PHP(Ubuntu)需要10秒以上才能加载1页

site: cuddledog.com

This just started happening, it was running quick and smoothly before.

I've tried restarting the EC2 instance with no luck in speed.

Network load times on all PHP pages are 10+ seconds (up to over 2 minutes)

The PHP on that page is extremely simple

Example

  • 写回答

1条回答 默认 最新

  • duancao1951 2014-03-07 11:01
    关注

    Found out through apache2 logs that my IP was being flooded with advertisement as a proxy.

    Got a new IP and everything seems to be working fine now.

    I'll add troubleshooting steps for those who encounter this same issue.

    See if you can access your server internally

    # curl localhost:80
    

    If you're receiving a long response time or a timeout, then look at your apache logs.

    Ubuntu default location: # tail -f /var/log/apache2/error.log

    What I was seeing is thousands of lines of entries trying to use my web server as a proxy for ads. After some research online, this happens mostly when you use an IP that was used before for this purpose. Re requesting a new IP from your ISP (AWS in this instance) will get you back up and running.

    If not then start troubleshooting external access # curl domain.com or # curl x.x.x.x

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Windows Script Host 无法找到脚本文件"C:\ProgramData\Player800\Cotrl.vbs”
  • ¥15 matlab自定义损失函数
  • ¥15 35114 SVAC视频验签的问题
  • ¥15 impedancepy
  • ¥15 求往届大挑得奖作品(ppt…)
  • ¥15 如何在vue.config.js中读取到public文件夹下window.APP_CONFIG.API_BASE_URL的值
  • ¥50 浦育平台scratch图形化编程
  • ¥20 求这个的原理图 只要原理图
  • ¥15 vue2项目中,如何配置环境,可以在打完包之后修改请求的服务器地址
  • ¥20 微信的店铺小程序如何修改背景图