Hi all,
I have some problems when trying to transfer large amount of data between a client and server application. It is too slow. For example when I'm trying to transfer an object that contains a vector of doubles with 25000 elements the transfer time is 21 seconds. I think there is a problem with the configuration but I'm not sure. Maybe someone can help me.
// The client code
Ice::CommunicatorPtr ic;
Ice::InitializationData idICE;
idICE.properties = Ice::createProperties();
idICE.properties->setProperty("Ice.MessageSizeMax", "5000");
ic = Ice::initialize(argc, argv, idICE);
// obtain a proxy for the remote object
Ice::ObjectPrx base = ic->stringToProxy("Data:tcp -p 10000");
entryPoint = EntryPointDataEventRecieverValPrx::checkedCast(bas e);
// The server code
Ice::CommunicatorPtr ic;
Ice::InitializationData id;
id.properties = Ice::createProperties();
id.properties->setProperty("Ice.MessageSizeMax", "5000");
ic = Ice::initialize(argc, argv, id);
Ice::ObjectAdapterPtr adapter = ic->createObjectAdapterWithEndpoints("DataAdapter", "tcp -p 10000");
Ice::ObjectPtr object = new DataEventI;
adapter->add(object, ic->stringToIdentity("Data"));
adapter->activate();
ic->waitForShutdown();
Best regards,
Marius

Reply With Quote