To test the ablility of evictor to support thousands of files, I change the demo code in ICE_HOME/demo/Freeze/phonebook/Server.cpp as following:
I set the DB_CONFIG file and copy it in ICE_HOME/demo/Freeze/phonebook/db...
...
Freeze::EvictorPtr evictor = Freeze::createEvictor(adapter,_envName, "contacts", 0, indices);
adapter->addServantLocator(evictor, "contact");
for(int i=0;i<1000;++i)
{
char buff[100];
sprintf(buff,"file%d",i);
Freeze::EvictorPtr temEvictor = Freeze::createEvictor(adapter, _envName, string(buff));
adapter->addServantLocator(temEvictor, string(buff));
}
...
...
When I run the demo with Ice-3.0.1-VC60, the demo can only drive 493 files and abort with "Lock table is out of available locks " message. What cause this problem?set_lk_max_lockers 40000
set_lk_max_locks 40000
set_lk_max_objects 40000
set_lg_regionmax 2400000
set_cachesize 0 104857600 1
Thanks

Reply With Quote