What are the uses of jstat and what are its limitations? It is a Java virtual machine tool for monitoring statistics and captures metrics when the JVM is running without any pre-requisite instrumentation. In this article, find out how to launch jstat, what the data it generates means, and what tool you can use to analyze this data.
All Posts by this author
How much memory are you wasting with duplicate strings? In this article, Ram Lakshmanan goes through a Spring Boot PetClinic application and notes how much memory it wastes. If you can reduce the number of objects that are created to service new incoming requests, your response time will get a lot better.
Take a tour of ycrash in this article by Ram Lakshmanan. ycrash helps capture critical artifacts, including garbage collection logs, thread dumps, core dumps, heap dumps, disk usage, and more when the problem happens. It applies machine learning algorithms and generates a report which gives you a complete view of the problem, down to the lines of code that caused it.
When it comes to load balancing, round robin may not be the best algorithm to choose from. If auto-scaling is instrumented, it is even worse. In this article, see a simple example explaining why this is so, how the round robin algorithm works, and which load balancing algorithm you should potentially pick instead for even traffic distribution.
Find out the answers to some commonly asked questions about the differences between 32-bit JVM and 64-bit JVM in this article. You will learn all about things to consider when migrating between the two, which performs better, when you should ideally use either, and how to download each.
Ram Lakshmanan discusses a curious production problem with an application running on multiple AWS EC2 instances behind Elastic Load Balancer. In this article, find out about the error message “TCP: out of memory — consider tuning tcp_mem”, how it was handled, and some concluding advice about memory problems and the ‘dmesg’ command.
Are you Troubleshooting OutofMemoryError related messages? In this article, Ram Lakshmanan walks through four JVM arguments related to OutofMemoryError. Find out what heat dump is and what to do when presented with these errors in this helpful guide.
In this article, Ram Lakshmanan goes over some commonly asked questions about the System.gc() API call. What is System.gc()? How do you detect whether System.gc() calls are made from your application? What are the downsides of invoking System.gc()? Find out all this and more.
When is it best to run your application with fewer instances and large memory size, or a lot of instances with a small memory size? In this article, Ram Lakshmanan discusses the differences and pricing of each module and goes over two multi-billion dollar enterprise stories.
The OutOfMemoryError can be a real pain to troubleshoot, and it’s still done manually for the most part, even in this day and age. Ram Lakshmanan teaches you how to automate troubleshooting and identifying the root cause of this error.