Discussion:
[omniORB] [omniORB 4.1.0] -ORBoneCallPerConnection 0 does not work?
Michael Kilburn
2009-02-06 07:52:34 UTC
Permalink
Hi,

I have a CORBA server that talks to NamingService (in a function that is
invoked by client). I have noticed that for each simultaneously executed
client my server opens TCP connection to name_server. It turned to be a
headache, because (as it was discovered after few days of investigations)
our very old nameserv (ORBacus) locks up when number of connections reaches
512 (some synchronization issue, I guess). I.e. short burst of activity on
my server was killing nameserv.

I have tried to use -ORBoneCallPerConnection 0 option to ensure that server
multiplexes requests to nameserv on the same connection. But tests showed
that it does not work -- each new call to my server that reslts in request
to namingservice is creating new TCP connection. I have also compiled
omniNames -- result is the same.

What I am doing wrong? Should I set any other option(s)?
--
Sincerely yours,
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20090205/7a32222d/attachment.htm
Duncan Grisby
2009-02-10 23:36:00 UTC
Permalink
Post by Michael Kilburn
I have a CORBA server that talks to NamingService (in a function that is
invoked by client). I have noticed that for each simultaneously executed
client my server opens TCP connection to name_server. It turned to be a
headache, because (as it was discovered after few days of investigations) our
very old nameserv (ORBacus) locks up when number of connections reaches 512
(some synchronization issue, I guess). I.e. short burst of activity on my
server was killing nameserv.
I have tried to use -ORBoneCallPerConnection 0 option to ensure that server
multiplexes requests to nameserv on the same connection. But tests showed that
it does not work -- each new call to my server that reslts in request to
namingservice is creating new TCP connection. I have also compiled omniNames
-- result is the same.
What I am doing wrong? Should I set any other option(s)?
You need to also set -ORBmaxGIOPConnectionPerServer to 1, otherwise
omniORB will prefer to open multiple connections to a server rather than
multiplexing calls.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Michael Kilburn
2009-02-12 07:15:56 UTC
Permalink
Duncan,
Post by Michael Kilburn
I have tried to use -ORBoneCallPerConnection 0 option to ensure that server
Post by Michael Kilburn
multiplexes requests to nameserv on the same connection. But tests showed
that
Post by Michael Kilburn
it does not work -- each new call to my server that reslts in request to
namingservice is creating new TCP connection.
You need to also set -ORBmaxGIOPConnectionPerServer to 1, otherwise
omniORB will prefer to open multiple connections to a server rather than
multiplexing calls.
Thanks! It would be nice though if documentation had a bit of emphasize on
this -- it is not exactly clear that I also need to set
ORBmaxGIOPConnectionPerServer to 1.

Btw, those problem we had with ORBacus nameserv were due to some Java
applications that on regular basis were creating new ORB instance, connect
to nameserver, but never shutdown/destroy that instance. :-)
--
Sincerely yours,
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20090211/b2fea8bb/attachment.htm
Loading...