zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaohui Wu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ZOOKEEPER-2661) It costs about 5055 ms to create Zookeeper object for the first time.
Date Wed, 11 Jan 2017 09:07:58 GMT

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

Yaohui Wu edited comment on ZOOKEEPER-2661 at 1/11/17 9:07 AM:
---------------------------------------------------------------

I solve it by adding one line to /etc/hosts:
::1 YaohuideMacBook-Air.local
'YaohuideMacBook-Air.local' is my host name. Now the problem disappears. It only cost 86 ms
to create Zookeeper the first time.
16:47:43.106 109 INFO org.example.zk.curator.ZookeeperTest - cost 86 ms


see this article: http://blog.csdn.net/puma_dong/article/details/53096149


was (Author: yaohui):
I solve it by adding one line to /etc/hosts:
::1 YaohuideMacBook-Air.local
'YaohuideMacBook-Air.local' is my host name. Now the problem disappears. It only cost 86 ms
to create Zookeeper the first time.
16:47:43.106 109 INFO org.example.zk.curator.ZookeeperTest - cost 86 ms

> It costs about 5055 ms to create Zookeeper object for the first time.
> ---------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2661
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2661
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>    Affects Versions: 3.4.6
>         Environment: See the description below.
>            Reporter: Yaohui Wu
>         Attachments: ZookeeperTest.java, log_output.txt
>
>
> I create and close ZooKeeper for 10 times.  It costs about 5055 ms for the first time.
> See attached files for some test code and output.



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

Mime
View raw message