Questions tagged [javaagents]

A Java agent allows for the instrumentation of a Java application by using another Java program that is specified on the command line.

All Java classes concerned with instrumentation are collected in the java.lang.instrument package. The package description defines the layout of a Java agent as follows:

An agent is deployed as a JAR file. An attribute in the JAR file manifest specifies the agent class which will be loaded to start the agent. For implementations that support a command-line interface, an agent is started by specifying an option on the command-line. Implementations may also support a mechanism to start agents some time after the VM has started. For example, an implementation may provide a mechanism that allows a tool to attach to a running application, and initiate the loading of the tool's agent into the running application. The details as to how the load is initiated, is implementation dependent.

538 questions
-1
votes
1 answer

Perfino agent failed to start on linux machine

I tried to start perfino agent on linux machine using various ways. I also followed recommended instruction from perfino more times. It still failing. Please help me. Please see below error. [root@localhost ~]#…
-1
votes
1 answer

Is it possible deploy and run war-application with javaagent on Wildfly/JBoss?

How to deploy and run war-application with javaagent on Wildfly/JBoss? Is it possible?
Valeriy
  • 1,365
  • 3
  • 18
  • 45
-1
votes
1 answer

How to set HTTP header with javaagent

I'm using a Java lib which internally uses Apache HttpClient 4.3 for sending https requests. The 3rd party server requires the 'Content-Type' header which is unfortunately not set by the lib. As changing the lib is not an option, I'd like to use…
user2043423
  • 171
  • 1
  • 10
-1
votes
1 answer

How to collect monitor and collect data on Perfino without UI?

I am hesitate to use Perfino UI on the production environment. I want to run the agent as commandline interface and passing a command to collect and send the snapshot to me. Everything i need to do without any UI? Is it possible
JSBeginner
  • 41
  • 2
  • 12
-1
votes
1 answer

Is it possible to intercept outgoing tcp requests of a java jar?

The problem I am trying to solve is figuring out all the external dependencies of an "Etl" java jar. The jar can call out to any number of external web services but there is no real insight to what they are calling out to. We launch these jars from…
Sam Orozco
  • 1,258
  • 1
  • 13
  • 27
-1
votes
1 answer

Java Agent with Maven - ClassNotFoundException

I am trying to write a Java Agent (for dynamic instrumentation), based off the following article: http://blog.javabenchmark.org/2013/05/java-instrumentation-tutorial.html The problem is that I always get a ClassNotFoundException when I try to use…
icarus
  • 39
  • 4
-1
votes
1 answer

How can we execute -javaagent with jars in the buildpath?

How to execute JVM argument -javaagent with the jar in the class path. Knowing the location of the jars will help. I dont want to explicitly mentioning the location of the jar. Appreciate any help. String nameOfRunningVM =…
-2
votes
1 answer

How to redefine a class with Byte-buddy to add an additional method

If I have the following Class named Dog public class Dog { private String name = "Spike"; private int age = 3; public Dog() {} public String getName() { return name; } } How would I declare ByteBuddy for use in a javaagent to…
stackoverflow
  • 18,348
  • 50
  • 129
  • 196
-2
votes
1 answer

In elastic APM does @CaptureTransaction create a new tab for external calls

for the code below I wanted to create a new tab which would store all the external method calls and would be aggregated, but I am not getting any such results. @CaptureTransaction(value = "Task")
Sumukh H
  • 1
  • 1
-2
votes
1 answer

How do intelligent Agents work with data base?

I am working with JADE framework and I want to know is there any way for intelligent agents to work with some kind of data base, where they can read from it and write some information?.. I tried to make a connection between excel (using jxl) and my…
-3
votes
1 answer

How installing Java Agent?

I would like to know how to use java agent and how to install java agent. I handle for the first time java agent. So they are not familiar. So please explain in detail.
유제이
  • 13
  • 4
-3
votes
1 answer

What are the parameters that prove Obfuscated code is better than simple code in java.

I have two programs of java mobile agents. these programs are simple and obfuscated java mobile agents. **Program 1** package myfirst; import com.ibm.aglet.*; public class MyAglet extends Aglet { public void run() { int a=1; …
-3
votes
1 answer

Which Agent-Based framework for Java is preferable?

I am researching agent based frameworks for Java and want one that is simple and easy to implement. Google search uncovered jade, wade, and jac.
d-man
  • 57,473
  • 85
  • 212
  • 296
1 2 3
35
36