| Summary: | [SWT OS X Cocoa] Eclipse causes WindowServer to consume memory | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Greg Watson <g.watson> | ||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | adam, arossi, bhunt, d.nachev, eclipse.felipe, francisu, greensopinion, johannes_rieken, john.arthorne, joshua.lester, lshanmug, mark.k.mclaren, markus.oley, mat.gessel+eclipse, Mike_Wilson, peter.misak, peter, prakash, pwebster, remy.suen, Silenio_Quarti, tiit | ||||
| Version: | 3.7 | Keywords: | performance | ||||
| Target Milestone: | 3.7.2 | Flags: | john.arthorne:
pmc_approved+
eclipse.felipe: review+ |
||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Greg Watson
I forgot to mention that if I quit out of Eclipse, the WindowServer memory is released almost immediately, so there is very little doubt that Eclipse is responsible for the problem. Moving to SWT I see the same. After a bit of work (I'll restart eclipse every day) the WindowServer consumes huge amounts of memory (500-1000MB). Shutting down eclipse free the mem from the WindowServer. I have also noticed this issue on MacOS 10.5.8 cocoa (32-bit). I also would tend to think this an SWT memory leak. I have started to notice this in 32-bit Eclipse version, where the dialogs started to look blank after a few hours of regular working. I have seen many OutOfMemory errors in the logs, 64-bit version simply lets the memory grow more, so the outcome is the same: I have to restart sometimes even a few times a day (WindowServer memory usage easily grows to 2GBs). Also occurs on Lion (10.7.2). And Elipse 4.2. Wow! This is a serious bug. Basically, every shell with the SWT.TOOL style bit is leaked. Thanks for the investigation. Fixed http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=3ef72dc42513515df553f500b077076464e6abd9 *** Bug 356601 has been marked as a duplicate of this bug. *** Mike/John, we have to fix this in 3.7.2. Back ported to 3.7.2 http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?h=R3_7_maintenance&id=52de1f9158541d5fa279cd0ccd60c8a0ef968370 *** Bug 343056 has been marked as a duplicate of this bug. *** Here are some steps to check the WindowServer memory: 1) Run the ActivityMonitor app 2) Select "All Processes" in the combo just before the search field 3) Select the Process with name: WindowServer Every time a shell is created for any application, the column "Real Mem" should go up. The memory needs to come down when the shells are disposed. Note that the eclipse tooltips for the editor (JavaDoc, etc) are only disposed when the editor is closed. *** Bug 304857 has been marked as a duplicate of this bug. *** Created attachment 211703 [details]
Stack trace from eclipse crash
I've updated Eclipse to have org.eclipse.swt 3.7.2.v3740f and now I'm no longer seeing the blank shell screens, but I've had eclipse completely crash on me several times. Here's one of the error stack traces that were returned. If this is helpful or you'd like other traces, let me know. If I should create a new bug, I'm happy to do that too.
(In reply to comment #15) > Created attachment 211703 [details] > Stack trace from eclipse crash > > I've updated Eclipse to have org.eclipse.swt 3.7.2.v3740f and now I'm no longer > seeing the blank shell screens, but I've had eclipse completely crash on me > several times. Here's one of the error stack traces that were returned. If > this is helpful or you'd like other traces, let me know. If I should create a > new bug, I'm happy to do that too. Please open a separate bug. This stack trace does not seem related with this bug. In the new bug, add info like which version you were running before and what you are doing when the crash happens. From the stack it seems you are swiping the trackpad (right?). Are all the stack traces the same? If not, attach them. Has this been fixed in 4.2? Yes, it is fixed in 3.7.2 | 3.8 | 4.2. *** Bug 360610 has been marked as a duplicate of this bug. *** |