Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java threads on machines with hundreds of cores

889659Sep 21 2011 — edited Sep 24 2011
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2011
Added on Sep 21 2011
4 comments
795 views