LLM for Automated Root Cause Analysis in Microservices Architectures

The adoption of microservices architectures has introduced significant challenges in diagnosing and resolving system issues efficiently, as multiple services handling millions of requests generate vast volumes of exceptions, including business errors and critical runtime failures. Traditional manual approaches for error analysis and Root Cause Analysis (RCA) are time-consuming, error-prone and lack scalability. Existing tools often aggregate exceptions but fail to effectively classify or diagnose root causes, leading to prolonged system downtimes and reduced developer productivity. This research proposes an automated solution leveraging fine-tuned Large Language Models (LLMs), combined with an Exception Classifier powered by Natural Language Processing (NLP) and machine learning techniques. The system adopts a layered architecture where exceptions are aggregated through a Kafka cluster. The Exception Classifier preprocesses error messages, extracts contextual information and categorizes exceptions into business and runtime errors. Classified runtime errors are forwarded to the RCA service, where fine-tuned LLMs perform detailed diagnostics by analyzing exception stack trace and tokenized code repository. The solution targets over 90% precision for business exceptions and 89.6% recall for runtime exceptions in Exception Classification and less than a second for RCA diagnostics per exception and gives over 85% accuracy in human qualitative evaluation. By automating error classification and RCA, the proposed system promises faster fault resolution, improved RCA accuracy and enhanced developer productivity, contributing to more resilient and efficient microservices environments.

Authors

Publication Details

Journal
Journal of Information Systems Engineering & Management
Published
2025-02-10
DOI
https://doi.org/10.52783/jisem.v10i13s.2100
Primary Topic
Software System Performance and Reliability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LLM for Automated Root Cause Analysis in Microservices Architectures

Afrid Shaikh Amruta Mhatre
Journal of Information Systems Engineering & Management
Software System Performance and Reliability
article

LLM for Automated Root Cause Analysis in Microservices Architectures

Afrid Shaikh Amruta Mhatre
article en

Abstract

The adoption of microservices architectures has introduced significant challenges in diagnosing and resolving system issues efficiently, as multiple services handling millions of requests generate vast volumes of exceptions, including business errors and critical runtime failures. Traditional manual approaches for error analysis and Root Cause Analysis (RCA) are time-consuming, error-prone and lack scalability. Existing tools often aggregate exceptions but fail to effectively classify or diagnose root causes, leading to prolonged system downtimes and reduced developer productivity. This research proposes an automated solution leveraging fine-tuned Large Language Models (LLMs), combined with an Exception Classifier powered by Natural Language Processing (NLP) and machine learning techniques. The system adopts a layered architecture where exceptions are aggregated through a Kafka cluster. The Exception Classifier preprocesses error messages, extracts contextual information and categorizes exceptions into business and runtime errors. Classified runtime errors are forwarded to the RCA service, where fine-tuned LLMs perform detailed diagnostics by analyzing exception stack trace and tokenized code repository. The solution targets over 90% precision for business exceptions and 89.6% recall for runtime exceptions in Exception Classification and less than a second for RCA diagnostics per exception and gives over 85% accuracy in human qualitative evaluation. By automating error classification and RCA, the proposed system promises faster fault resolution, improved RCA accuracy and enhanced developer productivity, contributing to more resilient and efficient microservices environments.

Journal of Information Systems Engineering & ManagementVol. 10(13s)
Openalex Percentile: Top 97%
Software System Performance and Reliability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.