Join GitHub today
Make the agent attachable to a running VM #280
By adding the agentmain method, we enable the ability of attaching
Important to note that this change does not break any of the existing behaviours of the agent nor it adds any extra responsibility to it, it only enables this ability on top of it.
@brian-brazil Can you please review? Could this be something that we could add to the agent?
Thanks for your reply @brian-brazil. I'd like to highlight that this change does not alter the way JMX exporter works, but it makes it easy to attach it dynamically to a JVM (instead of only statically). That will facilitate the upgrade of the agent JAR in entire infrastructure thus improving the operational productivity of the teams.