Mantis - Resin
|Viewing Issue Advanced Details|
|ID:||Category:||Severity:||Reproducibility:||Date Submitted:||Last Update:|
|3054||minor||always||11-07-08 09:40||12-15-08 11:50|
|ETA:||none||Fixed in Version:||4.0.0|
|Summary:||0003054: cache memory size|
(rep by Daniel Vydra)
we're trying to assess the memory usage of our application which is running in resin professional 3.0.19.
We are using resin cache, which is configured like this:
<cache path="cache" memory-size="10M" disk-size="1G" />
We had assumed this means that the cache would use up a maximum of 10 megabytes of memory, but when we take a heap dump:
jmap -dump:format=b,file=/path/to/dump.hprof <javaProcessPid>
and run it through Eclipse Memory Analyser, it shows that there are approx 170-200 megabytes retained by com.caucho.db.store.BlockManager, all in com.caucho.util.LongKeyLruCache$CacheItem objects (about 2979 objects total).
Is this expected? Is there any way to use the cache without having the memory usage for it expand to this size?
|Steps To Reproduce:|
|There are no notes attached to this issue.|