Java virtual thread is a new type of threading model architecture introduced in JDK 19. Before you try to learn the benefits of Java Virtual Threads, you might want to understand how Java virtual thread works. Here is a post that gives you a quick introduction to Java virtual threads (we highly recommend you to... Continue Reading →
APIs to create Java Virtual Thread
Java virtual thread is a new feature available from JDK 19. It has potential to improve an application’s availability, throughput and code quality on top of reducing memory consumption. If you are interested in learning more about Java virtual thread, here is a quick introduction to it. Video: To see the visual walk-through of this post,... Continue Reading →
Is Java Virtual Threads lightweight?
Quick answer is 'yes' :-). Before you try to understand how lightweight Java virtual threads are, you might want to understand how Java virtual thread works? Here is a post that gives a quick introduction to Java virtual threads. We highly recommend you read the quick introduction post, before reading further. Video: To see the visual... Continue Reading →
Java UUID generation – Performance impact
Java developers tend to use 'java.util.UUID#randomUUID()' API, to generate a UUID (Universally Unique Identifier) number (i.e., 'b8bbcbed-ca07-490c-8711-5118ee0af2f9'). Under certain circumstances, using this API can affect your application’s availability. Let’s discuss this API in this post with a real-world example. Performance impact on Java UUID generation https://youtu.be/8Q_injWDm9M How does 'java.util.UUID#randomUUID()' API works? java.util.UUID#randomUUID() API internally uses... Continue Reading →
Java threads – may not be memory efficient?
Java applications tend to contain hundreds (sometimes thousands) of threads. The majority of these threads are in WAITING, TIMED_WAITING (i.e., dormant) state, while only a small portion of the threads are actively executing lines of code. So, we were curious to know whether dormant threads consume less memory than active threads. To figure out an... Continue Reading →
Chaos Engineering – Simulating CPU spike
In this series of chaos engineering articles, let's discuss how to simulate CPU consumption to spike up to 100% on a host (or container). CPU consumption will spike up whenever a thread goes on an infinite loop. Here is a sample program from the open-source BuggyApp application, which would cause the CPU to spike up.... Continue Reading →
yCrash Demo video
yCrash app is a non-intrusive, secure, instant root cause analysis tool. It captures thread dump, heap dump, GC log, netstat, vmstat, top, and several more artifacts, right when the problem is happening in the production. It instantly analyzes all the artifacts & generates a root cause analysis report in the dashboard. Watch this below video... Continue Reading →