imrichardcole
imrichardcole

Reputation: 4695

IntelliJ idea slow/hang during debug make phase

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

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

Upvotes: 6

Views: 3295

Answers (3)

Kapitula Alexey
Kapitula Alexey

Reputation: 388

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.

Upvotes: 2

imrichardcole
imrichardcole

Reputation: 4695

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

Upvotes: 6

uwolfer
uwolfer

Reputation: 4526

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.

Upvotes: -3

Related Questions