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 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!

@skybber skybber closed this Sep 19, 2016
@skybber skybber reopened this Sep 19, 2016
@skybber skybber merged commit 7140f4d into HotswapProjects:master Sep 19, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.