The Eastasouth Journal of Information System and Computer Science
Vol. 1 No. 01 (2023): The Eastasouth Journal of Information System and Computer Science (ESISCS)

Performance Optimization for Spring Boot Microservices: Adaptive Memory, Concurrency, and Resource Management

Tathagata Roy (Independent Researcher, Colorado, USA)



Article Info

Publish Date
31 Aug 2023

Abstract

Containerized Spring Boot microservices frequently encounter performance limitations arising from inefficient JVM memory allocation, blocking concurrency models, and suboptimal resource configuration. This paper presents a comprehensive analysis of optimization strategies for Java‑based microservices running on Spring Boot and Java 17, emphasizing adaptive memory management, thread‑pool tuning, and reactive resource handling. The study examines dynamic heap‑sizing techniques that align JVM memory parameters with container constraints to reduce garbage‑collection frequency and prevent allocation failures. Off‑heap memory approaches, including Netty and native allocation, are evaluated for their ability to lower heap pressure in high‑throughput I/O workloads. Concurrency optimization is addressed through queuing‑theory‑based sizing of fixed and cached thread pools to minimize contention and improve throughput in traditional blocking execution models. The analysis extends to data‑access layers, where reactive database connectivity (R2DBC) and dynamic connection‑pool tuning algorithms are applied to reduce thread waiting time and tail latency. Additional improvements include JPA query and pooling optimizations, Tomcat connector configuration, Spring Boot tuning practices, and Docker image refinements that reduce startup time and memory footprint. The combined evaluation provides a unified framework for enhancing responsiveness, scalability, and resource efficiency in cloud‑native Spring Boot microservices.

Copyrights © 2023






Journal Info

Abbrev

esiscs

Publisher

Subject

Computer Science & IT

Description

ESISCS - The Eastasouth Journal of Information System and Computer Science is a peer-reviewed journal and open access three times a year (April, August, December) published by Eastasouth Institute. ESISCS aims to publish articles in the field of Enterprise systems and applications, Database ...