jvmti Questions
2
I have my own JDI Debugger which calls the toString method on some objects:
com.sun.jdi.ObjectReferenceobject object = ...
ThreadReference threadRef = frameProxy.threadProxy().getThreadReference();...
Marybellemarybeth asked 17/8, 2020 at 21:13
1
Solved
So, JDI allows us to set a breakpoint in the debuggee app and then get the current StackFrame via JDWP. To my understanding, JVMTI is used at the debuggee side to send the requested information to ...
Botfly asked 17/6, 2020 at 16:20
1
A Java class file format supports an attribute called "source debug extension" (see Java language specification §4.7.11 "TheSourceDebugExtension attribute").
In JVMs that support this aspect ...
Eddo asked 26/8, 2014 at 23:44
1
Solved
I am instrumenting a class file during runtime for various purposes. I'm using a JVMTI agent to that end. My strategy to instrument a method is to call RetransformClasses function to invoke ClassFi...
Capernaum asked 23/1, 2017 at 8:6
3
Solved
In order to support better profiling data I would like my JVMTI agent to enable a couple of JVM flags.
The agent in question is Honest-Profiler and it is can only be loaded at startup.
I would lik...
1
Is there a way to get notified on all invocations to constructor of String class (either directly or using reflection) without weaving or instrumenting rt.jar?
Further is it possible to filter the...
2
how to fix fatal error jvmti.h No such file or directory compilation terminated c code ubuntu? my c code is:
include "jvmti.h"
JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *optio...
4
I'm not looking for the usual "you can only hint the GC in Java using System.gc()" answers, this is not at all what this question is about.
My questions is not subjective and is based on a reality...
Experimentalism asked 1/2, 2010 at 16:34
1
.NET has a couple of handy annotations that instruct a debugger to step through/over certain methods. I would like to know if there is an equivalent that works on the Java platform.
For instance:
...
4
There are multiple ways to generate thread dumps in java.
I'd like to use JVMTI (the C API) to generate it, in order to evaluate its performance impact on a running JVM. (I am aware of jstack and ...
Gloaming asked 7/11, 2014 at 6:38
6
Solved
Is there a nice Java API I can use on top of JVMTI?
1
I was trying to modify class dynamically, such as call sleep() before a line. I attached agent to a jvm during runtime using Attach method. Then I got target class from jvm, and modified it(Add a l...
3
Solved
I am looking for potentially a JDI API to pause the JVM at any arbitrary point during its execution. Looking at the BreakPointRequest createBreakpointRequest method needs a specific location. Is th...
3
Solved
I spent the last 4 hours trying to set up Eclipse TPTP memory
profiling on a Tomcat instance that must be run remotely (i.e. not in
Eclipse). This should be possible according to the TPTP and Agent...
0
JDK1.6, modify class loaded in jvm dynamically. When I comment the code:classReader.accept(classAdapter, ClassReader.SKIP_DEBUG);, the exception "UnsupportedOperationException" disapear.
Actually, ...
2
Solved
I am looking for a BCI (Bytecode Instrumentation) library for Java in C or C++, to use in a JVMTI agent.
Best case scenario would be something like ASM or BCEL in pure C.
The closest thing I hav...
Candlewood asked 30/7, 2012 at 9:38
1
Solved
When using the Java Attach API, I'm getting the following link error on Linux (tried it on different machines) only:
Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.tools.attach.Win...
Malfeasance asked 8/3, 2013 at 9:20
2
I'm currently building a native JVMTI agent for Java 1.7. The problem is that I need to index some data regarding specific Java's object instances. So my question is can I use jobject type's value ...
2
Solved
Building a profiler of my own, I use the JVMTI API to build a native library agent. This agent can be started together with the JVM by using the addition parameter -agentlib. In addition there is t...
2
Solved
This question is limited in scope to HotSpot generations. Is there any way to programmatically find out in which generation a particular instance lives. Data such as:
Young or old generation?
If ...
Fluting asked 16/12, 2010 at 0:36
1
lsof is a nice tool for Unix, showing all currently open file handles.
Does anyone know a similar tool that would show all open files inside a running JVM (via JVMTI or any similar interface)?
In...
2
Solved
I'm using the attach API to load a JVMTI agent at runtime. I'd like to unload the JVMTI agent when my program is done without terminating the JVM the agent is loaded in. According to this documenta...
2
Solved
I have implemented a simple profiler with JVMTI to display the invocation on wait() and notifyAll(). As a test case I am using the. producer consumer example of Oracle. I have the following three e...
Last asked 3/5, 2011 at 11:49
1
Solved
I am writing JVMTI code to profile Java programs, which mostly entails obtaining stack traces from random threads at fixed time intervals using the function AsyncGetCallTrace. Thus, I am able to ob...
Shirtmaker asked 13/8, 2010 at 17:26
2
Is it possible to create a JVM from within a JNI method using the JNI API?
I've tried to do this using the JNI function "JNI_CreateJavaVM()", but it's not working (the function keeps returning a v...
Prosopopoeia asked 14/2, 2010 at 2:38
1 Next >
© 2022 - 2024 — McMap. All rights reserved.