javaagents Questions

4

Solved

I wish to profile a Java application without stopping the application. Can I add a Javaagent somehow while the application is running?
Hyperplane asked 27/1, 2011 at 14:36

1

At the moment there is possibility to run JVM with an agent: -javaagent:somejar.jar this way in order to run the Java agent I have wrote as an I have to put it into a jar. therefore it is limite...
Hachmann asked 12/1, 2016 at 10:48

3

Solved

I created a java application and initialize a java.util.Logger with that application and run that application as -javaagent with jboss AS 7 server and i got IllegalStateException (i am using eclips...
Supinator asked 15/1, 2014 at 10:2

2

Solved

I understand Spring avoids using the -javaagent vm option in order to get its AspectJ load time weaving to work and relies instead on a classloader to start the agent. I thought that the Java spec...
Dike asked 22/3, 2014 at 16:32

2

Solved

This is my run configuration. task run << { jvmArgs "-javaagent:/home/audrius/org.springframework.instrument-3.0.5.RELEASE.jar" jettyRun.execute() } but it gives me: Could not find meth...
Hairtail asked 24/6, 2015 at 13:5

1

I am trying to add a static method call to the java.lang.Object constructor using the java.lang.instrument API. I know I have the basics right because it works if I make the method call System.gc()...
Facelift asked 2/5, 2012 at 23:54

3

Solved

I´m trying to install an application health monitoring application that can monitor J2EE web transactions and I need to put a javaagent into my Tomcat somehow but am not clear on exactly how to do ...
Cavalier asked 14/7, 2011 at 16:55

1

Solved

How do I pass arguments to a java.lang.instrument instrumentation agent? The documentation simply states: -javaagent:jarpath[=options] What options can I select?
Elegy asked 25/4, 2014 at 7:50

1

Solved

I'm getting this error when starting cassandra after upgrade. Any idea? # cassandra -f xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPol...
Ro asked 18/3, 2014 at 4:48

1

Solved

To use the spring AOP, I have to configure -javaagent:C:/spring-agent-2.5.6.jar as JVM argument. But there is a jar that is already configured i.e. -javaagent:C:/other.jar Now how can I conf...
Elegant asked 28/11, 2013 at 12:58

1

Solved

I done some java bytecode instrumentation with -javaagent argument and premain method. But this is the first time i hear about agentmain method. I have some questions about this method. Here follow...
Counterpoint asked 5/11, 2013 at 9:54

0

i'm learning about javaagent and i created a simple profiler http://www.javabeat.net/2012/06/introduction-to-java-agents/ I profiled a java application and it works fine. can i use this profiler...
Komara asked 28/3, 2013 at 11:34

1

Solved

I'm newbie on java agents. I created a simple HotswapAgent class (sniffing from Play! Framework): public class HotswapAgent { static Instrumentation instrumentation; public static boolean ena...
Cassimere asked 11/10, 2012 at 16:23

4

Solved

I would like to be able to run the Play Framework 2.0 server with a javaagent. Some resources on the web (see here and here ) suggest that this could be done simply by appending -javaagent:/path/...
Tempura asked 13/6, 2012 at 10:3

1

I want to write a java agent to instrument some applications. I am interested in getting the details of the objects, (i.e. their fields) instantiated by the applications. I would also like to catch...
Uncouple asked 25/7, 2011 at 3:39

1

Solved

I implemented a ClassFileTransformer for a javaagent using ASM. Because it has some bugs, I want to write a JUnit test case for it. How do I do this? Using pseudo-code I thought along the lines: ...
Offset asked 5/7, 2011 at 17:42

1

How to resolve 1 particular flavor of 'java result 1' in the context of using JVMTI agents?
Brilliant asked 20/11, 2010 at 2:45

1

Hopefully an easy question here for someone..... I'm using RAD 7.5.2, and am writing Junit tests. I was writing them just fine with JUnit 3, and then I wanted to mock up some function calls. So I ...
Rite asked 13/5, 2009 at 20:2

© 2022 - 2024 — McMap. All rights reserved.