5.948 it's getting really sluggish 关注
I don't know if this is because my project has a lot of included libraries or because my code has a fair few implicits, but intellij is seeming very slow these days. For example pasting a few lines into a source file will send the system into a whirl of cpu activity and lock me out for 10+ seconds - making cut and paste really frustrating.
This is on a notebook running i7-2630QM with 8gb ram running intellij with these vm options
- External Libraries
- < 1.7 >
I am not using type-aware highlighting.
I am currently registering about 1 second of cpu time per second of working (quite a lot goes in parallel) - but I've had a number of phone calls in that time so the actual tally is worse - a single keystroke just consumed 6s and typing
knocked up about 30s of cpu time - most of it after it had managed to autotype the </hello> bit.
My project is less than 5000 loc - although the libraries obviously consume a fair bit.
I have similar behaviour on another machine (but it's the same code, synced)
The project was built with sbt and gen-idea for the intellij stuff.
Any suggestions as to what might make it go faster? I've been experiencing these problems for a couple of weeks - so I don't know if it's related to the latest build or to bringing in all the spray and akka libraries - they both happened around the same time.
If you see pauses in typing please try to capture CPU snapshot (http://devnet.jetbrains.net/docs/DOC-192).
However usual workaround is the following two things (it's currently known issues):
1. Close Structure View during typing (open only if it's neccessary using Ctrl+F12)
2. Remove from Project View "show members" setting.
when you say "close structure view" do you mean slide it off to the side so there's just the word "structure". I can't see how to make it go away altoegher.
In which case -
structure view already shut and show members is off already too.
Will trye and sort out stnapshot
I just fixed (in Leda, to Nika it will be backported later this week) another possible performance and not only performance problem - StackOverflowError.
Please check your idea log file: http://devnet.jetbrains.net/docs/DOC-181
It contains all recorded exceptions.
I've got the latest plugin for 11.1.3 (leda still gives me problems)
I can confirm that prior to this I was getting stack overflows and since this I have not.
I can also confirm that it seems a bit faster but not hugely so.
So I still need CPU snapshot to check what causes this problem.
I did actually send you a direct email with one yesterday - but that was old plugin - here is one with new plugin.
The problems are much worse when I'm working in the test branch of my source - which is almost entirely SprayTest classes derived from specs2.mutable.Specification if that makes any difference.
The particular example is typing in character strings. I start typing between the quotes, the first character appears then there rest don't for a while -(3-4 seconds) long enough for me to click on the snapshot button in yourkit.
I'll try and set up another example with cut and paste problem
Alexander - I haven't time to go into yourkit in any depth. If I experience several delays over a couple of minutes then do a snapshot does that tell you anything about what was happening, or do I actually have to do the snapshot while the delaying action is taking place?
It seems files, where you are typing are big and contains a lot of xml? We have such problem, because we haven't incremental lexer for xml parts (and lexer is working in awt thread, this is most probably causing your freezes).
One addition is about "Project View", try to hide it too, and check performance again. Is it faster?
The best way to take snapshot only on freezing typing. Moreover it's better to do sampling (more information during collecting it). However it's ok to make snapshot on a bigger time (just in sampling case it will be very big snapshot), I can see freezes, when awt thread is doing something.
No that's not the case. Nothing is big - files where I am typing have typically 100 - 150 loc and only 5 lines of xml.
I have a couple of file with quite a lot of xml fragments in them - it's my xml marshalling file where I build my xml code to push out over a rest interface. But that's no more than 300 loc.
If necessary I can supply code (though not via a public forum).
Hi - not clear on this. Is there something in particular I should do. I don't know yourkit - all I've got is a "save" button. I'm using community edition so it's in a separate app. Also any comment on all the stack overflows I keep getting?
It would be great to work with actual examples causing problems. Then I'll fix them much faster.
I've not got your e-mail with dump, so probably you have wrong e-mail. Actually it's Alexander.Podkhalyuzin@jetbrains.com. Let's move conversation to the e-mail thread.
Sent an email about 30 minutes ago. did you get it?
It's ok now, thank you. Can't promise fixing this today (it's evening now in Russia), but I'll take a look on Monday.
No problems. it's great that you're going to look at it as soon as Monday :-)