Best of JVMSeptember 2024

  1. 1
    Article
    Avatar of inside_javaInside Java·2y

    The Reflection API

    Reflection in Java allows examination or modification of runtime behavior of applications running in the Java virtual machine. This powerful yet advanced feature should be used by developers with a strong grasp of Java. Key topics include retrieving class instances, reading class names and modifiers, accessing fields, invoking methods and constructors, working with arrays, enumerations, and records, reading annotations, and creating interceptors and dependency injection frameworks.

  2. 2
    Article
    Avatar of jetbrainsJetBrains·2y

    Ktor 101: Efficient JVM HTTP Toolkit

    Ktor is a toolkit for building server applications on the JVM using Kotlin. It leverages Kotlin's features like coroutines to ensure efficient and flexible web applications. Ktor includes essential components for web development such as routing, authentication, and support for various protocols, including HTTP and WebSockets. With native support for asynchronous programming, it allows for declarative and non-blocking code. The toolkit also provides built-in testability and extensibility through plugins and interceptors, making it suitable for modern application architectures like microservices.

  3. 3
    Article
    Avatar of baeldungBaeldung·2y

    Deep Dive Into JVM Tools: Dynamic Attach and Serviceability Agent

    JVM serviceability tools like Dynamic Attach and the Serviceability Agent are critical for managing Java applications in production environments. Dynamic Attach allows real-time diagnostics and dynamic loading of Java agents without restarting the application, but has limitations like potential performance overhead and compatibility issues. The Serviceability Agent provides deep insights into JVM internals, allowing post-mortem debugging and thorough analysis of thread states, memory usage, and locking issues. Both tools complement each other, with Dynamic Attach focusing on live applications and the Serviceability Agent offering comprehensive post-mortem analysis.