How many threads does Java VM support?

Asked 1 years ago, Updated 1 years ago, 127 views

How many threads does Java VM support? Is it different depending on the manufacturer or operating system? What are the other factors?

multithreading java

2022-09-22 21:26

1 Answers

It is related to which CPU, OS, other processes are running, which Java version is being used, or other elements. I've seen more than 6500 threads work before the VM goes off on a Windows server. Of course, most threads didn't work properly. By the time we reached 6,500, the VM started having problems and eventually became unstable.

In experience, Java allows the computer to thread to the extent that it can maintain itself without any problems.

Of course, you need enough RAM, and you need to run Java with enough memory to handle the work of the threads and keep each of the threads stacked. Computers with the latest CPU (most recent generation AMD or Intel) with more than 500MB of memory (depending on the operating system) support a JVM that can spin thousands of threads.

If you want a more detailed answer, please let me know the detailed computer specifications.


2022-09-22 21:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.