sizeof-agent.jar deleted

189 views
Skip to first unread message

cyf...@gmail.com

unread,
Jul 23, 2015, 2:35:10 AM7/23/15
to ehcache-users
The project Ehcache will put the sizof-agent.jar in temporary path of operating system after the java process is launched. 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 of Ehcache 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
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.

On 7/23/15, 2:35 AM, "ehcach...@googlegroups.com on behalf of cyf...@gmail.com" <ehcach...@googlegroups.com on behalf of cyf...@gmail.com> wrote:

The project Ehcache will put the sizof-agent.jar in temporary path of operating system after the java process is launched. 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 of Ehcache 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.

--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ehcache-user...@googlegroups.com.
To post to this group, send email to ehcach...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/2687d650-f471-4cb1-ac24-49aefa04f914%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages