Apache - 负载/带宽非常高,请求模式异常

Apache - 负载/带宽非常高,请求模式异常

我是一名 Web 开发人员,有一台服务器,用作某种开发机器。因此,我使用 Apache 的经验是,我可以随意摆弄并完成基本工作/使用 Google 搜索来获得我需要的答案。

周末,我们的服务器负载非常大,大约是平均带宽使用量的 1000 倍。我的 Apache 访问日志中有几行类似于下面的内容。

81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/2011/10/a.jpg HTTP/1.0" 200 1671717 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/2011/10/b.jpg HTTP/1.0" 200 2682375 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/2011/07/c.jpg HTTP/1.0" 200 1009591 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/d.jpg HTTP/1.0" 200 365209 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/e.jpg HTTP/1.0" 200 410225 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/2011/10/b.jpg HTTP/1.0" 200 2682375 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/f.jpg HTTP/1.0" 200 446529 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/g.jpg HTTP/1.0" 200 2727018 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/h.jpg HTTP/1.0" 200 2504361 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/i.jpg HTTP/1.0" 200 520036 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/j.jpg HTTP/1.0" 200 2589152 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/j.jpg HTTP/1.0" 200 4665478 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/2011/07/c.jpg HTTP/1.0" 200 1009591 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/k.jpg HTTP/1.0" 200 1936692 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/l.jpg HTTP/1.0" 200 2777877 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/eels.jpg HTTP/1.0" 200 2451371 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/cows91.jpg HTTP/1.0" 200 1297337 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/m.jpg HTTP/1.0" 200 2551047 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/n.jpg HTTP/1.0" 200 2977841 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/e.jpg HTTP/1.0" 200 410225 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:15 +0200] "GET /wp-content/uploads/photos/o.jpg HTTP/1.0" 200 1999738 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/photos/p.jpg HTTP/1.0" 200 1994689 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/photos/d.jpg HTTP/1.0" 200 365209 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/2011/10/a.jpg HTTP/1.0" 200 1671717 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/2011/10/b.jpg HTTP/1.0" 200 2682375 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/2011/07/c.jpg HTTP/1.0" 200 1009591 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/photos/d.jpg HTTP/1.0" 200 365209 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/photos/e.jpg HTTP/1.0" 200 410225 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/2011/10/a.jpg HTTP/1.0" 200 1671717 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/2011/10/b.jpg HTTP/1.0" 200 2682375 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/2011/07/c.jpg HTTP/1.0" 200 1009591 "-" "-"
81.12.34.56 - - [30/Oct/2011:01:08:16 +0200] "GET /wp-content/uploads/photos/d.jpg HTTP/1.0" 200 365209 "-" "-"

同一组图像被反复请求我自己的服务器!另外,用户代理只是一个破折号。

  • 一旦我重新启动服务器,文件下载就会再次开始。
  • 我在访问日志中发现了几行/feed由用户代理请求的 内容"-" "Apple-PubSub/65.28"。我检查了用户代理,这似乎是有人要求他们的 Mac OS 管理他们的订阅源。
  • 该网站使用 WordPress 构建。但是,没有安装任何插件等。
  • 我正在使用函数getimagesize和库 timthumb (Php)。这些函数和库是否会导致这些问题?

相关内容