This link has been bookmarked by 7 people . It was first bookmarked on 20 May 2008, by Emmanuel Hugonnet.
-
31 Jan 12
-

Because the agent library will be operating in the same process and address space as the VM itself, anything inside the agent code will run in the VM process too. A bad agent can crash the entire VM process with a trivial null pointer dereference. Agents can also be very difficult to get right. Agent libraries must be re-entrant and MT-safe, and they must follow all the JVM TI and JNI rules. For instance, if your agent leaks memory by calling
malloc()and not doing thefree(), then the VM will appear to have a leak. Allocating too much memory will cause the VM process to fail with anout of memoryerror. You must pay close attention to detail when you add an agent library.
-
-
29 Sep 11
carlos puentesThe JVM tool interface (JVM TI) is a standard native API that allows for native libraries to capture events and control a Java Virtual Machine (JVM) for the Java platform.* These native libraries are sometimes called agent libraries and are often used as a basis for the Java technology-level tool APIs, such as the Java Debugger Interface (JDI) that comes with the Java Development Kit (JDK). Profiler tool vendors will often need to create an agent library that uses JVM TI. This article explores some basics of writing a JVM TI agent library by walking through the heapTracker demo agent available in the JDK downloads.
-
11 Dec 09
-
05 Jun 09
-
18 Jul 08
-
03 Mar 07
-
17 Jan 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.