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
0
votes
1 answer

Javassist's CtMethod.insertAt(line,src) instruments code at the wrong bytecode position

My goal is to insert a little bit of instrumentation code at the beginning of each basic block of code. It seems like a fairly simple task with Javaassist's ControlFlow.Block and CtMethod.insertAt(). Here's the relevant chunk of code so far (it's…
Suedocode
  • 2,504
  • 3
  • 23
  • 41
0
votes
1 answer

to get start and end time of application hosted in tomcat using javaagent

I have written a javaagent application to get the execution time of a java application and it works fine. i tried to use this application to get the execution time of a application hosted in tomcat server. i didn't get the required output. my…
Raj
  • 440
  • 2
  • 6
  • 22
0
votes
1 answer

Centralized Logging - Correlating Messages Across Servers

We have a very distributed system. A user's request on the site may involve calls to several services. For example, when a user log onto the site, calls are made to ads service, personalization service, related news service, etc. to construct the…
dsatish
  • 1,041
  • 15
  • 27
0
votes
2 answers

Java Agent:- Notes Error : JVM : Attempt to retrieve java agent attachments failed

I have got problem while working with Java agent in Notes client. I need to upload the file from particular path in Notes client memo form. I am using Java agent. It uses Alfresco's API to upload file to alfresco server. It works fine in standalone…
Vijayakumar
  • 85
  • 16
0
votes
2 answers

Ways to profile a java application for jdk7

I have been profiling my java application with javaagent. but i find that JDK 7 tightened up the checks performed on stack map frames which can lead to VerifyError exceptions when the bytecode has been modified by tools unaware of these changes. we…
Raj
  • 440
  • 2
  • 6
  • 22
0
votes
1 answer

Glassfish javaagent instrumented class experiences NoClassDefError

I have Oracle GlassFish 3.1.2.2 (build 5) server plugged with my own javaagent. The javaagent instruments specific classes(say servlets) by injecting a piece of bytecode which referes to classes available in javaagent.jar. When the injected fragment…
krishna
  • 807
  • 2
  • 11
  • 19
0
votes
1 answer

Lotus Java agent can unable to write on a network drive

The problem to fix I have a java agent in a database on a Lotus Domino 8.5.3 server, to create export data on a network drive. The signer of the agent is listed in all of the programmability restrictions fields of the server document. The windows…
Jozsef Lehocz
  • 330
  • 3
  • 21
0
votes
1 answer

Java Agent generating file link

In lotus manually you need to create a hotspot link if you want to send a reference to a file on a network drive. Is it possible to send an e-mail programatically by Java agent with the same link? (In lotusscript mimeentity can be used for this…
Jozsef Lehocz
  • 330
  • 3
  • 21
0
votes
1 answer

Running classmexer for a tomcat application?

I'm trying to use classmexer-0.3.jar with tomcat to get Object sizes for my web application. However when the method is invoked I get the following error message: java.lang.NoClassDefFoundError: Ljavax/transaction/TransactionManager; …
Alexei Blue
  • 1,762
  • 3
  • 21
  • 36
0
votes
1 answer

jvmti for jdk 6 - references and tutorials

Does anyone know a good starting point to learn writing jvmti agents. I am looking for books or online tutorials for this. I looked at the http://docs.oracle.com/javase/6/docs/platform/jvmti/jvmti.html But it does not seem to provide a clear outline…
Ayusman
  • 8,509
  • 21
  • 79
  • 132
0
votes
2 answers

Create Java Agent vs Calling Notes API - Louts Notes

I have a task of reading emails from Lotus Dominos mailbox. To perform the same I am have following two options (there might be other options as well): Create a Java Agent within the mailbox and schedule it. It will process the mails and take…
Sandeep Jindal
  • 14,510
  • 18
  • 83
  • 121
0
votes
1 answer

apache 6 tomcat setenv.bat file the input line is too long

When I try to start my apache server with the startup batch file. I get this error message: the input line is too long "C:\Tomcat\apache-tomcat-6.0.35\bin\setenv.bat" was unexpected at this time. My setenv.bat looks like this: set CATALINA_OPTS="…
0
votes
0 answers

Weave constructor created Aspects at run time?

Is it possible to define properties of an aspect's pointcut through a constructor and then allow it to weave at run time after an instance has been created? Also is it possible to load/unload/modify specific aspects during run time? I was planning…
AgentRegEdit
  • 1,089
  • 2
  • 16
  • 32
0
votes
1 answer

Using TomEE and open JPA, i get the following error: SEVERE: JAVA AGENT NOT INSTALLED

I'm getting the following error using TomEE and JPA: SEVERE: JAVA AGENT NOT INSTALLED. The JPA Persistence Provider requested installation of a ClassFileTransformer which requires a JavaAgent. See http://openejb.apache.org/3.0/javaagent.html Is…
Greg
  • 1,549
  • 1
  • 20
  • 34
-1
votes
1 answer

NewRelic configuration in Mendix private cloud

Can anyone provide the location of m2ee.yaml file for configuring Newrelic in mendix private cloud. Ref URL: https://docs.mendix.com/developerportal/deploy/setting-up-monitoring-with-new-relic/
1 2 3
35
36