IntelliJ freezes for about 30 seconds before debugging

前端 未结 3 1261
孤城傲影
孤城傲影 2020-12-07 13:39

when i try to debug my java app the IDE freezes for about 30 seconds with the message: \"Finished, saving caches\"

After it unfreezes all works fine. It happens ever

相关标签:
3条回答
  • 2020-12-07 13:52

    Well, the issue took me around 3 hours to find out how to overcome it. For anyone has tried "modifying etc host file" solution from Jayson Minard and still not worked. Just go to SystemPreference -> Sharing and turn on File Sharing. That's on and it will let you debug your Java app on IntelijIdea 2017 very very very fast !!!!!!

    0 讨论(0)
  • 2020-12-07 14:11

    If anyone else is still having this problem, I found this related issue on the IntelliJ board: https://youtrack.jetbrains.com/issue/IDEA-157303

    It seems the problem is related to resolving hostnames. The recommended workaround is to include the following line in your /etc/hosts file:

    127.0.0.1       localhost     <your hostname goes here>.local
    

    And for IPv6 resolving, the same:

    ::1             localhost     <your hostname goes here>.local
    
    0 讨论(0)
  • 2020-12-07 14:13

    The support from IntelliJ told me to try the IDE with bundled java.

    http://download.jetbrains.com/idea/ideaIC-14.1.3-custom-jdk-bundled.dmg

    And it works!

    Edit:

    IntelliJ support feedback: The problem was that there was a hang within java.net.Inet4AddressImpl.getLocalHostName(Native Method) JDK method call, which gets your system hostname. This is either JDK problem or local configuration issue...

    The solution for this is here.

    0 讨论(0)
提交回复
热议问题