I need to load a java agent without setting -javaagent. The reason why I need to do this is I have an exe that starts a JVM with command line args spe ...
I need to load a java agent without setting -javaagent. The reason why I need to do this is I have an exe that starts a JVM with command line args spe ...
There is a jvm in a shared vm. Other developer may remote debugging by idea, and cause hang up at breakpoints. In some reason, I need to continue the ...
I'm writing a native Java agent using JVMTI that goes over all the methods of all the loaded classes. Unfortunately many classes seem not yet prepared ...
The only way I know to force garbage collection is to use ForceGarbageCollection() from JVMTI. Is there any cross-platofrm way to force GC (so I don't ...
So Java's debug interface is using JVMTI as a backend....but JVMTI needs to be compiled on the target architecture, so are these JVMTI functions which ...
Is it possible to use a Java agent to get the number of instances of any Java class? For example if we have The Java agent will return how many App ...
Please explain how JVM collect ThreadDump underhood. I don't understand how it collectons stack traces of threads that are off-CPU (wait disk IO,Netwo ...
I decided using JVMTI to register all exceptions occured in JVM and build Histogram: ClassName_method_ExceptionName:count Agent attached like this: t ...
I've realy though about how can I catch JIT's deoptimization events. Today, I've read brilliant answer by Andrei Pangin When busy-spining java thread ...
Help me to understand difference between JVMTI_EVENT_COMPILED_METHOD_* and JVMTI_EVENT_DYNAMIC_CODE_GENERATED for OpenJDK 8. I counts this events for ...
How to find out if an com.sun.jdi.ObjectReference instance is an enum? I can get the type of the instance with ObjectReference.type() which gives a Cl ...
I have my own JDI Debugger which calls the toString method on some objects: com.sun.jdi.ObjectReferenceobject object = ... ThreadReference threadRef ...
I am instrumenting some classes and introducing some new local variables. Now, when the user places a breakpoint in the code, and execution is stopped ...
I don't know why is giving me errors on JNIEXPORT and JNICALL... Info: Visual studio 2017, Windows JAVA_HOME is set. Added the directory in 'C/C++ ...
The JVMTI documentation states the following about VMInit events. The VM initialization event signals the completion of VM initialization. T ...
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 debu ...
I have the following code to get the line numbers at the current stack frame locations when an exception is thrown that works but I figured it out by ...
I have the following JNI/JVMTI code: This code works as long field is a reference type (java.lang.Object and subtypes). If field is a primitive typ ...
According to the OpenJDK's website, it is possible to attach a thread to Hotspot (Dynamic Attach API) which can collect information about it. I couldn ...
When requesting the stack trace from another thread via Thread#getStackTrace() or ThreadMXBean#getThreadInfo(long[], int), do all threads have to ente ...