Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 380535

Summary: Eclipse/Webtools isn't able to work with mid-sized projects (crash/hang/OOM)
Product: [WebTools] Web Tools Reporter: Patric Rufflar <patric>
Component: GeneralAssignee: jst-inbox <jst-inbox>
Status: CLOSED DUPLICATE QA Contact: Carl Anderson <ccc>
Severity: critical    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
an example (auto generated) project
none
exceptions which occurred in webtools while working with real projects none

Description Patric Rufflar CLA 2012-05-24 09:50:20 EDT
Build Identifier: Juno M7 J2EE - 20120510-1218

There are still major memory/performance issues with mid-size/large projects.
I am unable (or at least I have to wait for a very long time) to work with some of my dynamic web projects in eclipse juno.

Unfortunately, I am not able to submit the project here, but I wrote a simple generator which creates a similar-sized project (2000 class files, 500 jsps, 20000 warnings) which shows similar issues.

Beside the memory/performance issues, this project shows several other issues (open some jsps and try to make some changes), but this is not the crucial part of this report.

I am not sure if this is only related to webtools - but for my initial report, I file it within this component.

(Once the opening of those projects corrupted some javascript indexes and I was not able to use eclipse anymore (some kind of EOFException in the JSDT parser).


Reproducible: Always

Steps to Reproduce:
1. Download Juno M7 J2EE package
2. Open Juno M7 J2EE
3. Disable build automatically
4. Import the project (import->existing projects into workspace -> from archive file)
5. Create a new runtime, using tomcat 6.x
6. Check build path settings of project and bind that runtime to the project
7. Enable build automatically
8. From now, look at memory/cpu/time usage
9. If the compile succeeds, trigger a clean build
10. Repeat Step 9 several times
11. Optional step: Try to work with the IDE while the build is running
12. Optional step: Open some jsps.
Comment 1 Patric Rufflar CLA 2012-05-24 09:52:08 EDT
Created attachment 216193 [details]
an example (auto generated) project
Comment 2 Nitin Dahyabhai CLA 2012-05-24 12:26:33 EDT
Patric, any of the stack traces you did encounter with your real data would still be of interest.
Comment 3 Patric Rufflar CLA 2012-05-25 08:44:33 EDT
Beside the exceptions the main issue which can be seen in both the real life project and the submitted test project is performance/memory consumption/OutOfMemoryErrors.

This is the reason why I put in significant efforts to provide you a test project. I really encourage you to give it a try and to see what's going on/wrong.

I played some more hours with webtools with my real projects - you can find all exceptions which occurred in the attachment below.
Comment 4 Patric Rufflar CLA 2012-05-25 08:45:34 EDT
Created attachment 216271 [details]
exceptions which occurred in webtools while working with real projects
Comment 5 Nitin Dahyabhai CLA 2012-10-18 14:08:41 EDT

*** This bug has been marked as a duplicate of bug 359005 ***
Comment 6 Patric Rufflar CLA 2012-10-19 06:37:33 EDT
Nitin, I do not see why this bug should be a duplicate of bug 359005.

This bug is about crashes/performance/memory consumption with greater projects while bug 359005 seems to be about a specific NPE.
Comment 7 Nitin Dahyabhai CLA 2012-10-22 10:07:38 EDT
Patric, it's the only one I can (still) reliably reproduce, even after multiple cleans and builds.  The JsTranslator exceptions from your log were fixed in 3.4.1, and the others look like the workbench itself was either shutting down or in an odd state where code was being called while the plug-in was not started or already stopped.
Comment 8 Patric Rufflar CLA 2012-10-22 10:15:13 EDT
Good news.
Does this mean that the performance/memory issues mentioned in the bug description are fixed as well?
Comment 9 Nitin Dahyabhai CLA 2012-10-22 11:05:47 EDT
Only that I have not been able to reproduce them with your project, 10+ JSP files opened and editors activated, and numerous rebuilding of the workspace.