Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342265 - Excessive memory usage in MRUBundleFileList for plugins/com.sun.xml.bind_2.2.0.v201011030300.jar
Summary: Excessive memory usage in MRUBundleFileList for plugins/com.sun.xml.bind_2.2....
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 07:15 EDT by Robert Munteanu CLA
Modified: 2011-04-29 08:56 EDT (History)
2 users (show)

See Also:


Attachments
Path to GC roots showing how the ZipFile is referenced (86.12 KB, image/png)
2011-04-08 07:16 EDT, Robert Munteanu CLA
no flags Details
Comparison of ZipFile memory usage (66.92 KB, image/png)
2011-04-08 07:17 EDT, Robert Munteanu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Munteanu CLA 2011-04-08 07:15:55 EDT
Build Identifier: 20110218-0911

Analysing the (IMO) large memory footprint of Eclipse I've found that one single ZipFile entry takes up 176 MB. This entry corresponds to the com.sun.xml.bind_2.2.0.v201011030300.jar from the MRUBundleFileList ( screenshot #1 ). On disk, the file has 937056 bytes and 712 entries, so this seems excessive to me. In comparison, the next largest ZipFile takes 28MB. ( screenshot #2 ).

I have saved an memory dump so I can offer more specific information if needed.

JVM information:

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b134)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b04, mixed mode)

VM arguments:

-XX:+AggressiveOpts
-XX:+UseCompressedOops
-Dosgi.requiredJavaVersion=1.6
-Xmx768m
-XX:NewRatio=3
-Xss256k

OS information:
OpenSUSE 11.4
Linux raptor 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux


Reproducible: Always

Steps to Reproduce:
No special steps to reproduce, after regular usage I take a HPROF dump of Eclipse.
Comment 1 Robert Munteanu CLA 2011-04-08 07:16:55 EDT
Created attachment 192813 [details]
Path to GC roots showing how the ZipFile is referenced
Comment 2 Robert Munteanu CLA 2011-04-08 07:17:29 EDT
Created attachment 192814 [details]
Comparison of ZipFile memory usage
Comment 3 Thomas Watson CLA 2011-04-08 08:20:53 EDT
The fact that any of ZipFile object takes up multiple MBs of heap is surprising to me, let alone 176 MB.  I wonder if this is a bug in Java 7.
Comment 4 Robert Munteanu CLA 2011-04-29 03:33:53 EDT
This is likely a bug in the EA version of Java 7. It seems to have went away with 1.7.0-ea-b140 , possibly due to http://hg.openjdk.java.net/jdk7/jdk7/jdk/rev/98688c4be64b .
Comment 5 Thomas Watson CLA 2011-04-29 08:56:05 EDT
(In reply to comment #4)
> This is likely a bug in the EA version of Java 7. It seems to have went away
> with 1.7.0-ea-b140 , possibly due to
> http://hg.openjdk.java.net/jdk7/jdk7/jdk/rev/98688c4be64b .

Thanks for reporting back Robert!  I will close as not eclipse.