Java Flight Recorder (JFR) allows for low-overhead profiling to identify performance issues like DB connection leaks. This occurs when applications fail to close database connections, exhausting limits and causing errors. The blog outlines how to simulate and analyze connection leaks using JFR data, providing methods for resolution, including proper resource management practices.
Troubleshooting Spring Boot DB Connection Leaks
This article talks about a common problem with Spring Boot applications: database connection leaks. These leaks happen when connections aren't closed properly, which can slow down the system or even cause it to crash. The article sheds some light on how one can find and fix these leaks by looking at errors and network metrics and also suggests solutions like try-with-resources and connection pools to stop leaks from happening in the first place.
Spring Boot Buggy APIs – Simulate performance problems
The Spring Boot Buggy API is an open-source tool for simulating various performance issues like memory leaks and CPU spikes in applications. By testing these scenarios, developers can assess system resilience and evaluate performance monitoring tools. It allows easy invocation of specific problems to analyze system behavior and improve software robustness.
Chaos Engineering – DB Connection Leak
All modern applications connect with storage, such as a database or cache. Database connection leak is commonly observed in modern applications, which can result in connection leaks that can lead to production outages. In our series of chaos engineering articles, we have been learning how to simulate various performance problems. In this post, let's discuss... Continue Reading →
