apm-agent-java icon indicating copy to clipboard operation
apm-agent-java copied to clipboard

STARTUP TUNING: Warn on slow clock source

Open jackshirazi opened this issue 3 years ago • 2 comments

Is your feature request related to a problem?

A slow clock source (like xen) impacts how long nanoTime() call takes, can add a second to startup!

Describe the solution you'd like

Add check for clock source and warn if it's a slow one. Note, can be after startup since the information is for subsequent runs anyway

Describe alternatives you've considered

Only alternative is to remove all the timing stats during startup. Actually, that's a feasible tuning option to add - I'll leave it to a later discussion when this gets prioritized

Additional context

https://github.com/elastic/apm-agent-java/issues/2349

jackshirazi avatar Feb 09 '22 17:02 jackshirazi

@jackshirazi Wagt do you think about #2471

tobiasstadler avatar Feb 15 '22 19:02 tobiasstadler

@tobiasstadler that's an excellent idea!

jackshirazi avatar Feb 15 '22 20:02 jackshirazi