Bug 125049 - Hierarchy of Object and Model cache size
Summary: Hierarchy of Object and Model cache size
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2006-01-24 13:46 EST by Kent Johnson CLA
Modified: 2006-02-08 06:28 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Johnson CLA 2006-01-24 13:46:10 EST
With both a 1.4.2 & 1.5 JRE in the workspace, try to open the hierarchy of Object (1.5).

Start your workspace 'with only' -Xmx256M. It appears the Java Model Cache is unable to handle the 2 jre's given its current size.

"ModalContext" prio=7 tid=0x0324f240 nid=0xf30 runnable [469f000..469fd8c]
        at java.util.zip.ZipFile.getNextEntry(Native Method)
        at java.util.zip.ZipFile.access$400(ZipFile.java:26)
        at java.util.zip.ZipFile$2.nextElement(ZipFile.java:315)
        - locked <0x16defc20> (a java.util.zip.ZipFile)
        at o.e.jdt.int.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:86)
        at o.e.jdt.int.core.PackageFragmentRoot.buildStructure(PackageFragmentRoot.java:174)
        at o.e.jdt.int.core.Openable.generateInfos(Openable.java:235)
        at o.e.jdt.int.core.JarPackageFragment.generateInfos(JarPackageFragment.java:113)
        at o.e.jdt.int.core.JavaElement.openWhenClosed(JavaElement.java:503)
        at o.e.jdt.int.core.JavaElement.getElementInfo(JavaElement.java:247)
        at o.e.jdt.int.core.JavaElement.getElementInfo(JavaElement.java:233)
        at o.e.jdt.int.core.JavaElement.getChildren(JavaElement.java:188)
        at o.e.jdt.int.core.JavaElement.getChildrenOfType(JavaElement.java:202)
        at o.e.jdt.int.core.JarPackageFragment.getClassFiles(JarPackageFragment.java:120)
        at o.e.jdt.int.core.NameLookup.seekTypesInBinaryPackage(NameLookup.java:937)
        at o.e.jdt.int.core.NameLookup.seekTypes(NameLookup.java:914)
        at o.e.jdt.int.core.NameLookup.findType(NameLookup.java:710)
        at o.e.jdt.int.core.NameLookup.findType(NameLookup.java:607)
        at o.e.jdt.int.core.NameLookup.findType(NameLookup.java:567)
        at o.e.jdt.int.core.SearchableEnvironment.find(SearchableEnvironment.java:78)
        at o.e.jdt.int.core.SearchableEnvironment.findType(SearchableEnvironment.java:145)
Comment 1 Philipe Mulet CLA 2006-01-24 14:19:28 EST
Size could grow in case of frequent flushes.
Need to be investigated during perf cycle.
Trace should be more instructive as well.
Comment 2 Jerome Lanneluc CLA 2006-01-31 12:01:50 EST
Just tried to open the hierarchy of Object 1.5 in a workspace with both a 1.4.2 and 1.5 JRE, and I got the result in less than 10s.
Comment 3 Jerome Lanneluc CLA 2006-01-31 12:02:35 EST
Note that I was running with -Xmx128m
Comment 4 Jerome Lanneluc CLA 2006-02-08 06:28:38 EST
Please reopen if you have more details on how to reproduce with latest.