GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Set async-profiler timeout for JFR recordings by korniltsev-grafanista · Pull Request #339 · grafana/pyroscope-java

Conversation

@korniltsev-grafanista

@korniltsev-grafanista korniltsev-grafanista commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This adds an async-profiler timeout to JFR recording commands based on the configured upload interval. It provides a safety net if the scheduled stop does not run, preventing the recording file from growing indefinitely. Related to #338.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@korniltsev-grafanista
fix: set async-profiler recording timeout
370d303
@korniltsev-grafanista
korniltsev-grafanista marked this pull request as ready for review July 22, 2026 04:10
@korniltsev-grafanista
korniltsev-grafanista requested review from a team as code owners July 22, 2026 04:10
@korniltsev-grafanista korniltsev-grafanista mentioned this pull request Jul 22, 2026
Config to control location of pyroscope.jfr files #338
Closed
cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 370d303. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread agent/src/main/java/io/pyroscope/javaagent/AsyncProfilerDelegate.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@korniltsev-grafanista korniltsev-grafanista changed the title Set async-profiler timeout for JFR recordings fix: Set async-profiler timeout for JFR recordings Jul 22, 2026
korniltsev-grafanista added 4 commits July 22, 2026 11:25
@korniltsev-grafanista
fix: handle elapsed async-profiler timeout
58c3692
Keep the timeout as a fallback and allow scheduled collection to continue if it has already elapsed.
@korniltsev-grafanista
fix: preserve configured profiler timeout
4604caf
Round fractional durations up to async-profiler's whole-second precision without extending exact durations.
@korniltsev-grafanista
refactor: simplify elapsed timeout handling
261e2ad
Format is always JFR, so identify the expected async-profiler failure directly.
@korniltsev-grafanista
refactor: simplify profiler timeout conversion
62d8b75
Use the configured whole seconds plus one to avoid truncating fractional durations.
matt-hensley
matt-hensley approved these changes Jul 22, 2026
View reviewed changes
@korniltsev-grafanista
korniltsev-grafanista merged commit 6a0f121 into main Jul 23, 2026
74 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@korniltsev-grafanista
korniltsev-grafanista deleted the fix/timeout branch July 23, 2026 01:09
@pyroscope-development-app pyroscope-development-app Bot mentioned this pull request Jul 17, 2026
chore(main): release 2.9.0 #333
Merged
@korniltsev-grafanista korniltsev-grafanista mentioned this pull request Aug 5, 2026
No async-profiler recording timeout in OTLP mode #345
Closed
@korniltsev-grafanista
korniltsev-grafanista restored the fix/timeout branch October 23, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments
@matt-hensley matt-hensley matt-hensley approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@korniltsev-grafanista @matt-hensley
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.