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

Attach the Agent to a running process #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bimalc
Copy link

@bimalc bimalc commented Mar 18, 2021

With this change we will be able to attach the agent to a running java process and install all the action and see the messages without have to restart the process.

@attilapiros
Copy link
Owner

Thanks for your contribution! :) This is extremely valuable!

But I have to spend some time with it. This new dependency (com.sun:tools:1.8.0) makes me cautious.

Although I might have a solution. Let me share with you I am very interested about your opinion.
The tools jar is only needed for the AgentLoader, right? What about transforming the project to multi module maven project.
One child project created from the old part containing the instrumenting and logging would still depend on the old dependencies (which is not much). The other child would contain the AgentLoader. Sooner or later we need to make this as meaningful testing only can be done via integration tests. That will be the 3rd child.

WDYT?

@bimalc
Copy link
Author

bimalc commented Mar 19, 2021 via email

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