You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Yaohui Wu (JIRA)" <ji...@apache.org> on 2017/01/11 08:52:58 UTC
[jira] [Comment Edited] (ZOOKEEPER-2661) It costs about 5055 ms to
create Zookeeper object for the first time.
[ 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)