[omniORB]The omnithread problem and solution
Peter Klotz
peter.klotz at aon.at
Thu Nov 27 22:09:39 GMT 2008
Hello Alexey
> Hello All. My name is Alexey and i have a question. Recently i came across some omnithread problem. I am developing an application which uses CORBA of course and about 179 omnithreads. But when my application makes 166 threads omni throw an exception omni_thread_fatal. I think that reason of this problem is fulfilled of stack. I've modified program code of omnithread library and it works. First of all i want to show my solution and ask why omniORB developers didn't make something like that? Maybe there were some problems, which i don't know. I've tested it and it worked fine. But maybe there will be situations where it will be cause of problems. If so i will be glad to know that.
We use this on server startup:
#include <omnithread.h>
omni_thread::stacksize(2*1024*1024); // 2MB stack size
The default stack size of Linux is 10MB (see "ulimit -s") but 2MB work
just fine for us.
Regards, Peter.
More information about the omniORB-list
mailing list