Discussion:
[omniORB] unusually slow network initialisation
Knut Lorenzen
2010-11-25 16:02:10 UTC
Permalink
Hello,

we are experiencing problems initialising our corba client. On startup, it
contacts the omninames service over network. This takes up to 8 (!)
seconds.
This is what the code roughly looks like this:

orb = ORB_init( ... );
Object_var obj = orb->resolve_initial_references("RootPOA");
POA_ptr poa = POA::_narrow( obj );
POA_Manager_ptr man = poa->the_POA_Manager();
man->activate();
Object_ptr ns = orb->resolve_initial_references("NamingService");
NamingContext_ptr cont = NamingContext::_narrow( ns ); // <- blocking call
orb->run();

It is especially slow in combination with .net as a dynamic link library.
We are on a local 1GBit Ethernet network with latencys << 1ms.
Omni-Orb 4.14 with Windows XP SP3

best regards,

Knut Lorenzen
Duncan Grisby
2010-11-26 05:15:01 UTC
Permalink
Post by Knut Lorenzen
we are experiencing problems initialising our corba client. On startup, it
contacts the omninames service over network. This takes up to 8 (!)
seconds.
Run with these options:

-ORBtraceLevel 25 -ORBtraceInvocations 1 -ORBtraceTime 1
-ORBtraceThreadId 1

and post the resulting trace. That should show what's going on.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...