Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "VM Periodic Task Thread"?

I can see this thread in my thread dump:

"VM Periodic Task Thread" prio=10 tid=0x00007fc23000e800 nid=0x49e6 waiting on condition

What is it?

like image 713
Konrad Garus Avatar asked Mar 10 '11 11:03

Konrad Garus


1 Answers

Having a look at the latest OpenJDK source, this is C++ level thread which performs a number of tasks on systems where there is not a native timer interrupt.

It appears to be mostly used for sampling/profiling what the JVM is doing.

like image 71
Peter Lawrey Avatar answered Sep 21 '22 23:09

Peter Lawrey