[omniORB] Memory usage per activated object?

mik@geosys.ru mik@geosys.ru
Thu, 31 May 2001 17:29:32 +0400


31.05.01 17:07:11, "Sai-Lai Lo" <s.lo@uk.research.att.com> wrote:

>I think the per servant numbershould be less than this.

Really, it is. I just gave a row estimate.

>However, you have not created any object references out of these servants.
>Each object reference will take some space, the bulk of it is the IOR, 
>this will take up a couple of hundreds.

If this is the right way to do what you suggest:

...
for (int i = 0; i < 23000; ++i) {
     Echo_i* myecho = new Echo_i();
     (void)poa->activate_object(myecho);
      CORBA::Object_ptr obj = myecho->_this();
      CORBA::String_var sior(orb->object_to_string(obj));
      cerr << "'" << (char*)sior << "'" << endl;
}
...

then it now uses 12MB or little more than 500 Bytes/object (row estimate again) -- still MUCH less than VisiBroker does.

Thank you for your prompt answer,
				Mikhail

Dr. Mikhail Soukhanov <mailto:mik@geosys.ru.>

Laboratory of Geoinformatics, VNIIgeosistem
Warszawskoje chaussee 8, Moscow M-105, 113105 Russia
Tel.: +7(095) 954-21-50 (x101), fax.: +7(095) 958-35-22
W.W.W.: <http://www.geosys.ru./>