【问题标题】:CentOS VirtualBox 5 second latency on http requestsCentOS VirtualBox 5 秒的 http 请求延迟
【发布时间】:2012-10-05 17:57:40
【问题描述】:

我在我的 OSX 10.8.2 机器上的 VirtualBox 4.2.1 内运行 centos 6.3,遇到了我不理解的延迟问题。基本上,对任何地方的每个 http 请求都有额外的 5000 毫秒延迟。 Ping 没有额外的延迟。

[vagrant@localhost ~]$ curl -o /dev/null https://google.com -w ""
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
110   220  110   220    0     0     42      0  0:00:05  0:00:05 --:--:--  7586
[vagrant@localhost ~]$ curl -o /dev/null https://google.com -w ""
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
110   220  110   220    0     0     42      0  0:00:05  0:00:05 --:--:--  7586
[vagrant@localhost ~]$ curl -o /dev/null https://google.com -w ""
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
110   220  110   220    0     0     42      0  0:00:05  0:00:05 --:--:--  7857
[vagrant@localhost ~]$ ping google.com
PING google.com (74.125.224.66) 56(84) bytes of data.
64 bytes from nuq04s07-in-f2.1e100.net (74.125.224.66): icmp_seq=1 ttl=63 time=7.64 ms
64 bytes from nuq04s07-in-f2.1e100.net (74.125.224.66): icmp_seq=2 ttl=63 time=6.26 ms
64 bytes from nuq04s07-in-f2.1e100.net (74.125.224.66): icmp_seq=3 ttl=63 time=8.69 ms
64 bytes from nuq04s07-in-f2.1e100.net (74.125.224.66): icmp_seq=4 ttl=63 time=7.89 ms
64 bytes from nuq04s07-in-f2.1e100.net (74.125.224.66): icmp_seq=5 ttl=63 time=5.99 ms
64 bytes from nuq04s07-in-f2.1e100.net (74.125.224.66): icmp_seq=6 ttl=63 time=8.64 ms

作为记录,我在同一 VirtualBox/OSX 环境中有一个 ubuntu 12.04.1 虚拟机,没有遇到此问题。

【问题讨论】:

    标签: http centos virtualbox latency vagrant


    【解决方案1】:

    好的,原来问题是 DNS 问题。

    基本上 CentOS VirtualBox 被配置为使用一个 10.0.2.3 的 DNS 服务器,该服务器在其内部,但可能与我们网络上的某些东西发生冲突。

    无论如何,使用不同的 DNS 服务器解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-12
      • 1970-01-01
      • 1970-01-01
      • 2014-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-09
      相关资源
      最近更新 更多