Skip to content

Update process memory metrics to report OS resident memory#17482

Merged
jt2594838 merged 2 commits intomasterfrom
codex/topprocessmetrics
Apr 15, 2026
Merged

Update process memory metrics to report OS resident memory#17482
jt2594838 merged 2 commits intomasterfrom
codex/topprocessmetrics

Conversation

@HTHou
Copy link
Copy Markdown
Contributor

@HTHou HTHou commented Apr 15, 2026

Summary

  • change ProcessMetrics#getProcessUsedMemory to report process resident memory instead of JVM heap usage
  • add platform-specific collection for Linux (/proc/<pid>/status), macOS (ps -o rss), and Windows (GetProcessMemoryInfo via JNA)
  • keep the existing heap-based value as a fallback when resident memory cannot be collected

Testing

  • Not run (not requested)

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

❌ Patch coverage is 0% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.84%. Comparing base (da250b8) to head (fe029a3).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...pache/iotdb/db/service/metrics/ProcessMetrics.java 0.00% 42 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #17482      +/-   ##
============================================
- Coverage     39.85%   39.84%   -0.02%     
  Complexity      312      312              
============================================
  Files          5135     5135              
  Lines        346929   346970      +41     
  Branches      44210    44218       +8     
============================================
- Hits         138259   138233      -26     
- Misses       208670   208737      +67     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jt2594838 jt2594838 merged commit a6006f3 into master Apr 15, 2026
28 of 30 checks passed
@jt2594838 jt2594838 deleted the codex/topprocessmetrics branch April 15, 2026 07:03
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.

2 participants