[omniORB] Memory usage per activated object?

mik@geosys.ru mik@geosys.ru
Thu, 31 May 2001 16:50:20 +0400


Hello!

How much memory does an ORB require per each created and activated CORBA object implementation?

Here is a portion of code of a modified eg2_impl example:

...
for (int i = 0; i < 23000; ++i) {
    Echo_i* myecho = new Echo_i();
    (void)poa->activate_object(myecho);
}
...

When compiled and run with VisiBroker, it eats up to 90MB of memory (about 4kB/object)! With omniORB it satisfies itself with just 8MB (less than 400 Bytes/object)!!!

Is this VisiBroker/omniORB memory usage ratio correct? Or is it something wrong with my VisiBroker or omniORB ;-) setup?

Best regards,
		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./>