I've managed to reproduce and fix it with this PR, if you want to try a snapshot version should be available in a few minutes once the build had completed in build artifacts here: Ignore gc alloc metrics when unsupported · elastic/apm-agent-java@43998c5 · GitHub