[ 
https://issues.apache.org/jira/browse/BEAM-14144?focusedWorklogId=745989&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-745989
 ]

ASF GitHub Bot logged work on BEAM-14144:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Mar/22 17:57
            Start Date: 22/Mar/22 17:57
    Worklog Time Spent: 10m 
      Work Description: steveniemitz commented on a change in pull request 
#17151:
URL: https://github.com/apache/beam/pull/17151#discussion_r832461198



##########
File path: 
runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/options/DataflowPipelineDebugOptions.java
##########
@@ -216,6 +216,25 @@ public Dataflow create(PipelineOptions options) {
 
   void setDumpHeapOnOOM(boolean dumpHeapBeforeExit);
 
+  /**
+   * If true, save a JFR profile when GC thrashing is first detected. The 
profile will run for the
+   * amount of time set by --jfrRecordingDurationSec, or 60 seconds by default.
+   *
+   * <p>Note, JFR profiles are only supported on java 9 and up.
+   */
+  @Description(
+      "If true, save a JFR profile before killing a thread or process "
+          + "which is GC thrashing or out of memory.  Only available on java 9 
or up")
+  boolean getRecordJfrOnGcThrashing();

Review comment:
       its cool :D




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 745989)
    Time Spent: 1h  (was: 50m)

> Record JFR profiles when GC thrashing is detected
> -------------------------------------------------
>
>                 Key: BEAM-14144
>                 URL: https://issues.apache.org/jira/browse/BEAM-14144
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-dataflow
>            Reporter: Steve Niemitz
>            Assignee: Steve Niemitz
>            Priority: P2
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> It'd be useful for debugging GC issues in jobs to have allocation profiles 
> when it was occurring.   In java 9+, JFR is included in the JDK, we could use 
> that to record profiles when GC thrashing is detected.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to