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

Projects
None yet
2 participants
@xnike
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

Added support to attach agent runtime to JVM process
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

This comment has been minimized.

Show comment
Hide comment
@skybber

skybber Sep 18, 2016

Contributor

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.

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 support to attach agent runtime to JVM process
Added link to GIST with example code snipping showing how to attach agent jar to already running JVM process.
@xnike

This comment has been minimized.

Show comment
Hide comment
@xnike

xnike Sep 19, 2016

Contributor

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

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@skybber

skybber Sep 19, 2016

Contributor

Thanks!

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

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