Threads - Max Issue

Hi Gurus,

I wrote a simple program in c which creates threads but it stops after spawning 1533 threads. This is on kernel 2.4. I tried upgrading to 2.6 but still hit the same problem.

I tried keeping stack size of ulimit > 1k but still have the same problem.

How do application servers run if the thread count is so low?

Reading the linux forums suggest that we might have to recompile glibc but touching glibc might make the system prone to other errors as there are lots of applications which use it.

Is there an easier way?

Thanks.

 

 

 

 

Top