Mailinglist Archive: opensuse (1786 mails)

< Previous Next >
Re: [opensuse] max number of threads limitation on suse
On Friday, November 11, 2011 10:48:37 AM Per Jessen wrote:
Mahan Mahdavi Amiri wrote:
Is there a limit on number of threads on suse ?
we ran java test program to determine the maximum number of thread and
it shows 32000.
Is there anyway to increase the maximum number of supported threads on
suse. Thanks.

The system-wide maximum is:

cat /proc/sys/kernel/threads-max

I have a system where it says '147456', another says '12287',
another '111796'. I don't know what this number is based, but you can
probably change it by:

echo 999999 >/proc/sys/kernel/threads-max

It could be based on available memory - and I think also on available PIDs in
the system.

But this is a generic Linux question, independend of openSUSE, so treat it as
a Linux question when googling,

Andreas Jaeger aj@{,} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups