Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,20 @@ public Dataflow create(PipelineOptions options) {
int getNumberOfWorkerHarnessThreads();
void setNumberOfWorkerHarnessThreads(int value);

/**
* If {@literal true}, save a heap dump before killing a thread or process which is GC
* thrashing or out of memory. The location of the heap file will either be echoed back
* to the user, or the user will be given the oppourtunity to download the heap file.
*
* <p>
* CAUTION: Heap dumps can of comparable size to the default boot disk. Consider increasing
* the boot disk size before setting this flag to true.
*/
@Description("If {@literal true}, save a heap dump before killing a thread or process "
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you document where the heap dump will be saved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is runner-specific.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, no it isn't - was thrown by path (eventually this should go into a runners/dataflow dir in root).

+ "which is GC thrashing or out of memory.")
boolean getDumpHeapOnOOM();
void setDumpHeapOnOOM(boolean dumpHeapBeforeExit);

/**
* Creates a {@link PathValidator} object using the class specified in
* {@link #getPathValidatorClass()}.
Expand Down