Extremely long and frequent freezes (without high CPU usage)
I have been experiencing severe performance problems with some recent
builds: IDEA freezes while I'm editing Java or JSP files. Some times the
freeze time is a couple of seconds, but more often it's a minute or more. It
always recovers, but the behavior reoccurs frequently. During a freeze the
IDEA process is not using more than 0-3 % of the CPU. GUI animations (such
as the error occurred popup movement) also freezes, indicating that it might
be a GC-related freeze. I have tried to tweak the JVM memory settings but
have not found any solution.
I'm running JDK 1.6.0_04 in Windows Vista Ultimate on a dual core CPU at
2,40 GHz with 2 Gb of memory.
/// Odd Möller
Please sign in to leave a comment.
Hello Odd,
Please take a thread dump during the freeze:
http://support.jetbrains.com/kb/entry.jspa?categoryID=4&externalID=260
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
I've experienced this as well on both my home PC (Quad Core 2.4MHZ 4GB) and my work PC (2.4 GHz Dual Core 1GB). I just took a stack trace during an occurrence. (in this case it was after doing a ctrl-N to navigate to a class)
I need to run to a meeting now. When I get back I'll open a JIRA and attach the Stack Trace.
Thanks,
Mark
http://www.jetbrains.net/jira/browse/IDEA-17270
For me it happens every time after IDEA starts. It starts ok and then as
soon as you try to do something it will start reading from disk like crazy
and freezes for 30 seconds. I checked with file monitor but it reads D:
drive not any specific file. Could it be related to memory mapped files IDEA
uses
Same can happen while idea is open but it appears it happens on schedule
rather than based on usage. Is there any scheduled ops (version control,
caches ...) which could cause it?
"Dmitry Jemerov" <yole@jetbrains.com> wrote in message
news:609b4cc98b8358ca4766b71748ae@news.jetbrains.com...
>
>> I have been experiencing severe performance problems with some recent
>> builds: IDEA freezes while I'm editing Java or JSP files. Some times
>> the freeze time is a couple of seconds, but more often it's a minute
>> or more. It always recovers, but the behavior reoccurs frequently.
>> During a freeze the IDEA process is not using more than 0-3 % of the
>> CPU. GUI animations (such as the error occurred popup movement) also
>> freezes, indicating that it might be a GC-related freeze. I have tried
>> to tweak the JVM memory settings but have not found any solution.
>>
>> I'm running JDK 1.6.0_04 in Windows Vista Ultimate on a dual core CPU
>> at 2,40 GHz with 2 Gb of memory.
>
>
>
Similarly, I've noticed it often happens if IDEA has not been used for a while. For example, frequently when I come back from a meeting and I try to bring IDEA to the foreground, it hangs for a while with very high disk activity.
Yes, that's it! And it is not garbage collection because processor
utilization is zero. I tried posting it here before but they pay no
attention to it. I wonder if anyone besides us experience it as well?
"Mark Vedder" <no_reply@jetbrains.com> wrote in message
news:3739220.1204208872225.JavaMail.itn@is.intellij.net...
It sounds like other system activity that occurred while you were away (file indexer? periodic housecleaning? screensaver-triggered activity such as *@home / BOINC, etc?) caused IDEA to be mostly or entirely paged out.
Randall Schulz
Nope, it is always IDEA which does it (I checked file monitor to se who is
doing all this heavy disk reading) it does it several times a day and always
after first start.
I have a very fast machine and raid array and it works very heavily for 30
seconds or so. I do not have indexing enabled. My antivirus excludes all
IDEA, JDK, Libraries and work directories and my mavvare detector runs late
at night. Anyways only idea freezes, other apps are ok (although a bit
slower) during this peak of activity. I have a suspicion that IDEA rebuilds
indices or compacts LVC during that time?
"Randall Schulz" <rschulz@sonic.net> wrote in message
news:16231772.1204224257887.JavaMail.itn@is.intellij.net...
>
I don't think that's it. I have a complete IDEA installation on a eSATA external drive (to allow me to work from different machines by just plugging the drive in). I've experienced this when using that install. And it is the portable drive's light that goes crazy.The only thing on that drive is IDEA, IDEA config & system, Java, my project files, and a bunch of library jars. So no other applications would be accessing that drive. System paging exists on the internal drive. And that shows little to no activity. And it really seems to have started with the 7718 EAP build for me.
I also experience the issue after opening a project (i.e. opening a second project or switching to a different project in the current window). So system paging shouldn't be an issue there.
Yes, I get this too. Returning to IDEA after lunch, it sometimes takes several minutes before it will respond to any input.
But I regularly get shorter versions of the same thing while I'm using it - up to 30 seconds freeze - sometimes it seems to be when the heap indicator is showing near max, sometimes not.
I imagine that in all these cases, if it's not the OS paging back in
then it's probably Idea recreating all its cache data from disk after
clearing SoftReferences (or similar).
R
whatever it is, it started about a month ago. there was no such an issue in
earlier builds. It is very annoying
"Robert Gibson" <robbie_usenet@yahoo.co.uk> wrote in message
news:fq8u0b$s4a$1@is.intellij.net...
>I imagine that in all these cases, if it's not the OS paging back in then
>it's probably Idea recreating all its cache data from disk after clearing
>SoftReferences (or similar).
Can people please add their votes to http://www.jetbrains.net/jira/browse/IDEA-17270
Thanks!
Same for me - IDEA 7 freezes with very hard disk activity after
switching to another application and then back to IDEA. I have the
swapping file off and also "-Dsun.awt.keepWorkingSetOnMinimize=true" in
vmoptions.
I voted for http://www.jetbrains.net/jira/browse/IDEA-17270
Greetings
I voted for it and attached my stack trace. Interestingly it is not the same
as yours. In mine, there one process which I can se over and over again
throu 5-6 traces I took in during 50-60 seconds freeze which is clearly
related to disk activity:
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(RandomAccessFile.java:466)
at
com.intellij.util.io.RandomAccessDataFile.put(RandomAccessDataFile.java:60)
- locked (a java.io.RandomAccessFile) at com.intellij.util.io.storage.DataTable.writeBytes(DataTable.java:77) at com.intellij.util.io.storage.Storage.writeBytes(Storage.java:198) - locked <0x0e1946b8> (a java.lang.Object) at com.intellij.util.io.storage.Storage$StorageDataOutput.close(Storage.java:255) at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$AttributeOutputStream.close(FSRecords.java:17) - locked <0x0e193cd8> (a java.lang.Object) at java.io.FilterOutputStream.close(FilterOutputStream.java:143) at com.intellij.util.io.DupOutputStream.close(DupOutputStream.java:40) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$2$1.close(PersistentFS.java:3) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$2.close(PersistentFS.java:8) at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:427) at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:396) at com.intellij.openapi.components.impl.stores.StorageUtil$1.run(StorageUtil.java:7) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:314) at com.intellij.openapi.components.impl.stores.StorageUtil.save(StorageUtil.java:10) at com.intellij.openapi.components.impl.stores.FileBasedStorage$FileSaveSession.doSave(FileBasedStorage.java:18) at com.intellij.openapi.components.impl.stores.XmlElementStorage$MySaveSession.save(XmlElementStorage.java:14) at com.intellij.openapi.components.impl.stores.CompoundSaveSession.save(CompoundSaveSession.java:30) at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MySaveSession.save(StateStorageManagerImpl.java:20) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.save(ComponentStoreImpl.java:30) at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.save(ProjectStoreImpl.java:64) at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:38) at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:37) at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:54) at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:3) at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:6) at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:10) at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java:16) at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:4) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:13) "Mark Vedder" ]]> wrote in message
news:30384795.1204316932808.JavaMail.itn@is.intellij.net...
>