Skip to content

Conversation

@platinumhamburg
Copy link
Contributor

  • Use getLongProperty() instead of getProperty() to avoid native string allocation in JNI layer during high-frequency Prometheus metrics scraping
  • Add kv.rocksdb.statistics.enabled config option (default: false) to allow disabling RocksDB statistics collection for reduced overhead
  • Refactor getPropertyValue to getPropertyLongValue and eliminate code duplication between overloaded methods
  • Add configuration documentation for the new option

Purpose

Linked issue: close #2435 2435

Brief change log

Tests

API and Format

Documentation

@platinumhamburg platinumhamburg changed the title [KV] Fix RocksDB JNI memory leak and add statistics config option [KV] Add Configuration Option to Control RocksDB Statistics Collection Jan 22, 2026
- Use getLongProperty() instead of getProperty() to avoid native string
  allocation in JNI layer during high-frequency Prometheus metrics scraping
- Add kv.rocksdb.statistics.enabled config option (default: false) to
  allow disabling RocksDB statistics collection for reduced overhead
- Refactor getPropertyValue to getPropertyLongValue and eliminate code
  duplication between overloaded methods
- Add configuration documentation for the new option
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.

[KV] Add Configuration Option to Control RocksDB Statistics Collection

1 participant