Skip to content
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

Added support to attach agent runtime to JVM process #145

Merged
merged 2 commits into from
Sep 19, 2016

Conversation

xnike
Copy link
Contributor

@xnike xnike commented Sep 15, 2016

Sometime it's useful to attach to running JVM process and reload class
with version containing more writing to log entries using Hotswapper
plugin. This helps to investigate rarely heppenning issues, because
restarting JVM with agent doesn't guarantee reproducing of the issues.

PFA example how to attach hotswap-agent.jar to running JVM process:
AgentRunner.java.txt

Sometime it's useful to attach to running JVM process and reload class
with version containing more writing to log entries using Hotswapper
plugin. This helps to investigate rarely heppenning issues, because
restarting JVM with agent doesn't guarantee reproducing of the issues.
@skybber
Copy link
Contributor

skybber commented Sep 18, 2016

Looks great! Could you please add the link to AgentRunner example to README (may be link to a GIST) otherwise it is not clear how to attach Agent to a running JVM now.

Added link to GIST with example code snipping showing how to attach agent jar to already running JVM process.
@xnike
Copy link
Contributor Author

xnike commented Sep 19, 2016

I've added a link to example GIST to README file. Sorry, writing documentation is not my best side.

@skybber
Copy link
Contributor

skybber commented Sep 19, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants