-
Notifications
You must be signed in to change notification settings - Fork 962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can btrace implement hot swap? #346
Comments
When using dynamic attach ( If you attach the agent on startup (as JVM |
Thank you !yeah ,I don't need to restart the server when I change the instrumentation. But if I want to change the function in the agent,is there any method?Such as adding a new Command;Because the Command function is loaded by bootclassloader,it's have no chance to be unload;The only method is restart the server! |
Not really. This would require a fully-functional plugin system with plugin hotswap which is a pretty complicated thing to do. And considering the nature of the JVM agents this would be very susceptible to interference from the traced application - not even mentioning the unintended side effects such a complex agent might have on the traced application itself. What it is you are trying to achieve? |
I want to achieve the function that could monitor and trace the Classes and Methods . |
What about Adaptive Instrumentation - would that solve your problem? |
i don't know |
Stale issue message |
Today, I use btrace to debug my Application ,in the process ,I suddenly have an idea that if the btrace-agent.jar injected to the server could be unload ,then I wonldn't restart the server every time!
If so , I could use btrace to load and unload btrace-agent.jar to the process withouting restart it . It will be more convinient ! Is there any solution?
The text was updated successfully, but these errors were encountered: