Priority
Major
Type
Performance Problem 
State
Fixed 
Assignee
Oleg Shpynov 
Subsystem
Editing 
Affected versions
Fixed in
Fixed in build
Next build 
  • Submitted by   Russ Rollins
    2 years ago (30 Jan 2008 19:19)
  • Updated by   Russ Rollins
    2 years ago (12 Mar 2008 20:21)
  • Jira: RUBY-1398
    (history, comments)
RUBY-1398 CPU spike and hang on opening Ruby files in large RoR project
1
See thread for complete information: http://groups.google.com/group/jetbrains-rubydev/t/d6796d5e73f0e237

Environment: OS X 10.5.1
MacBook Pro, 2.33Ghz Core 2 Duo
3GB RAM

Issue was closed
Comments (17)
 
History
 
Linked Issues (0)
 
Russ Rollins
  Russ Rollins
30 Jan 2008 19:21
(2 years ago)
CPU consumption screenshot
Dmitry Jemerov
  Dmitry Jemerov
30 Jan 2008 21:39
(2 years ago)
Instead of the CPU consumption screenshot, please take a CPU snapshot as described here:
http://support.jetbrains.com/kb/entry!default.jspa?categoryID=5&externalID=192&fromSearchPage=true
Russ Rollins
  Russ Rollins
31 Jan 2008 00:42
(2 years ago)
Thanks for the clarification,Dmitry. I've uploaded the snapshot with the filename 7590_russ_30.01.2008_14.22.18.zip

There was nothing special about the CPU snapshot operations, I just opened some files in my project per my original description in the mailing list thread. I stopped the snapshot after the long spike and hanging period.

The second file, 7590_russ_30.01.2008_14.38.29.zip, is the snapshot of what happens when I save my environment.rb.
Oleg Shpynov
  Oleg Shpynov
05 Feb 2008 16:14
(2 years ago)
Could you please make the same CPU snapshots and attach them to the
JIRA issue using latest plugin version, that can be downloaded at:
http://teamcity.jetbrains.com/viewLog.html?guest=1&tab=artifacts&buildTypeId=bt28&buildId=lastPinned
Russ Rollins
  Russ Rollins
05 Feb 2008 19:10
(2 years ago)
This is the CPU snapshot, per Oleg's instruction, using the plugin build ruby-14156.

Initial use of this plugin appears to specifically address the problem, the longest lag time I've yet experienced has been reduced to ~3 seconds.
Oleg Shpynov
  Oleg Shpynov
06 Feb 2008 20:14
(2 years ago)
Hi, Russ!

Thanks a lot for your snapshots!

Could you try the latest version available to install using IDEA Plugins manager(11.0.14221)? It`s also compatible with the latest 7.0.3 EAP #7684.
We`ve made some more optimizations there.
Russ Rollins
  Russ Rollins
06 Feb 2008 20:20
(2 years ago)
Oleg, I'd be happy to try it out. Where/how can I download 7.0.3 EAP #7684?
Dmitry Jemerov
  Dmitry Jemerov
06 Feb 2008 20:24
(2 years ago)
Russ Rollins
  Russ Rollins
06 Feb 2008 20:51
(2 years ago)
Thanks, I've downloaded 7.0.3 EAP #7684 and installed ruby-plugin build 1.0.14221. Most files are editable within 3 seconds, I had one that took nearly 30. I closed all editors, closed project, reopened project and reopened that file which reproduced the 30s wait. I can snapshot the process if you wish.
Russ Rollins
  Russ Rollins
06 Feb 2008 21:50
(2 years ago)
Turns out that I can reproduce this lag on another file and that the lag sometimes happens when I activate that file's editor (via Recent Files hot-key).
Oleg Shpynov
  Oleg Shpynov
06 Feb 2008 22:41
(2 years ago)
Could you please attach another snapshot when lag happens, please!
Russ Rollins
  Russ Rollins
06 Feb 2008 23:03
(2 years ago)
Per my comment on 06 Feb 08 20:51.
Oleg Shpynov
  Oleg Shpynov
06 Feb 2008 23:53
(2 years ago)
Thanks, I`ll take a look tomorrow!
Russ Rollins
  Russ Rollins
07 Feb 2008 20:30
(2 years ago)
I just switched back to using 7.0.2 because of the unpleasant sluggishness that continued to crop up. I'll test 1.0.14221 on it and report my experience.
Oleg Shpynov
  Oleg Shpynov
09 Feb 2008 20:07
(2 years ago)
Russ Rollins
  Russ Rollins
14 Feb 2008 02:31
(2 years ago)
Been testing 1.0.1493 the last couple days on 7.0.2. So far the performance is pretty good. I've only had two instances of ~30s lag and I can't reproduce it.
Russ Rollins
  Russ Rollins
12 Mar 2008 20:21
(2 years ago)
I'm seeing this issue again occasionally and was able to grab a CPU snapshot. When it happens it's really inconvenient since I expect to be able to start typing what's on my mind only to have to wait quite a while for IntelliJ to respond/load the editor. I've tried to identify the steps to reproduce but it appears to be random, sometimes happening when I open new files sometimes when I'm changing to an existing file.