IntelliJ slow and hanging

Hi,

Often, IntelliJ is slow when typing, and sometimes, IntelliJ hangs when doing something simple.

Today IntelliJ hung by pasting the name of a class after the word "extends" in a java file.

Very often it takes more than 5 seconds to see letters that I typed, appearing on screen.

Are there any plans to ever fix this? I can't really give many details of what I'm doing, I mean, it just happens often in various situations, I've used IntelliJ on several completely different projects on different computers in the meantime. I'm working on a large codebase, but that's what IntelliJ is for, right?

I'm probably oversimplifying things here, but whatever IntelliJ is doing in the background, shouldn't there at least be a thread giving high priority to responding immediatly to the text the user is typing and drawing it on screen? And shouldn't things that can hang at least not hang the main GUI and typing thread?

I can imagine constantly parsing all the source code everything takes a long time, and can wait for information about jumping to class definitions etc... to be updated in the background. But I see no reason why editing the text of the single file now in view, as well as saving it to disk (another notiously slow operation) should not go fast.

Thanks.

11 comments
Comment actions Permalink

Hello Aardwolf,

We're unable to fix problems for which we don't have any details. Thankfully,
for this kind of problems details are fairly easy to obtain:
- If IntelliJ's UI is ever unresponsive for more than 5 seconds, it starts
logging thread dumps every 5 seconds. Even one of these thread dumps would
be helpful for understanding the reason of the hang. The thread dumps are
logged in the threadDumps-### directories beneath the IntelliJ IDEA log directory.
- CPU snapshots provide even more details: http://devnet.jetbrains.net/docs/DOC-192

We do have a general mechanism for interrupting background activity when
the user starts typing, but there are situations and activities when the
mechanism isn't or can't be used.

Often, IntelliJ is slow when typing, and sometimes, IntelliJ hangs
when doing something simple.

Today IntelliJ hung by pasting the name of a class after the word
"extends" in a java file.

Very often it takes more than 5 seconds to see letters that I typed,
appearing on screen.

Are there any plans to ever fix this? I can't really give many details
of what I'm doing, I mean, it just happens often in various
situations. I'm working on a large codebase, but that's what IntelliJ
is for, right?

I'm probably oversimplifying things here, but whatever IntelliJ is
doing in the background, shouldn't there at least be a thread giving
high priority to responding immediatly to the text the user is typing
and drawing it on screen? And shouldn't things that can hang at least
not hang the main GUI and typing thread?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi, are you in x64 environment ?

On 25.03.2011 19:47, Aardwolf wrote:

Hi,

>

Often, IntelliJ is slow when typing, and sometimes, IntelliJ hangs when doing something simple.

>

Today IntelliJ hung by pasting the name of a class after the word "extends" in a java file.

>

Very often it takes more than 5 seconds to see letters that I typed, appearing on screen.

>

Are there any plans to ever fix this? I can't really give many details of what I'm doing, I mean, it just happens often in various situations. I'm working on a large codebase, but that's what IntelliJ is for, right?

>

I'm probably oversimplifying things here, but whatever IntelliJ is doing in the background, shouldn't there at least be a thread giving high priority to responding immediatly to the text the user is typing and drawing it on screen? And shouldn't things that can hang at least not hang the main GUI and typing thread?

>

Thanks.

>

---
Original message URL: http://devnet.jetbrains.net/message/5298413#5298413



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

On Fri, 25 Mar 2011 19:47:01 MSK, Aardwolf <no_reply@jetbrains.com>
wrote, quoted or indirectly quoted someone who said :

>Today IntelliJ hung by pasting the name of a class after the word "extends" in a java file.
>
>Very often it takes more than 5 seconds to see letters that I typed, appearing on screen.

There are two things I think IntelliJ could do to fix this.

1. put some indicator on the screen when IntelliJ is not accepting
keystrokes. 

2. put out a Jet version. It does not go to sleep for GC.


It drives me nuts, but my strategy is just to takes my hands of the
keyboard when it does that, and let it catch up.  Any activity on my
part just seems to make things worse.
--
Roedy Green Canadian Mind Products
http://mindprod.com
There are only two industries that refer to their customers as "users".
~ Edward Tufte

0
Comment actions Permalink

Hello Roedy,

There are two things I think IntelliJ could do to fix this.

1. put some indicator on the screen when IntelliJ is not accepting
keystrokes.


When IntelliJ is not accepting keystrokes, it's not processing repaint requests
either, so the indicator won't be possible to draw.

2. put out a Jet version. It does not go to sleep for GC.


Many people seem to think that GC is the root cause of all performance problems
with IntelliJ, and finding a magic combination of VM options and/or GC implementations
would solve all of them. That is not the case.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I think IntelliJ is able to draw while doing this, because the screen sometimes makes stuttering scrolling movements while it "hangs" after pressing CTRL+S.

Since the green and blue bars on the left of a file that indicate changes are also flickering during this slowness, could this by any chance have to do something with the GIT integration being slow?

I have the habbit of hitting CTRL+S quite often while typing, but waiting for 10 seconds and watching the stuttering and flickering is VERY frustrating because saving a single file to disk should not take that long and should not do all kinds of other slow things like redrawing those 'change' indicators.

0
Comment actions Permalink

Hi,

I also have the issue of a slow IntellijIDEA but have no intention of overtaking this thread.

Aardwolf, do the menus open as expected or is there a noticeable delay? In my case there's about a 1-2 second delay for each operation that I do (right clicking, typing, opening file, minimizing & maximizing the intellij window, expanding any of the menu bar entries, opening an item within a menu bar entry,  etc).

Just let me know if these symptoms correspond to what you have - else I'll start my own discussion on this.

Thanks

Laurent

0
Comment actions Permalink

I think the behaviour is different. For me menus open immediately most of the time. Only after pressing CTRL+S, or sometimes when pasting something more than a few lines or at other random moments, IntelliJ has periods of slowness and keyboard lag (and then menus don't open immediately of course). But once it stabilized again, it behaves pretty normal.

0
Comment actions Permalink

Hi, Laurent.
I think it's meaningless to get concrete solution unless you provided threaddumps. there could be a bunch of reasons. by the way - did your collegaues expected the same problem on the same project? How many projects opened simoultaneously?

regards, Alex

0
Comment actions Permalink

Hi Alexander,

do not worry - I have opened a ticket on youtrack: http://youtrack.jetbrains.net/issue/IDEA-71606

You'll find the threaddump in the ticket description.

Hope this helps,

Laurent

0
Comment actions Permalink

Hi, Loren. your issue looks similar to IDEA-69153. All you need - just to update to version 11 :)

regards, Alex

0
Comment actions Permalink

Hello,

The latest official release is 10.5.1 isn't it? I've tried setting the update version property to "early access program" and even then there wasn't any new update.

Br

Laurent

0

Please sign in to leave a comment.