Same issues here. Hundreds of ehcache-sizeof-agentXXXX.jar files in temp folder.
I'm on Windows. No App server involved. I have a bunch of Junit tests which start up a CacheManager, do some stuff, and shut the CacheManager down again. For each test looks like I'm getting one of these jar files in the temp folder.
Pretty sure the ant/junit architecture is shutting down the JVM properly.
A little research reveals that calling deleteOnExit might not be sufficient on windows to ensure the file is deleted. See the PS to this answer on stackoverflow:
http://stackoverflow.com/a/16694493
Is it possible some class is not closing the jar file?
|