Attach the Agent to a running process#13
Open
bimalc wants to merge 2 commits intoattilapiros:masterfrom
Open
Conversation
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. WDYT? |
Author
|
Hi Attila,
Yes, this needs caution and I also just experimented with this feature and
was using since we last talked in around September. Now when I got time to
merge it back these questions needs to be addressed.
So yes the tools jar is only needed for the AgentLoader, and transforming
the project to multi module maven project will be a good idea to keep it
separate.
Few things about tools.jar is that the tools.jar at the runtime should be
exactly the same version of the java being used to run the running process.
So irrespective of me compiling it with 1.8.0 I use the tools.jar from
exact jdk being used to run program and it works. So this will again need
some testing to see if really we need to have a version dependency on this
or what is the best approach here. The Agentloader is happy as long as the
running jvm and the tools.jar on classpath is from same version.
I will also look into these aspects this weekend and update you.
Thanks & Regards
Bimal
…On Thu, Mar 18, 2021 at 8:35 PM Attila Zsolt Piros ***@***.***> wrote:
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?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEW6URFHZXC37Z7PMAEJEFDTEKS6TANCNFSM4ZLXPU4A>
.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.