V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
chenfang
V2EX  ›  程序员

Java Java .net.Inet6AddressImpl.lookupAllHostAddr 堵塞问题

  •  
  •   chenfang · 221 天前 · 669 次点击
    这是一个创建于 221 天前的主题,其中的信息可能已经有所发展或是发生改变。

    五号发生了一个消费者组在请求 url 的时候,发生了堵塞,堆栈信息是这个

    这是为啥? 有人遇到过么?

    我们是不用 ipv6 的,不晓得它为啥会走 ipv6 的类

    google 搜了搜 看到 有-Djava.net.preferIPv4Stack=true 这个参数,目前加上了,不晓得有没有作用

    Thread dump at 28538:11.349.427
    
    * Thread group "main":
    
      Thread "consumer_group_108":
        at java.net.Inet6AddressImpl.lookupAllHostAddr(java.lang.String, int)
        at java.net.Inet6AddressImpl.lookupAllHostAddr(java.lang.String, java.net.spi.InetAddressResolver$LookupPolicy) (line: 52)
        at java.net.InetAddress$PlatformResolver.lookupByName(java.lang.String, java.net.spi.InetAddressResolver$LookupPolicy) (line: 1211)
        at java.net.InetAddress.getAddressesFromNameService(java.lang.String) (line: 1828)
        at java.net.InetAddress$NameServiceAddresses.get() (line: 1139)
        at java.net.InetAddress.getAllByName0(java.lang.String, boolean, boolean) (line: 1818)
        at java.net.InetAddress.getAllByName(java.lang.String) (line: 1688)
        at okhttp3.Dns$Companion$DnsSystem.lookup(java.lang.String) (line: 49)
        at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(java.net.Proxy) (line: 169)
        at okhttp3.internal.connection.RouteSelector.nextProxy() (line: 131)
        at okhttp3.internal.connection.RouteSelector.next() (line: 73)
        at okhttp3.internal.connection.ExchangeFinder.findConnection(int, int, int, int, boolean) (line: 205)
        at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(int, int, int, int, boolean, boolean) (line: 106)
        at okhttp3.internal.connection.ExchangeFinder.find(okhttp3.OkHttpClient, okhttp3.internal.http.RealInterceptorChain) (line: 74)
        at okhttp3.internal.connection.RealCall.initExchange$okhttp(okhttp3.internal.http.RealInterceptorChain) (line: 255)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(okhttp3.Interceptor$Chain) (line: 32)
        at okhttp3.internal.http.RealInterceptorChain.proceed(okhttp3.Request) (line: 109)
        at okhttp3.internal.cache.CacheInterceptor.intercept(okhttp3.Interceptor$Chain) (line: 95)
        at okhttp3.internal.http.RealInterceptorChain.proceed(okhttp3.Request) (line: 109)
        at okhttp3.internal.http.BridgeInterceptor.intercept(okhttp3.Interceptor$Chain) (line: 83)
        at okhttp3.internal.http.RealInterceptorChain.proceed(okhttp3.Request) (line: 109)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(okhttp3.Interceptor$Chain) (line: 76)
        at okhttp3.internal.http.RealInterceptorChain.proceed(okhttp3.Request) (line: 109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp() (line: 201)
        at okhttp3.internal.connection.RealCall.execute() (line: 154)
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1302 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 17:58 · PVG 01:58 · LAX 09:58 · JFK 12:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.