You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ehcache-users
The project Ehcache will put the sizof-agent.jar in temporary path ofoperating systemafter the java process islaunched. The cron job of operating system will clean the files which have not been accessed for a certain period of time in temporary periodically. But I found some jars of Ehcache which belong to some java processes were deleted by cron job, while some jars ofEhcache which belong to other java processes still exist in temporary directory. So I want to know when does jvm access the the jar file of sizeof-agent.jar in classpath. Why some of jars of size-agent.jar were not deleted. thanks.
Chris Dennis
unread,
Jul 23, 2015, 9:18:55 AM7/23/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ehcach...@googlegroups.com
The agent jar is cleaned up using the JDK’s deleteOnExit functionality. This will delete the file if the JVM terminates ‘normally’, so if the JVM was forcibly killed then it will get no chance to delete the file.
The project Ehcache will put the sizof-agent.jar in temporary path ofoperating systemafter the java process islaunched. The cron job of operating system will clean the files which have not been accessed for a certain period of time in temporary periodically. But I found some jars of Ehcache which belong to some java processes were deleted by cron job, while some jars ofEhcache which belong to other java processes still exist in temporary directory. So I want to know when does jvm access the the jar file of sizeof-agent.jar in classpath. Why some of jars of size-agent.jar were not deleted. thanks.