Author |
Message |
|
Hi,
Thanks for your response.
I use tomcat6 and java1.6 on windows. The temp jar was generated under tomcat temp dir.
I just run CacheManager.shutdown() when the server is stopped.
Should it delete the temp jar file?
What does "deleteOnExit() " mean? When server stopped or java process stopped?
|
|
|
Hi,
I have question about memory and disk size.
I used following methods to calculate memory and disk used for each cache.
long memory = cache.calculateInMemorySize();
long disk = cache.calculateOnDiskSize();
But I found following info from log
Apr 24, 2012 6:01:33 PM net.sf.ehcache.pool.impl.DefaultSizeOfEngine <init>
INFO: using Agent sizeof engine
And it will generate a jar file in temp folder every time when my server start.
Such as ehcache-sizeof-agent6180971373061181966.jar
I have got lots of ehcache-sizeof-agent<xxxxx>.jar in the temp folder.
Am I using the correct method? How to avoid the jar generation in temp folder? Thanks.
|
|
|