2012-10-05 10 views
10

Ich habe Centos 6.3 innerhalb von VirtualBox 4.2.1 auf meinem OSX 10.8.2-Rechner laufen, und habe ein Latenz-Problem, das ich nicht verstehe. Grundsätzlich hat jede HTTP-Anfrage an jeden Ort eine zusätzliche Verzögerung von 5000ms. Ping hat keine zusätzliche Verzögerung.CentOS VirtualBox 5 Sekunden Latenz auf HTTP-Anfragen

screenshot of latency issue

[[email protected] ~]$ 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 
[[email protected] ~]$ 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 
[[email protected] ~]$ 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 
[[email protected] ~]$ 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 

Für das Protokoll habe ich eine Ubuntu 12.04.1 virtuelle Maschine in der gleichen VirtualBox/OSX-Umgebung, die das Problem nicht auftreten.

screenshot of not latency issue

Antwort

5

Ok, stellt sich heraus, das Problem ein DNS-Problem.

Im Grunde wurde die CentOS VirtualBox so konfiguriert, dass sie einen DNS-Server 10.0.2.3 verwendet, der intern ist, aber möglicherweise mit etwas in unserem Netzwerk in Konflikt steht.

In jedem Fall löste die Verwendung eines anderen DNS-Servers das Problem.