javaagents Questions

2

Together with our SpringBoot (3.0.3) application we are using Application Insights (Azure) for monitoring. Currently we are trying to compile the application natively with the GraalVM. That works q...

3

{"stacktrace":"java.lang.Exception: Origin null is not allowed to call this agent\n\tat org.jolokia.http.HttpRequestHandler.handleThrowable(HttpRequestHandler.java:242)\n\tat org.jolokia.jvmag...
Oculo asked 29/10, 2019 at 15:11

5

Solved

After going through this discussion, I'm led to believe the option to attach to the same VM, by default has been disabled in OpenJDK11. I'm trying to upgrade a java agent to OpenJDK11, during the ...
Linen asked 27/6, 2019 at 9:16

1

Solved

For systems that require a javaagent (say, OpenTelemetry) the docs often start with "download the agent JAR from this URL and add it to your command line". In a world where library depend...
Wexford asked 30/7, 2022 at 13:40

3

Solved

When packing a jar file with custom java agent, you can add the following properties: Can-Redefine-Classes Can-Retransform-Classes What is the difference between those two? If redefinition hap...
Resume asked 25/9, 2013 at 15:52

4

Is it possible to insert a javaagent after virtual machine start from within the same VM? Lets say for example we have an agent in a jar myagent.jar with the appropriate meta data set-up and an ag...
Rabbitfish asked 14/8, 2009 at 10:46

2

Solved

I made a Java agent which is attached to a JVM during runtime and instruments all the loaded project classes and inserts some logging statements. There are 11k classes in total. I measured the tota...
Iow asked 4/7, 2020 at 16:4

1

Solved

I am writing unit tests on a large project which I need to pass JVM arguments to, those are my JVM arguments built into the Eclipse run configuration for that project : --module-path lib/javafx-sd...
Agoraphobia asked 10/2, 2020 at 15:30

1

Solved

Based on this tutorial I try to get a java agent to work. https://www.baeldung.com/java-instrumentation#loading-a-java-agent I do get [Agent] Transforming class TestApplication I have no errors, b...
Hopple asked 29/9, 2019 at 15:24

2

Solved

Is it possible to get a list of agents loaded into the current JVM by the Java 1.6 attach api? If so how? Agents loaded at launch can be determined via RuntimeMXBean but I can't see a way to get a...
Ectomere asked 1/8, 2011 at 21:32

0

I am new to bytebuddy. I tried to follow the link here to instrument a java system class, java.lang.String without success. Below is the code, AgentBuilder agentBuilder = new AgentBuilder.Defaul...
Tattle asked 2/11, 2018 at 20:46

5

Solved

I am trying to develop a javaagent that would instrument code with help of asm-4. For now I'm stucked with a pretty basic problem, the classloader for the javaagent doesn't see asm dependencies and...
Capernaum asked 8/4, 2013 at 6:28

1

I created a javaagent jar file and attached it with a web application (by using -javaagent keyword on the startup of web application). How can i possible to remote debug this javaagent with eclipse...
Poisoning asked 7/11, 2013 at 11:49

3

Solved

I was trying to debug java application using instrumentation. The problem with current system are Hardly written any log statements Poor exception handling This made very difficult to trace ro...
Stans asked 29/11, 2013 at 9:42

1

I need to see how a Java Agent modified my initial class, so I can understand what the code does. build.gradle configurations { jar.archiveName = 'agent2.jar' } jar { manifest { attributes( ...
Phytogeography asked 23/5, 2018 at 11:46

1

Solved

Is there any way to start the AspectJ loadtime weaver during the application is running? Means without restarting the JVM and adding -javaagent:... ? I tried https://mcmap.net/q/527233/-how-can-i-...
Lohse asked 8/2, 2018 at 5:56

3

I'm using AspectJ to monitor field access and field modify. I have a gradle project that compiles the two aspects and package that jar together with the aspectjrt and aspectjweaver in a shaded jar ...
Hershberger asked 20/11, 2017 at 13:53

1

Solved

I'm using a Java Agent and Javassist to add some logging to some JDK classes. Essentially when the system loads some TLS classes, Javassist will add some additional bytecode to them to help me debu...
Luby asked 19/10, 2017 at 14:38

1

Solved

I have a simple java project with on Junit test case that has the current architecture: pom.xml src/main/java/com/Example.Java src/test/java/com/ExampleTest.java The contents of pom.xml are as f...
Trull asked 19/9, 2017 at 14:7

4

Solved

I'm aware of how to start a java progam with a java agent: java -javaagent:myAgent.jar MyJavaProgram But what if I want to add 2 or more java agents to instrument my program? I do not want to re...
Venezuela asked 16/5, 2009 at 15:44

3

In my C++ JNI-Agent project i am implementing a function which would be given a variable number of parameters and would pass the execution to the other function: // address of theOriginalFunction ...
Aurthur asked 22/5, 2017 at 16:8

2

Solved

I'd like to learn something about javaagents, but researching is not easy. Most of result refers to JADE. I know java agent can mean two things: An agent programmed in Java being an incarn...
Amandy asked 10/8, 2012 at 9:10

3

Solved

I have a similar question to: this previous question I am converting a Java project using Netbeans to Maven. In order to launch the program, one of the command-line arguments we need is the -javaa...
Josi asked 8/2, 2013 at 17:18

2

I am using the jetty-alpn-agent to add ALPN support to my project, but all I can find is instructions on how to run it from the .m2 folder, which makes me need to deploy two jar:s instead of just m...
Jussive asked 19/8, 2016 at 7:40

4

Basically, I am trying to write something that lists every class loaded by the JVM. What I wrote works, but it only works for the jvm it is running on. I crafted a java agent to dynamically inject ...
Cultivator asked 15/8, 2016 at 3:15

© 2022 - 2024 — McMap. All rights reserved.