elastic / elastic/apm-agent-java

STARTUP TUNING: Warn on slow clock source

Open
#2,462 2 comments 0 reactions 0 assignees View on GitHub
agent-java
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.