Home  >  Q&A  >  body text

java - InetAddress.getLocalHost() 为什么耗时5s?

InetAddress.getLocalHost() 这个方法我在本地测试,无论怎么测试都是5s,这个函数是哪里会这么耗时呢?我用的jdk是1.7

天蓬老师天蓬老师2742 days ago896

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-18 10:57:33

    Test it a few more times.
    Definitely not 5s

    reply
    0
  • Cancelreply