dlmarion commented on code in PR #33: URL: https://github.com/apache/accumulo-classloaders/pull/33#discussion_r2695536725
########## modules/local-caching-classloader/README.md: ########## @@ -170,20 +177,28 @@ constructed at that time. ## Cleanup + Because the cache directory is shared among multiple processes, and one process can't know what the other processes are doing, this class cannot clean up the shared cache directory of unused resources. It is left to the user to remove unused files from the cache. While the context definition JSON files are always safe to delete, it is not recommended to do so for any that are still in use, because they can be useful for troubleshooting. +To aid in this task a JMX MXBean has been created to expose the files that are still referenced Review Comment: We might be able to create a tool that works in one deployment scenario, but it might be hard to make it work in many of them. More information on how to make JMX client connections and server options here: https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html. My test is using the connection mechanism described in the example at https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html#gdhkq. it works because I'm using mini in the tests and I know that all of the processes are on the localhost **and** because I remove that one system property (If that system property is set then this mechanism doesn't find the processes). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
