commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Jambert <marc.jamb...@vegatechnologies.fr>
Subject [Collections] PB with LRUMap serialization
Date Fri, 06 Aug 2004 08:23:27 GMT
Hi all

I have met a strange problem while serializing/deserializing LRUMaps.

I am performing the following operations in my code:
1) If serialized file exists, deserialize LRUMap
2) Fill LRUMap
3) Serialize LRUMap to file

I run my program several times, and the memory is growing over and over
at each run ! After 10 runs the deserialization of a file of 1850 bytes
ends up in taking 300megs in memory. The strange thing is that :

* The number of entries is the same each time
* The size of the file cache on disk is always the same (though the file
is modified)

I replaced the LRUMap with a classical HashMap and do not have any
memory problem.

Any clue ? Is there some kind of memory leak ? 

Thanks!


-- 
o----------------------------------o
|           Marc Jambert           |
| marc.jambert@vegatechnologies.fr |
|                                  |
|       (tel) 05-67-77-19-72       |
|       (fax) 05-67-77-19-98       |
o----------------------------------o
|        Vega Technologies         |
o----------------------------------o


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message