question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add delay and duration parameters for the JFR telemetry device

See original GitHub issue

The JFR telemetry device while very useful, currently, only captures flight recordings from the time that ES starts until it’s been stopped. This makes it hard to grab more focused JFRs for specific tasks, e.g. the scroll task in http_logs.

The current workaround is to leverage include|exclude tasks to reduce the amount of operations but often it’s not an option as indexing usually needs to take place anyway and also skipping preceding tasks tends to affect reproducability.

Until we get a way to coordinate tasks and telemetry device execution in Rally, a short-term improvement could be allowing to pass the delay and duration parameters to jcmd, as per the official jcmd docs for JFR.start. Currently we only support one parameter (recording-template) for the jfr telemetry device, and adding those two should be a straightforward task.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dliappiscommented, Nov 21, 2022

Thanks @dliappis ! Could you please assign this to me?

Done

0reactions
debanjanc01commented, Nov 21, 2022

@dliappis I’ve raise the PR for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monitoring REST APIs with Custom JDK Flight Recorder Events
The JDK Flight Recorder (JFR) is an invaluable tool for gaining ... We'll implement an event for measuring the duration of REST API...
Read more >
4 Troubleshoot Performance Issues Using JFR
First, look at the Threads tab, and select the Overview tab. See CPU Usage Over Time. This shows the CPU usage of the...
Read more >
Telemetry Devices — Rally 0.9.1 documentation
The jfr telemetry device enables the Java Flight Recorder on the benchmark candidate. Java Flight Recorder ships only with Oracle JDK, so Rally...
Read more >
Java Performance: Tools - Today Software Magazine
In order to schedule a flight recording add the following parameters: -XX:StartFlightRecording=delay=20s, duration=60s, name=MyRecordings, ...
Read more >
Java Engineering Board - GitHub
Add Unit Tests for JfrService in Java Agent newrelic-java-agent#264 ... Errors in logs due to no duration name newrelic-jfr-core#122 opened by gfuller1
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found