Bug 125305

Summary: Save seems to reread zip files
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The HTML trace none

Description Dirk Baeumer CLA 2006-01-26 05:15:41 EST
I20060125-0800

Saving a file in my environment after adding a single blank to it seems to always touch a zip file which cost ~400ms. I will attach a trace
Comment 1 Dirk Baeumer CLA 2006-01-26 05:16:30 EST
Created attachment 33636 [details]
The HTML trace
Comment 2 Jerome Lanneluc CLA 2006-01-26 06:03:49 EST
Do you still see this problem if you give more memory to eclipse (e.g. double the -Xmx value) ?
Comment 3 Dirk Baeumer CLA 2006-01-26 08:41:52 EST
I am running using 256 MB of heap space with a normal Eclipse dev workspace. Shouldn't this be enough. I will test with 512 MB.
Comment 4 Dirk Baeumer CLA 2006-01-26 10:09:58 EST
The reading goes away when I specify 512 MB. Wouldn't it make sense to let the user control this. Now I have to specify a heap of 512 MB to get a bigger cache but this will also raise the size of the process space since it seems the VM will allocate memeory instead of doing a GC. I now have an allocated heap > 256MB although I was perfectly able to run with a heap of 256 MB.
Comment 5 Philipe Mulet CLA 2006-01-26 12:53:14 EST
Well, it doesn't seem you were running so well... <g>
More seriously, we are thinking of changing the cache growing policy to be slightly more dynamic.
Comment 6 Jerome Lanneluc CLA 2006-02-08 06:41:59 EST
Fix to bug 121652 greatly improve Java model cache (I'm now able to self-host jdt.core using -Xmx64m). 
Please reopen if you still see this problem 3.2M5.

*** This bug has been marked as a duplicate of 121652 ***