Skip to content

feat: real-time GC rate & leak monitoring in server (#114)#122

Closed
rlaope wants to merge 1 commit intomasterfrom
feat/realtime-gc-monitoring
Closed

feat: real-time GC rate & leak monitoring in server (#114)#122
rlaope wants to merge 1 commit intomasterfrom
feat/realtime-gc-monitoring

Conversation

@rlaope
Copy link
Copy Markdown
Owner

@rlaope rlaope commented Apr 12, 2026

Summary

  • Add live allocation rate, promotion rate, and memory leak detection to server-side GCAnalyzer
  • Enables TUI dashboard and web frontend to show real-time GC health metrics

Changes

  • GcMetricsComputer — computes allocation/promotion rates from consecutive GC summaries, simplified linear regression for leak detection
  • GCAnalyzer — integrates periodic rate/leak computation, exposes via GCAnalysisResult
  • ArgusChannelHandler — includes new metrics in REST API JSON response
  • GcMetricsComputerTest — unit tests for rate calculation and leak detection

New API Fields

{
  "allocationRateKBPerSec": 524288.0,
  "promotionRateKBPerSec": 8192.0,
  "leakSuspected": false,
  "leakConfidencePercent": 12.3
}

Test plan

  • GcMetricsComputerTest passes
  • ./gradlew :argus-server:compileJava passes
  • Integration test with live JVM + dashboard

Closes #114

Add live allocation rate, promotion rate, and memory leak
detection to the server-side GCAnalyzer:

- GcMetricsComputer: computes allocation/promotion rates and
  leak detection from recent GC summaries using simplified
  linear regression
- GCAnalyzer: integrates periodic rate/leak computation,
  exposes via GCAnalysisResult
- REST API: new fields in GC analysis JSON response

Signed-off-by: rlaope <piyrw9754@gmail.com>
@rlaope
Copy link
Copy Markdown
Owner Author

rlaope commented Apr 12, 2026

Merged to master in 47b75d3

@rlaope rlaope closed this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: real-time GC rate & leak monitoring in TUI dashboard

1 participant