[2005-07-17 16:12] Ariva Rajaraman said:
| Hi,
| Not sure if you've already done this.  I'd run the code in a profiler to see
| the count of objects created and/or debug to see where the spike in memory
| usage occurs.

  I think I'm just seeing that java isn't always the best tool for 
the job :-\

  I've identified the following objects when the structure is
held in memory.

           Obj Count * approx. Obj size
           =============================
    Record: 28924 * 96
          [Vector entries]: 539910 * 4
      Field: 539910 * 168
        [Map.Entry]: 1303203 * 20
        String: 2606406 * 40      + 30000000

  That adds up to about 200M, and certainly there are other objects
that I've not identified.  I guess I'll have to deal with the memory 
consumption (or spend some time re-implementing to keep fewer Strings 
around in the data structure).

        b


_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to