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:
The support from IntelliJ told me to try the IDE with bundled java.
And it works!
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.