Java and default libthr thread limits

Michael Vince mv at thebeastie.org
Tue Apr 17 05:03:27 UTC 2007


Hi All,

I been running Tomcat under FreeBSD 6.2 with libthr and I have noticed 
how easily we can hit 1,100 threads according to top right now, and we 
have hit past the default 1500 thread limit in the past.
For me I am finding that this is just going higher to continue as the 
service is just getting busier.

Currently I have just been increasing this manually via the sysctl.
kern.threads.max_threads_per_proc: 40000
kern.threads.max_groups_per_proc: 40000

I was wondering if this limit should officially be increased to 
something like 5000 as my basic point of view is that if am easily 
hitting this limit then probably other people are as well.

Any thoughts?

Cheers,
Mike



More information about the freebsd-threads mailing list