csantanapr closed pull request #3141: Use timestamps in Java error and heap
filenames
URL: https://github.com/apache/incubator-openwhisk/pull/3141
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/ansible/roles/controller/tasks/deploy.yml
b/ansible/roles/controller/tasks/deploy.yml
index 319e695ce9..b2ee5db0ad 100644
--- a/ansible/roles/controller/tasks/deploy.yml
+++ b/ansible/roles/controller/tasks/deploy.yml
@@ -40,7 +40,7 @@
restart_policy: "{{ docker.restart.policy }}"
hostname: "controller{{ groups['controllers'].index(inventory_hostname) }}"
env:
- "JAVA_OPTS": "-Xmx{{ controller.heap }} -XX:+CrashOnOutOfMemoryError
-XX:+UseGCOverheadLimit -XX:ErrorFile=/logs/java_error.log
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs"
+ "JAVA_OPTS": "-Xmx{{ controller.heap }} -XX:+CrashOnOutOfMemoryError
-XX:+UseGCOverheadLimit -XX:ErrorFile=/logs/java_error_{{
ansible_date_time.iso8601_basic_short }}.log -XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/logs/java_heap_{{ ansible_date_time.iso8601_basic_short
}}.hprof"
"CONTROLLER_OPTS": "{{ controller.arguments }}"
"CONTROLLER_INSTANCES": "{{ controller.instances }}"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services