Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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 every time.

When i only run (not debug) it does not freeze.

What i tried:

  • I changed the JDK on system.
  • I changed the IntelliJ version.
  • I change to IntelliJ Ultimate - trial.
  • Invalidating the IDE's cache.
  • Similar problem
  • I also figured out that the given message exists only it this area of code - github-project so i changed the JVM options to give InteliJ more ram.

InteliJ build IC-141.1010.3.

When i try to debug in other IDE's it works fine, only InteliJ gets stuck...

I submitted a ticket to jetbrains too, but i know the power of StackOverflow :)

I have a MacBookPro 2015 and JDK 1.8

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
220 views
Welcome To Ask or Share your Answers For Others

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...