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

Dynamic attach java agent #12

Open
brianfromoregon opened this issue May 14, 2015 · 1 comment
Open

Dynamic attach java agent #12

brianfromoregon opened this issue May 14, 2015 · 1 comment

Comments

@brianfromoregon
Copy link

JOL has this neat way of attaching the agent at runtime to avoid requiring users to pass -javaagent on the cmdline.
http://hg.openjdk.java.net/code-tools/jol/file/9c716b63a6cf/jol-core/src/main/java/org/openjdk/jol/util/InstrumentationSupport.java

Would you be willing to adopt that approach in this lib?

@jhmanson
Copy link
Contributor

It's probably okay to have it in there, as long as both methods were supported.

Note that that approach is very implementation-dependent, so we'd have to tell people "try it out, and if it doesn't work, then try it with -javaagent". That might make it harder, rather than easier, to deploy - you have to be aware of the target platform.

That said, I'm unlikely to prioritize it, so we'd need someone to implement it.

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

No branches or pull requests

3 participants
@brianfromoregon @jhmanson and others