I have Tomcat running applications. I cannot restart Tomcat, but I would like to monitor the use of class files.
I would like to register if the specified class is used. Is it possible? How could I do this?
Using a class. If an object for this class is created or methods are called, etc.
Clarification: I cannot restart the application. Each solution with recompilation of working code is unacceptable. This makes the problem harder.
Remote debugging / JMX is not yet enabled. It will be a similar effort, for example, recompiling the application to activate it.
Platform - RHEL, 64 bit.
source
share