Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 7a75e51

Browse files
authored
Removing defaulted HeapDumpOnOutOfMemory (#3665)
1 parent f11ebc3 commit 7a75e51

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

heron/executor/src/python/heron_executor.py

-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ def _get_java_gc_instance_cmd(self, cmd, gc_name):
582582
'-XX:+UseStringDeduplication',
583583
'-XX:MaxGCPauseMillis=100',
584584
'-XX:InitiatingHeapOccupancyPercent=30',
585-
'-XX:+HeapDumpOnOutOfMemoryError',
586585
'-XX:ParallelGCThreads=4']
587586
if self.verbose_gc:
588587
gc_cmd += ['-Xlog:gc*,safepoint=info:file=' + self.log_dir + '/gc.' + gc_name +

heron/executor/tests/python/heron_executor_unittest.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def get_expected_metricsmgr_command(container_id):
111111
"-Djava.net.preferIPv4Stack=true " \
112112
"-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication " \
113113
"-XX:MaxGCPauseMillis=100 -XX:InitiatingHeapOccupancyPercent=30 " \
114-
"-XX:+HeapDumpOnOutOfMemoryError -XX:ParallelGCThreads=4 " \
114+
"-XX:ParallelGCThreads=4 " \
115115
"-cp metricsmgr_classpath org.apache.heron.metricsmgr.MetricsManager " \
116116
"--id=metricsmgr-%d --port=metricsmgr_port " \
117117
"--topology=topname --cluster=cluster --role=role --environment=environ " \
@@ -125,7 +125,7 @@ def get_expected_metricscachemgr_command():
125125
"-Djava.net.preferIPv4Stack=true " \
126126
"-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication " \
127127
"-XX:MaxGCPauseMillis=100 -XX:InitiatingHeapOccupancyPercent=30 " \
128-
"-XX:+HeapDumpOnOutOfMemoryError -XX:ParallelGCThreads=4 " \
128+
"-XX:ParallelGCThreads=4 " \
129129
"-cp metricscachemgr_classpath org.apache.heron.metricscachemgr.MetricsCacheManager " \
130130
"--metricscache_id metricscache-0 --server_port metricscachemgr_serverport " \
131131
"--stats_port metricscachemgr_statsport --topology_name topname --topology_id topid " \
@@ -139,7 +139,7 @@ def get_expected_healthmgr_command():
139139
"-Djava.net.preferIPv4Stack=true " \
140140
"-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication " \
141141
"-XX:MaxGCPauseMillis=100 -XX:InitiatingHeapOccupancyPercent=30 " \
142-
"-XX:+HeapDumpOnOutOfMemoryError -XX:ParallelGCThreads=4 " \
142+
"-XX:ParallelGCThreads=4 " \
143143
"-cp scheduler_classpath:healthmgr_classpath " \
144144
"org.apache.heron.healthmgr.HealthManager --cluster cluster --role role " \
145145
"--environment environ --topology_name topname --metricsmgr_port metricsmgr_port"
@@ -151,7 +151,7 @@ def get_expected_instance_command(component_name, instance_id, container_id):
151151
"-Djava.net.preferIPv4Stack=true " \
152152
"-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication " \
153153
"-XX:MaxGCPauseMillis=100 -XX:InitiatingHeapOccupancyPercent=30 " \
154-
"-XX:+HeapDumpOnOutOfMemoryError -XX:ParallelGCThreads=4 " \
154+
"-XX:ParallelGCThreads=4 " \
155155
"-cp instance_classpath:classpath -XX:+HeapDumpOnOutOfMemoryError " \
156156
"org.apache.heron.instance.HeronInstance -topology_name topname -topology_id topid " \
157157
"-instance_id %s -component_name %s -task_id %d -component_index 0 -stmgr_id stmgr-%d " \

heron/tools/apiserver/src/java/org/apache/heron/apiserver/resources/TopologyResource.java

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
import org.apache.heron.apiserver.actions.Keys;
6262
import org.apache.heron.apiserver.utils.ConfigUtils;
6363
import org.apache.heron.apiserver.utils.FileHelper;
64-
import org.apache.heron.apiserver.utils.Logging;
6564
import org.apache.heron.apiserver.utils.Utils;
6665
import org.apache.heron.common.basics.DryRunFormatType;
6766
import org.apache.heron.common.basics.FileUtils;

0 commit comments

Comments
 (0)