Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-22-2007
Greenhippo Greenhippo is offline
Registered User
 
Name: Alex
Organization: University of Auckland
Project: Intelligent Middleware
 
Join Date: Nov 2006
Posts: 32
connection setup time

Hi,

I am currently trying to get some performance testing values for a system built on ice. I am trying to get the time it takes to transfer a large object through ice as a parameter, the first time the method is called there is a long delay (as it sets up the connection) and subsequent calls are considerably shorter.

The problem is i want all these calls to include connection setup so they should give a similar timing value. I have made sure to connectionCached(false) and locatorCacheTimeout(0) but the first call is still taking up to 10seconds while subsequent calls are about 1sec. Can you offer any insight into what could be causing these dramatic differences, and is there anyway to turn it off?

Thanks for any help you can offer
__________________
Alex Davies
The University of Auckland
Reply With Quote
  #2 (permalink)  
Old 07-23-2007
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
The first call will take a little longer, yes, but not 10 seconds. (More likely a second or, on a LAN, a fraction of a second.)

The most common cause for long connection delays are misconfigured DSN servers or endpoints in proxies that point at firewalled addresses. Do you have more than one endpoint in your proxy? If so, it's possible that the run time first tries one dysfunctional endpoint and then uses the other endpoint to connect once the first attempt has timed out.

The easiest way to figure out what is going wrong is to run your client and server with --Ice.Trace.Network=2 and see what sort of trace you get. That will likely help isolate the problem.

Cheers,

Michi.

Last edited by michi : 07-23-2007 at 07:27 PM.
Reply With Quote
  #3 (permalink)  
Old 07-23-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Note that disabling connection caching doesn't disable connection reuse. What connection caching does is that if there are multiple endpoints, and connections to some of these endpoints do already exist, such endpoints with existing connections are preferred. For more info on connection caching, please have a look at the article "Connection Management in Ice" in issue 24 of Connections.

If you want a newly established connection for every call (why?), then close the connection after every call by using proxy->ice_getConnection()->close(false).

Last edited by marc : 07-23-2007 at 09:19 AM.
Reply With Quote
  #4 (permalink)  
Old 07-23-2007
Greenhippo Greenhippo is offline
Registered User
 
Name: Alex
Organization: University of Auckland
Project: Intelligent Middleware
 
Join Date: Nov 2006
Posts: 32
Thanks for your replies

It would appear that ice is trying a dysfunctional endpoint first, is there anyway to force it to always bypass that endpoint?
__________________
Alex Davies
The University of Auckland
Reply With Quote
  #5 (permalink)  
Old 07-23-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Quote:
Originally Posted by Greenhippo View Post
Thanks for your replies

It would appear that ice is trying a dysfunctional endpoint first, is there anyway to force it to always bypass that endpoint?
Ice cannot know whether an endpoint is dysfunctional before it has tried to connect to such endpoint. If an endpoint is dysfunctional, the server shouldn't publish it.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceSSL setup ca with python tools tkrieger Help Center 1 10-24-2006 05:32 AM
How to control ICE socket connection time out parameter? chaosun Help Center 1 08-30-2005 08:31 AM
How to setup server cluster fitzharrys Help Center 2 06-27-2005 09:37 AM
Eclipse Setup for Ice Bytenik Help Center 6 06-23-2005 02:35 AM
How to setup IceStorm to push via UDP. JohnB Help Center 3 02-11-2005 08:51 PM


All times are GMT -4. The time now is 12:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.