[omniORB] What is the effect of changing the max message size on general memory consumption

Duncan Grisby duncan at grisby.org
Wed Nov 20 17:55:17 GMT 2013

On Wed, 2013-11-20 at 09:56 +0100, Sylvain Joyeux wrote:

> How would changing the max message size affect general memory
> consumption ? Is there some preallocation happening, or will it have an
> effect only on the ORBs that actually send/receive big messages ?

There's no pre-allocation linked to the maximum message size. As long as
there aren't actually any big messages, there's no harm to having a
really huge limit. Even with big messages, omniORB tries to minimise
buffering, so you don't generally use lots of memory within omniORB
itself, just within whatever application-level data structures there

The limit is there to protect from buggy or malicious senders that send
data claiming to be enormous. It's easy to send a GIOP message that
claims to be 2GB in size, or that contains a sequence with billions of
entries, for example. A naïve receiver of such a message could allocate
a buffer to hold the contents, even if there actually isn't that much
data available.



 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --

More information about the omniORB-list mailing list