9dc5d75a16 | ||
---|---|---|
.. | ||
src | ||
README.md | ||
pom.xml |
README.md
Core Java JVM Cookbooks and Examples
This module contains articles about working with the Java Virtual Machine (JVM).
Relevant Articles:
- Method Inlining in the JVM
- JVM Log Forging
- Guide to Java Instrumentation
- Class Loaders in Java
- A Guide to System.exit()
- Guide to System.gc()
- Runtime.getRuntime().halt() vs System.exit() in Java
- How to Get the Size of an Object in Java
- What Causes java.lang.OutOfMemoryError: unable to create new native thread
- View Bytecode of a Class File in Java
- More articles: [next -->]
To run the code for the Instrumentation: https://www.baeldung.com/java-instrumentation article: 1- build the module 2- run the module 3 times to build the 3 jars: mvn install -PbuildAgentLoader mvn install -PbuildApplication mvn install -PbuildAgent 3- update the commands in the article with the exact names of the jars generated in the target folder 4- update the path in the AgentLoader class with the path of the agent on your system