zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Maslyakov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2422) Improve health reporting by adding heap stats
Date Mon, 02 May 2016 19:19:13 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15267315#comment-15267315
] 

Sergey Maslyakov commented on ZOOKEEPER-2422:
---------------------------------------------

Please review the changes. Existing test cases have been updated to account for the new fields.

Sample output with the changes applied (*3.4 branch*):
{noformat}
$ echo mntr | nc localhost 2181
zk_version	3.4.9-SNAPSHOT-1741982, built on 05/02/2016 17:07 GMT
zk_avg_latency	0
zk_max_latency	0
zk_min_latency	0
zk_packets_received	1
zk_packets_sent	0
zk_num_alive_connections	1
zk_outstanding_requests	0
zk_server_state	standalone
zk_znode_count	4
zk_watch_count	0
zk_ephemerals_count	0
zk_approximate_data_size	27
zk_max_memory	468189184
zk_total_memory	32505856
zk_free_memory	29894696
zk_jvm_instance_id	28517@evol-vbox
zk_jvm_start_time	1462216238928
zk_open_file_descriptor_count 25
zk_max_file_descriptor_count  1048576
{noformat}

Sample output with the changes applied (*3.5 branch*):
{noformat}
$ echo mntr | nc localhost 2181
zk_version	3.5.2-alpha-SNAPSHOT-1741982, built on 05/02/2016 17:32 GMT
zk_avg_latency	0
zk_max_latency	0
zk_min_latency	0
zk_packets_received	1
zk_packets_sent	0
zk_num_alive_connections	1
zk_outstanding_requests	0
zk_server_state	standalone
zk_znode_count	5
zk_watch_count	0
zk_ephemerals_count	0
zk_approximate_data_size	44
zk_max_memory	932184064
zk_total_memory	32505856
zk_free_memory	25264352
zk_jvm_instance_id	28575@evol-vbox
zk_jvm_start_time	1462216541236
zk_open_file_descriptor_count	39
zk_max_file_descriptor_count	1048576
{noformat}

Sample output with the changes applied (*trunk*):
{noformat}
$ echo mntr | nc localhost 2181
zk_version	3.6.0-SNAPSHOT-1741987, built on 05/02/2016 18:17 GMT
zk_avg_latency	0
zk_max_latency	0
zk_min_latency	0
zk_packets_received	1
zk_packets_sent	0
zk_num_alive_connections	1
zk_outstanding_requests	0
zk_server_state	standalone
zk_znode_count	5
zk_watch_count	0
zk_ephemerals_count	0
zk_approximate_data_size	44
zk_max_memory	932184064
zk_total_memory	32505856
zk_free_memory	25298232
zk_jvm_instance_id	28639@evol-vbox
zk_jvm_start_time	1462216628188
zk_open_file_descriptor_count	39
zk_max_file_descriptor_count	1048576
{noformat}


> Improve health reporting by adding heap stats
> ---------------------------------------------
>
>                 Key: ZOOKEEPER-2422
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2422
>             Project: ZooKeeper
>          Issue Type: Improvement
>    Affects Versions: 3.4.8, 3.4.9, 3.5.1, 3.5.2, 3.6.0
>            Reporter: Sergey Maslyakov
>             Fix For: 3.4.8, 3.4.9, 3.5.1, 3.5.2, 3.6.0
>
>         Attachments: zookeeper-2422-3.4.patch, zookeeper-2422-3.5.patch, zookeeper-2422-3.6.patch
>
>
> In order to improve remote monitoring of the ZooKeeper instance using tools like Icinga/NRPE,
it is very desirable to expose JVM heap stats via a light-weight interface. The "mntr" 4lw
is a good candidate for this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message