Archived
This forum has been archived. Please start a new discussion on GitHub.
cannot create more threads.
Hi
In the program, I want to run 200 threads concurrently, but in the client side, after create about 50 threads, it cannot create more, and print out the following messages:
I don't have any file operations in the program.
I'm using CentOS 4.8
Ice 3.3.1
Before running the Client, I set
In the program, I want to run 200 threads concurrently, but in the client side, after create about 50 threads, it cannot create more, and print out the following messages:
08/19/10 07:07:41.202 ./ThreadClient: error: fatal error: can't accept more connections: Network.cpp:1273: Ice::SocketException: socket exception: Too many open files 0.0.0.0:33079 Aborted
I don't have any file operations in the program.
I'm using CentOS 4.8
Ice 3.3.1
Before running the Client, I set
ulimit -s 4096Now I really don't know how to handle this problem, thanks for giving any help:)
0
Comments
-
Did you open too many files or net connection ? Check your code carefully, it seems some opend file or connection does't be closed.0
-
Hi Rains,
I don't really understand what you're doing. And you should upgrade to Ice 3.4!Hi
In the program, I want to run 200 threads concurrently, but in the client side, after create about 50 threads, it cannot create more, and print out the following messages:08/19/10 07:07:41.202 ./ThreadClient: error: fatal error: can't accept more connections: Network.cpp:1273: Ice::SocketException: socket exception: Too many open files 0.0.0.0:33079 Aborted
Is your ThreadClient really a server that creates lots of object adapters (one per thread??) Doesn't sound right.Before running the Client, I setulimit -s 4096
ulimit -s sets the stack size. How is this relevant here? ulimit -n and ulimit -u would be more interesting here.
Best regards,
Bernard0