History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19066
Type: Performance Problem Performance Problem
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Esko Luontola
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

100% CPU usage when focus moves back to IDEA

Created: 09 Aug 08 21:50   Updated: 13 Aug 08 22:56
Component/s: User Interface

Environment: WinXP, Core 2 Quad Q6600

Build: 7,938
Severity: Medium


 Description  « Hide
I've uploaded a CPU snapshot "7938_ORFJackal_09.08.2008_20.41.00.zip" which records how IDEA has 100% CPU usage (25% on quad-core) and the UI is unresponsive for a couple of seconds after moving focus back to IDEA.

When taking the CPU snapshot, I pressed the record button, moved focus to another application, moved focus back to IDEA, then IDEA was unresponsive for some seconds, and after regaining responsiveness I stopped the CPU recording. I did not have antivirus running in the background and system restore was disabled on all drives.



 All   Comments   Work Log   Change History      Sort Order:
Esko Luontola - 09 Aug 08 21:58
The unresponsiveness seemed to go away when I closed a Jetty server which was running at the same time. The Jetty server was part of the same project and was started with Maven (mvn jetty:run-war, see http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin). The server's log was written to a .log file under Maven's target dir (at that time it was around 8MB).

Esko Luontola - 09 Aug 08 22:39
It seems that this was caused by that log file in one of the project folders. When IDEA gains focus, it notices that the file was changed and reads it from disk, which causes visible unresponsiveness when the log file is about 2MB or larger. Moving the log file to a directly which is excluded from the project (for example "/target/logs") solved the issue.

Should something be done about this behaviour?


Maxim Shafirov - 13 Aug 08 18:29
Would you please check if TODO patterns in Settings|TODO are somewhat unusual, I mean regexps, that are expensive to find matches of, like .something. ?

Esko Luontola - 13 Aug 08 22:56
These are all of my TODO patterns:

\btodo\b.*
\bhack\b.*
\bfixme\b.*
\bxxx\b.*