6

Currently experiencing very slow debug start up times (between 25-45 seconds) with idea CE 14.1.5. To reproduce:

  • Make change in code that will cause javac to be invoked.
  • Hit debug.
  • Status bar shows "Make" and entire IDE hangs.

I'm using a 2015 Macbook pro and Java 1.8.0_60 64bit.

imrichardcole
  • 4,633
  • 3
  • 23
  • 45

3 Answers3

6

After profiling with advice from above, I tracked it down to this issue:

IntelliJ freezes for about 30 seconds before debugging

Which in turn points to an issue with InetAddress.getLocalHost() on *nix. Following the advice in this linked post certainly helped it go away:

InetAddress.getLocalHost() throws UnknownHostException

Community
  • 1
  • 1
imrichardcole
  • 4,633
  • 3
  • 23
  • 45
2

I had similar problems of starting debugging application and tried different workaround tips to figure it out, but in my case i had a lot of forgotten breakpoints marked in application and removing them all application starts and performs lightening fast.

So, my advice remove all the breakpoints from the code at least at application startup.

Kapitula Alexey
  • 380
  • 4
  • 15
-3

You should assign more memory. This almost always reduces lagging / hanging issues. You can find a guide how to change this setting in IntelliJ manual.

uwolfer
  • 4,356
  • 1
  • 25
  • 40
  • This was not a lag, or slowness, it completely freezes. And issue was related to host name resolution. See answers above. – BrianC Jun 21 '17 at 13:20