Re: [rvm-research] General Java Virtual Machine Question

Eliot Moss <[email protected]> Wed, 5 Dec 2018 18:17:48 -0500
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
On 12/5/2018 4:02 PM, Khaled Z Mahmoud wrote:
> Hi,
> 
> This question is not related to directly to Jikes. Maybe, Jikes gurus might provide a hint here.
> When using Oracle hotspot VM, even if the application contains only one thread, JVM creates 52 OS 
> threads at the beginning. Those are created all the times at the beginning regardless of the number 
> of threads.
> 
> I got the 52 number by looking at /proc/${pid}/task

There are a large number of background tasks in a modern industrial JVM.
For example, there may be one GC thread per core, and one compilation
thread per core, and various scheduler things.  Most of these will be
just waiting most of the time, until your work gets under way.  Even a
single-threaded application may get a lot of concurrent GC and compilation
going.

This is just a generic answer; someone else may know more specifics of
what HotSpot (Oracle) does ...

Best - Eliot Moss