Re: Threading limits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ah... thanks! That indeed appears to be the main issue.
The difference between the two systems is a different default stack size!
Using 'uname -s 1024' allows both to get just over 3000 threads off.

Getting back to the Java, tweaking -Xss looks like it should help take care of things.

Just do some basic math:

10MB stack/thread * 304 threads =~ 3GB stack unlimited translates to 2MB (that's hardcoded) 2MB stack/thread * 1519 threads =~ 3GB stack


If you don't like limited stacks, use a 64bit platform. Otherwise use the function which is part of Unix for ages: pthread_attr_setstacksize.




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux