Harald
Harald

Reputation: 5113

The "VM Periodic Task Thread" is run every 50 milliseconds, can I tune this?

On a normal hardware today this likely does not hurt ever, but on a Raspberry PI it is a bit annoying that the CPU is woken up every 50 milliseconds even for a java application which currently does absolutely nothing.

I verify with strace, that the "VM Periodic Task Thread" is active every 50 milliseconds. A rough answer of what it does is given here, but can I tune the 50 milliseconds somehow?

Upvotes: 0

Views: 668

Answers (1)

the8472
the8472

Reputation: 43125

try setting -XX:PerfDataSamplingInterval=xxx, the default is 50 and performance sampling matches the description you linked, so that might be it.

Upvotes: 3

Related Questions