4

IntelliJ IDEA debugger is too slow on my new MacBook Pro 13 inch TouchBar model (late 2016). It has an i5 2.9ghz (6th Gen) and 8 GB ram.

Is there something wrong with processing power or is something else wrong? On my pc (i5 4670k, 8gb) the same version runs fine.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Ray S. Kan
  • 119
  • 2
  • 8
  • Are you running 64-bit IntelliJ? – Novaterata Jun 21 '17 at 15:37
  • 2
    What do you mean by `slow`? Is it slow to start or slow to step? Did you check https://intellij-support.jetbrains.com/hc/articles/206544799? – CrazyCoder Jun 21 '17 at 15:38
  • That processor is literally slower than your desktop processor – Novaterata Jun 21 '17 at 15:39
  • @CrazyCoder Asking a high rep user: shouldn't this question be flagged as on the wrong network? This is a hardware problem, not a coding problem. – Turtle Jun 21 '17 at 15:40
  • @Nathan it's a common software problem, see http://stackoverflow.com/a/39698914/104891 for example. – CrazyCoder Jun 21 '17 at 15:41
  • I checked it, it's not like it's slow..but it kinda freezes which is uncommon – Ray S. Kan Jun 21 '17 at 15:41
  • 2
    @Nathan that off-topic rule specifically says for non-coding tools, since this is about IntelliJ and Java debuggin it's within topic – Novaterata Jun 21 '17 at 15:41
  • Once again, freezing when starting debugger for the first time or when stepping? Do you have method breakpoints? Did you check http://stackoverflow.com/a/39698914/104891? Maybe it's the case? – CrazyCoder Jun 21 '17 at 15:41
  • 1
    @RayS.Kan you need to be as specific as possible. When is it slow? when it starts, when you are stepping through code. What do you mean? We can't read your mind – Novaterata Jun 21 '17 at 15:42
  • When I start debugger for first time it takes a minute to start up debug session (freezes), after that ..each time I hit debug ..it takes a bit less time ...which is still uncommon – Ray S. Kan Jun 21 '17 at 15:46
  • Also there are no method breakpoints ..only line breakpoints, for processing power part, is my macbook pro really that bad? I mean most coders use the same machine only ..they don't face same – Ray S. Kan Jun 21 '17 at 15:49
  • So in the end this is a duplicate of [Jvm takes a long time to resolve ip-address for localhost](http://stackoverflow.com/a/39698914/104891). Unfortunately I cannot change my close vote. – Didier L Jun 22 '17 at 08:53
  • 1
    Problem is solved in deed, yes it turns out this is a duplicate of the problem where localhost name resolution takes quite a long time on macOS. This however is step by step guide answer with some external reference and sums up everything in simple words. – Ray S. Kan Jun 22 '17 at 09:54

3 Answers3

13

You may have a problem with DNS, see the following answer:

git clone https://github.com/thoeni/inetTester
java -jar ./bin/inetTester.jar

Find the hostname that's output from the .jar.

sudo nano /etc/hosts and add these two entries.

127.0.0.1 <output-host-name>.local
::1 <output-host-name>.local
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
6

Agree with CrazyCoder. There is an easier way for obtaining/modifying hostname instead of using the github repo.

  1. In system preference, click sharing

enter image description here

2. Click edit in the popup window. In my case, the hostname is MacBook.local.

enter image description here


3. sudo vi /etc/hosts

enter image description here

Mingzhong
  • 223
  • 4
  • 6
1

I would like to add one more case. If we have a number of method breakpoints, then the Intellij will run extremely slow.

Deepak Patankar
  • 3,076
  • 3
  • 16
  • 35