JChannel startup optimization #725
Replies: 6 comments 2 replies
-
Thanks for reporting this! I'll fix it next week; the corresponding JIRA is https://issues.redhat.com/browse/JGRP-2700 |
Beta Was this translation helpful? Give feedback.
-
So am I correct to assume that iteration through all network interfaces (how many are we talking?) takes a long time? I wonder why this is the case, as there's no network resolution involved here... |
Beta Was this translation helpful? Give feedback.
-
With further testing i found out that if i disconnect my VPN the time is cut in half. Almost all the time (>95%) is spend in the Util.isUp method cmd> ipconfig -all It's like each real interface is exploded in many sub interfaces like these (for one NIC):
|
Beta Was this translation helpful? Give feedback.
-
Hmm, I'm starting to think that this is specific to your machine; I haven't heard complaints about slow startup times from anybody else. What happens if you explicitly set inet addresses, e.g. |
Beta Was this translation helpful? Give feedback.
-
First, thanks a lot for the time taken regarding this. |
Beta Was this translation helpful? Give feedback.
-
I fixed https://issues.redhat.com/browse/JGRP-2739 (JGRP-2700 is a duplicate) in the |
Beta Was this translation helpful? Give feedback.
-
Hi,
i experience long start up delay (>30sec) when creating a JChannel with default values.
It boil down that i have many network interfaces on my Windows machine and the Util.getAllAvailableAddresses get called at least twice for each protocol.
It will be nice if the function Configurator.setDefaultAddressValues(Object obj, StackType ip_version) could reuse the last default address found.
(at least until the next JChannel creation)
Thanks to your open classes (all protected field and methods) i was able to have a working prototype by sub-classing JChannel, ProtocolStack and Configurator. But it will be nice to have this performance boost built-in (or a way to customize it).
Beta Was this translation helpful? Give feedback.
All reactions