Java threads on machines with hundreds of cores
889659Sep 21 2011 — edited Sep 24 2011I don't know if this is the right forum, but I try anyway.
My problem is with java on machines with many cores.
I have some large shared memory machines with 500 cores.
When a user run java programs on these machines java starts 300+ threads which to me seems way too much for the application as the same application runs faster on systems with less cores and memory and without creating 300+ threads.
I have found information about how to limit memory usage, but I have not been able to find any information about how to limit the number of threads java creates nor what criteria java uses to determine how many threads should be created.
In this context threads are the tasks reported under /proc/<PID of java binary>/task on a Linux system.
Thanks
John