Search

Fast thread

Universal Java Thread Dump Analyzer

Tag

Troubleshooting

DevopsCon 2023 – 16 ARTIFACTS TO CAPTURE WHEN YOUR CONTAINER APPLICATION IS IN TROUBLE

DevopsCon, a global conference in Berlin, featured a talk on “16 ARTIFACTS TO CAPTURE WHEN YOUR CONTAINER APPLICATION IS IN TROUBLE.” The session addressed key troubleshooting artifacts and provided analysis tools and techniques. Attendees rated the talk and speaker's knowledge highly at 5, contrasting the overall average of 3.84 and 4.22 for all speakers.

DevopsCon 2023 – MAJOR OUTAGES IN MAJOR ENTERPRISES

DevopsCon is a global conference on DevOps and Business Transformation held in Berlin, where an architect presented on "MAJOR OUTAGES IN MAJOR ENTERPRISES." The session analyzed critical outages and troubleshooting techniques. Attendees rated the talk and speaker's knowledge a perfect 5, compared to an overall average of 3.84 and 4.22 for all speakers.

Parallelism in ConcurrentHashMap

ConcurrentHashMap enhances multi-threaded applications through parallelism, introduced in Java 1.8. This allows problems to be divided into subproblems running across separate threads. Using the fork and join framework, methods like forEach can leverage this feature. While parallelism improves performance with numerous entries, its benefits are less noticeable with fewer records.

Diagnose CPU spike  – non-intrusive approach!

This post outlines a non-intrusive method for diagnosing CPU spikes in production environments using the yCrash data script. It captures 360° data from JVM applications with minimal overhead and allows for analysis of CPU consumption by threads. The process includes data capturing, uploading, and generating a unified root cause analysis report.

Confoo 2023 – KNOWN JAVA APIs, UNKNOWN PERFORMANCE IMPACT!

ConFoo Montreal is a conference for developers, featuring global discussions on technology. Architect Ram Lakshmanan presented on the performance impacts of commonly used Java APIs. The session highlighted how these APIs can affect application performance, aiming to enhance developer awareness. Additional resources include a video link and shared slides.

Pitfalls to avoid when switching to Virtual threads

Java virtual threads, introduced in JDK 19, enhance application performance but have pitfalls. Avoid synchronized methods, as they prevent relinquishing OS thread control, suggesting ReentrantLock instead. Also, replace thread pools with Semaphore for limited backend calls and be cautious with ThreadLocal variables to prevent excessive memory usage when using many virtual threads.

Is Java Virtual Threads lightweight?

Java virtual threads can significantly reduce memory consumption and thread creation time compared to platform threads. While they consume less memory by utilizing Java heap memory, their execution time is tied to platform threads. Virtual threads enhance efficiency, particularly in applications with numerous threads or frequent creation, offering potential improvements in availability and throughput.

Advantages of Java Virtual Threads

Java virtual threads, introduced in JDK 19, offer a lightweight threading model that significantly reduces memory consumption and enhances application availability and throughput. They prevent OutOfMemoryErrors related to thread creation and improve code quality by allowing sequential implementation. Compatible with existing platform threads, virtual threads enable the handling of millions without overhead.

APIs to create Java Virtual Thread

Java virtual threads, introduced in JDK 19, enhance application availability, throughput, and memory efficiency. This post discusses multiple APIs for creating virtual threads, including Thread.startVirtualThread(), Thread.ofVirtual().start(), and Executors.newVirtualThreadPerTaskExecutor(). Understanding these APIs helps developers leverage virtual threads for improved performance and functionality in Java applications.

Up ↑