Bug 218721 - [Markers] Problems view not propogating settings.
Summary: [Markers] Problems view not propogating settings.
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2008-02-12 18:46 EST by Gary Gregory CLA
Modified: 2008-03-25 13:58 EDT (History)
5 users (show)

See Also:


Attachments
CPU-Z HTML description of my CPU. (10.38 KB, text/html)
2008-02-12 18:49 EST, Gary Gregory CLA
no flags Details
My project .settings in a ZIP file. (5.08 KB, application/octet-stream)
2008-02-12 18:51 EST, Gary Gregory CLA
no flags Details
One 3.4M3 stack trace (16.45 KB, text/plain)
2008-02-13 02:44 EST, Gary Gregory CLA
no flags Details
Three One 3.4M5 stack traces (51.83 KB, text/plain)
2008-02-13 02:44 EST, Gary Gregory CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Gregory CLA 2008-02-12 18:46:41 EST
Eclipse 3.4M4
Eclipse 3.4M5
Windows XP SP2 with up to date patches
Running Eclipse on Sun Java 1.5.0_13

Eclipse 3.4M3 works like a champ.
The problem started in M4, I reverted back to M3 waiting for M5.
The problem is still in M5.

Please ask questions to I can keep up with Eclipse builds! :)

I've tested this by switching b/w M3 and M5.

In M4 and M5, when I save a .java file in the Java Browsing perspective, the workspace appears to build a little slower than in M3 which I could live with but after the build workspace progress bar (bottom right of window) goes away, my CPU goes to 100% for a solid 20 seconds. 

This is a huge difference with M3, where I did not notice any side effects from saving a .java file. I have Build Automatically on of course. 

I've closed 2 huge projects but this problem does seem to be affected.

I am running on a Pentium 4 at 3.06Ghz (1 core). My colleague is running a Dual Core (2 cores) at 2GHz and he sees his CPU go to 20-30% for 7-8 seconds after a save.

So is this a bug or is Eclipse doing some extra new work after a save that did not exist in M3?

Help! M5 is barely usable for me and being stuck on M3 is not where I want to stay.

Thank you,
Gary
Comment 1 Gary Gregory CLA 2008-02-12 18:49:34 EST
Created attachment 89574 [details]
CPU-Z HTML description of my CPU.
Comment 2 Gary Gregory CLA 2008-02-12 18:51:35 EST
Created attachment 89575 [details]
My project .settings in a ZIP file.
Comment 3 Olivier Thomann CLA 2008-02-12 22:03:21 EST
Please provide a thread dump when CPU is high and attach it to this bug report.
Comment 4 Gary Gregory CLA 2008-02-13 02:43:45 EST
Attaching a stack trace from 3.4M3 and 3.4M5.

For both stack trace:
- In the Java Browsing perspective
- Save a Java file
- Bring the Eclipse console window to the foreground
- Wait for the build workspace to finish and the CPU to go to 100%
- Wait a couple of seconds while the CPU is at 100% 
- Crtl-Break to get the stack trace.

The M5 stack trace contains 3 traces taken about 5, 15, and 30 seconds after the build workspace progress bar was finished. The CPU was at 100% the whole time.
Comment 5 Gary Gregory CLA 2008-02-13 02:44:24 EST
Created attachment 89615 [details]
One 3.4M3 stack trace
Comment 6 Gary Gregory CLA 2008-02-13 02:44:50 EST
Created attachment 89616 [details]
Three One 3.4M5 stack traces
Comment 7 Jerome Lanneluc CLA 2008-02-13 04:37:47 EST
Can you please try to close the Problems view and see if you still have the performance problem?
Comment 8 Gary Gregory CLA 2008-02-13 13:17:17 EST
Steps I took:
- Closed all views in the Java Browsing perspective.
- Restarted Eclipse M5
- Viewed 10 Java files.
- Save various files.

The CPU does *not* jump to 100% after a build workspace.

I used to have the following views open: Problem, JUnit, Console, Search, Hierarchy, Javadoc.

If I open the Problems view, it takes 15 seconds of 100% CPU for the view update itself.

When I change a public static final String and recompile, after a rebuild, it takes 20 seconds of 100% CPU for the view update itself.

So the issue is definitely the Problems view. Changing the title of the ticket.

Comment 9 Gary Gregory CLA 2008-02-13 13:18:35 EST
Oh, BTW, my problems view setting is "on selected element and its children"
Comment 10 Jerome Lanneluc CLA 2008-02-13 13:20:26 EST
Moving to Platform/UI
Comment 11 Gary Gregory CLA 2008-02-13 13:34:23 EST
OK, I think I've partially fixed my problem. I did not have any Configurations
selected in the Problems view 'Configure Contents' dialog. 

I selected both "All Errors" and "Warnings on Selection" and choose "on
selected element and its children". 

Performance is OK now!

The issue, I think, is that the Problems view settings were either not
propagated correctly from M3 or the settings are so different that I was given
a default set of settings, which were 'show everything' settings.

Now that I think about it, every time I upgrade M releases, Eclipse seems to
reset my Problems view settings because I recall having to reset my settings
every time.

So in short, my main issue appears to be solved but there could still be an
issue in carrying over Problems view settings from previous version.

Thank you for you help! Merci!

Gary
Comment 12 Tod Creasey CLA 2008-02-14 10:24:01 EST
This was fixed in M5 but we should verify against 3.3.2 again in M6.
Comment 13 Tod Creasey CLA 2008-02-20 08:48:20 EST
Marking FIXED
Comment 14 Tod Creasey CLA 2008-03-25 13:58:43 EDT
Verified in I20080325-0100