[java-dev] Re: memory running wild
jbmaxwell
jbmaxwell at btinternet.com
Tue Jul 17 07:46:33 MDT 2007
- Previous message: [java-dev] memory running wild
- Next message: [java-dev] Re: memory running wild
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
As an example, I've just been testing a run of the code in which listA has 292 members, and listB has 203. A complete run of the test for similarity will create 59276 "Link" objects. The total memory used by Max before the run (shown in "top") is about 64MB, and after the run it's about 100MB - so the creation of Link objects presumably used up about 34MB. (If I comment out the line that instantiates the Link objects, the memory stays at 64MB.) Doesn't that seem high? The Link object contains two double arrays (not particularly long ones) and the 2 "Thing" object references mentioned above. But these numbers would suggest about 600 bytes per object. Isn't that a bit much? If that seems like a reasonable size, then I'll just have to figure out a more efficient way of mapping out the similarities I'm after... J.
- Previous message: [java-dev] memory running wild
- Next message: [java-dev] Re: memory running wild
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
