saurabhkgp21 opened a new pull request, #63916:
URL: https://github.com/apache/doris/pull/63916

   ## Summary
   
   Expose JVM buffer pool statistics in FE metric endpoints to improve 
observability of off-heap memory usage.
   
   **Changes:**
   - Add buffer pool metrics (`jvm_buffer_pool_used_bytes`, 
`jvm_buffer_pool_capacity_bytes`, `jvm_buffer_pool_count`) to both Prometheus 
and JSON metric visitors, broken down by pool name (direct, mapped)
   - Add `jvm_buffer_pool_max_bytes` metric exposing the configured 
`MaxDirectMemorySize`
   - Improve `JvmInfo` to parse `-XX:MaxDirectMemorySize=` from JVM input 
arguments as a fallback when the standard API returns 0
   
   ## Motivation
   
   Buffer pool metrics are critical for diagnosing off-heap memory issues 
(e.g., direct buffer OOM). Currently, FE exposes heap and GC metrics but not 
buffer pool stats, making it difficult to monitor direct memory pressure via 
Prometheus/Grafana.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to