zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bram Van Dam <bram.van...@intix.eu>
Subject Four letter word command to get memory usage (patch included)
Date Thu, 14 Feb 2019 16:05:39 GMT
Hey folks,

I needed a way to keep track of individual ZK instances' memory usage
without using JMX, so I went and added a new four letter word: memo

Example usage:
# echo memo | nc 127.0.0.1 44011
Maximum memory: 514850816
Free memory: 479290568
Total memory: 514850816

This exposes the same data that ZOOKEEPER-716 logs, basically the
runtime's maximum/free/total memory.

Attached patch is against branch-3.4.13 as that's the version we're
currently using.

Any feedback is highly appreciated.
Should I go ahead and create a PR/Jira issue?

Thanks,

 - Bram
Mime
View raw message