|
Sergei Babovich
2011-07-22, 21:56
Patrick Hunt
2011-07-22, 22:28
Yang
2011-07-22, 22:32
Sergei Babovich
2011-07-22, 22:56
Patrick Hunt
2011-07-23, 00:19
Sergei Babovich
2011-07-23, 02:45
Vishal Kher
2011-07-25, 17:55
|
-
Connecting to ZK from windows box takes significantly longer than from linuxSergei Babovich 2011-07-22, 21:56
Hi everybody,
I noticed quite strange thing: when connecting to the same ZK server from a windows box it takes 4-5 seconds before receiving SyncConnected event, while from linux machine it is under 10ms. All on the same network. The behaviour is quite consistent across different windows boxes. As expected on a server side interactions look identical - there is no delay in sending replies. At this moment my only theory is some kind of delay by windows on sending/receiving message. Anybody observed anything similar? Any clues ideas will be very appreciated. Best regards, Sergei This e-mail message and all attachments transmitted with it may contain privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message, all attachments and all copies and backups thereof.
-
Re: Connecting to ZK from windows box takes significantly longer than from linuxPatrick Hunt 2011-07-22, 22:28
Are you using the java or the c client binding? What version? I'd
encourage you to enter a jira (and submit a patch if you figure it out). Regards, Patrick On Fri, Jul 22, 2011 at 2:56 PM, Sergei Babovich <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I noticed quite strange thing: when connecting to the same ZK server from a > windows box it takes 4-5 seconds before receiving SyncConnected event, while > from linux machine it is under 10ms. All on the same network. The behaviour > is quite consistent across different windows boxes. As expected on a server > side interactions look identical - there is no delay in sending replies. At > this moment my only theory is some kind of delay by windows on > sending/receiving message. Anybody observed anything similar? Any clues > ideas will be very appreciated. > > Best regards, > Sergei > This e-mail message and all attachments transmitted with it may contain > privileged and/or confidential information intended solely for the use of > the addressee(s). If the reader of this message is not the intended > recipient, you are hereby notified that any reading, dissemination, > distribution, copying, forwarding or other use of this message or its > attachments is strictly prohibited. If you have received this message in > error, please notify the sender immediately and delete this message, all > attachments and all copies and backups thereof. > >
-
Re: Connecting to ZK from windows box takes significantly longer than from linuxYang 2011-07-22, 22:32
TCP dump also helps
On Fri, Jul 22, 2011 at 3:28 PM, Patrick Hunt <[EMAIL PROTECTED]> wrote: > Are you using the java or the c client binding? What version? I'd > encourage you to enter a jira (and submit a patch if you figure it > out). > > Regards, > > Patrick > > On Fri, Jul 22, 2011 at 2:56 PM, Sergei Babovich > <[EMAIL PROTECTED]> wrote: >> Hi everybody, >> >> I noticed quite strange thing: when connecting to the same ZK server from a >> windows box it takes 4-5 seconds before receiving SyncConnected event, while >> from linux machine it is under 10ms. All on the same network. The behaviour >> is quite consistent across different windows boxes. As expected on a server >> side interactions look identical - there is no delay in sending replies. At >> this moment my only theory is some kind of delay by windows on >> sending/receiving message. Anybody observed anything similar? Any clues >> ideas will be very appreciated. >> >> Best regards, >> Sergei >> This e-mail message and all attachments transmitted with it may contain >> privileged and/or confidential information intended solely for the use of >> the addressee(s). If the reader of this message is not the intended >> recipient, you are hereby notified that any reading, dissemination, >> distribution, copying, forwarding or other use of this message or its >> attachments is strictly prohibited. If you have received this message in >> error, please notify the sender immediately and delete this message, all >> attachments and all copies and backups thereof. >> >> >
-
Re: Connecting to ZK from windows box takes significantly longer than from linuxSergei Babovich 2011-07-22, 22:56
zk-3.3.1. Java client. Java 64b 1.6.0_24.
I will open jira report... But just curious if everything works fine for other windows 7 users and we are special. On 07/22/2011 06:28 PM, Patrick Hunt wrote: > Are you using the java or the c client binding? What version? I'd > encourage you to enter a jira (and submit a patch if you figure it > out). > > Regards, > > Patrick > > On Fri, Jul 22, 2011 at 2:56 PM, Sergei Babovich > <[EMAIL PROTECTED]> wrote: > >> Hi everybody, >> >> I noticed quite strange thing: when connecting to the same ZK server from a >> windows box it takes 4-5 seconds before receiving SyncConnected event, while >> from linux machine it is under 10ms. All on the same network. The behaviour >> is quite consistent across different windows boxes. As expected on a server >> side interactions look identical - there is no delay in sending replies. At >> this moment my only theory is some kind of delay by windows on >> sending/receiving message. Anybody observed anything similar? Any clues >> ideas will be very appreciated. >> >> Best regards, >> Sergei >> This e-mail message and all attachments transmitted with it may contain >> privileged and/or confidential information intended solely for the use of >> the addressee(s). If the reader of this message is not the intended >> recipient, you are hereby notified that any reading, dissemination, >> distribution, copying, forwarding or other use of this message or its >> attachments is strictly prohibited. If you have received this message in >> error, please notify the sender immediately and delete this message, all >> attachments and all copies and backups thereof. >> >> >> This e-mail message and all attachments transmitted with it may contain privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message, all attachments and all copies and backups thereof.
-
Re: Connecting to ZK from windows box takes significantly longer than from linuxPatrick Hunt 2011-07-23, 00:19
"officially" windows is not supported, historically there just haven't
been enough windows users to support the platform: http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_supportedPlatforms That said, Java should work essentially the same. Would be interesting if you ran your client in the debugger and tried to figure out where the time is going.... (or as Yang suggested look at the communication itself...) Patrick On Fri, Jul 22, 2011 at 3:56 PM, Sergei Babovich <[EMAIL PROTECTED]> wrote: > zk-3.3.1. Java client. Java 64b 1.6.0_24. > I will open jira report... > But just curious if everything works fine for other windows 7 users and we > are special. > > On 07/22/2011 06:28 PM, Patrick Hunt wrote: >> >> Are you using the java or the c client binding? What version? I'd >> encourage you to enter a jira (and submit a patch if you figure it >> out). >> >> Regards, >> >> Patrick >> >> On Fri, Jul 22, 2011 at 2:56 PM, Sergei Babovich >> <[EMAIL PROTECTED]> wrote: >> >>> >>> Hi everybody, >>> >>> I noticed quite strange thing: when connecting to the same ZK server from >>> a >>> windows box it takes 4-5 seconds before receiving SyncConnected event, >>> while >>> from linux machine it is under 10ms. All on the same network. The >>> behaviour >>> is quite consistent across different windows boxes. As expected on a >>> server >>> side interactions look identical - there is no delay in sending replies. >>> At >>> this moment my only theory is some kind of delay by windows on >>> sending/receiving message. Anybody observed anything similar? Any clues >>> ideas will be very appreciated. >>> >>> Best regards, >>> Sergei >>> This e-mail message and all attachments transmitted with it may contain >>> privileged and/or confidential information intended solely for the use of >>> the addressee(s). If the reader of this message is not the intended >>> recipient, you are hereby notified that any reading, dissemination, >>> distribution, copying, forwarding or other use of this message or its >>> attachments is strictly prohibited. If you have received this message in >>> error, please notify the sender immediately and delete this message, all >>> attachments and all copies and backups thereof. >>> >>> >>> > > This e-mail message and all attachments transmitted with it may contain > privileged and/or confidential information intended solely for the use of > the addressee(s). If the reader of this message is not the intended > recipient, you are hereby notified that any reading, dissemination, > distribution, copying, forwarding or other use of this message or its > attachments is strictly prohibited. If you have received this message in > error, please notify the sender immediately and delete this message, all > attachments and all copies and backups thereof. > >
-
Re: Connecting to ZK from windows box takes significantly longer than from linuxSergei Babovich 2011-07-23, 02:45
Thanks for your response. This is what I suspected. Will see what I'll be able to dig. The problem is I also use linux, and delay happens on machines of others. The wireshark showed no difference in network messaging so I suspect that something is delayed in windows communication stack. But will see..
Patrick Hunt <[EMAIL PROTECTED]> wrote: "officially" windows is not supported, historically there just haven't been enough windows users to support the platform: http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_supportedPlatforms That said, Java should work essentially the same. Would be interesting if you ran your client in the debugger and tried to figure out where the time is going.... (or as Yang suggested look at the communication itself...) Patrick On Fri, Jul 22, 2011 at 3:56 PM, Sergei Babovich <[EMAIL PROTECTED]> wrote: > zk-3.3.1. Java client. Java 64b 1.6.0_24. > I will open jira report... > But just curious if everything works fine for other windows 7 users and we > are special. > > On 07/22/2011 06:28 PM, Patrick Hunt wrote: >> >> Are you using the java or the c client binding? What version? I'd >> encourage you to enter a jira (and submit a patch if you figure it >> out). >> >> Regards, >> >> Patrick >> >> On Fri, Jul 22, 2011 at 2:56 PM, Sergei Babovich >> <[EMAIL PROTECTED]> wrote: >> >>> >>> Hi everybody, >>> >>> I noticed quite strange thing: when connecting to the same ZK server from >>> a >>> windows box it takes 4-5 seconds before receiving SyncConnected event, >>> while >>> from linux machine it is under 10ms. All on the same network. The >>> behaviour >>> is quite consistent across different windows boxes. As expected on a >>> server >>> side interactions look identical - there is no delay in sending replies.. >>> At >>> this moment my only theory is some kind of delay by windows on >>> sending/receiving message. Anybody observed anything similar? Any clues >>> ideas will be very appreciated. >>> >>> Best regards, >>> Sergei >>> This e-mail message and all attachments transmitted with it may contain >>> privileged and/or confidential information intended solely for the use of >>> the addressee(s). If the reader of this message is not the intended >>> recipient, you are hereby notified that any reading, dissemination, >>> distribution, copying, forwarding or other use of this message or its >>> attachments is strictly prohibited. If you have received this message in >>> error, please notify the sender immediately and delete this message, all >>> attachments and all copies and backups thereof. >>> >>> >>> > > This e-mail message and all attachments transmitted with it may contain > privileged and/or confidential information intended solely for the use of > the addressee(s). If the reader of this message is not the intended > recipient, you are hereby notified that any reading, dissemination, > distribution, copying, forwarding or other use of this message or its > attachments is strictly prohibited. If you have received this message in > error, please notify the sender immediately and delete this message, all > attachments and all copies and backups thereof. > > This e-mail message and all attachments transmitted with it may contain privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message, all attachments and all copies and backups thereof.
-
Re: Connecting to ZK from windows box takes significantly longer than from linuxVishal Kher 2011-07-25, 17:55
FYI - we run ZooKeeper server and one instance of ZK client on Windows
server 2003/ 2008. In general we have seen no issues running ZooKeeper on Windows (I haven't measured the client connection time). On Fri, Jul 22, 2011 at 10:45 PM, Sergei Babovich <[EMAIL PROTECTED]>wrote: > Thanks for your response. This is what I suspected. Will see what I'll be > able to dig. The problem is I also use linux, and delay happens on machines > of others. The wireshark showed no difference in network messaging so I > suspect that something is delayed in windows communication stack. But will > see.. > > Patrick Hunt <[EMAIL PROTECTED]> wrote: > > > "officially" windows is not supported, historically there just haven't > been enough windows users to support the platform: > > http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_supportedPlatforms > > That said, Java should work essentially the same. Would be interesting > if you ran your client in the debugger and tried to figure out where > the time is going.... (or as Yang suggested look at the communication > itself...) > > Patrick > > On Fri, Jul 22, 2011 at 3:56 PM, Sergei Babovich > <[EMAIL PROTECTED]> wrote: > > zk-3.3.1. Java client. Java 64b 1.6.0_24. > > I will open jira report... > > But just curious if everything works fine for other windows 7 users and > we > > are special. > > > > On 07/22/2011 06:28 PM, Patrick Hunt wrote: > >> > >> Are you using the java or the c client binding? What version? I'd > >> encourage you to enter a jira (and submit a patch if you figure it > >> out). > >> > >> Regards, > >> > >> Patrick > >> > >> On Fri, Jul 22, 2011 at 2:56 PM, Sergei Babovich > >> <[EMAIL PROTECTED]> wrote: > >> > >>> > >>> Hi everybody, > >>> > >>> I noticed quite strange thing: when connecting to the same ZK server > from > >>> a > >>> windows box it takes 4-5 seconds before receiving SyncConnected event, > >>> while > >>> from linux machine it is under 10ms. All on the same network. The > >>> behaviour > >>> is quite consistent across different windows boxes. As expected on a > >>> server > >>> side interactions look identical - there is no delay in sending > replies.. > >>> At > >>> this moment my only theory is some kind of delay by windows on > >>> sending/receiving message. Anybody observed anything similar? Any clues > >>> ideas will be very appreciated. > >>> > >>> Best regards, > >>> Sergei > >>> This e-mail message and all attachments transmitted with it may contain > >>> privileged and/or confidential information intended solely for the use > of > >>> the addressee(s). If the reader of this message is not the intended > >>> recipient, you are hereby notified that any reading, dissemination, > >>> distribution, copying, forwarding or other use of this message or its > >>> attachments is strictly prohibited. If you have received this message > in > >>> error, please notify the sender immediately and delete this message, > all > >>> attachments and all copies and backups thereof. > >>> > >>> > >>> > > > > This e-mail message and all attachments transmitted with it may contain > > privileged and/or confidential information intended solely for the use of > > the addressee(s). If the reader of this message is not the intended > > recipient, you are hereby notified that any reading, dissemination, > > distribution, copying, forwarding or other use of this message or its > > attachments is strictly prohibited. If you have received this message in > > error, please notify the sender immediately and delete this message, all > > attachments and all copies and backups thereof. > > > > > This e-mail message and all attachments transmitted with it may contain > privileged and/or confidential information intended solely for the use of > the addressee(s). If the reader of this message is not the intended > recipient, you are hereby notified that any reading, dissemination, > distribution, copying, forwarding or other use of this message or its > attachments is strictly prohibited. If you have received this message in |