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 08:52:58 GMT

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

Yaohui Wu edited comment on ZOOKEEPER-2661 at 1/11/17 8:52 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




was (Author: yaohui):
I solve it by adding one line to /etc/hosts:

::1     YaohuideMacBook-Air.local

the '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