BBlack has submitted this change and it was merged.
Change subject: Elasticsearch java options for gc issues
......................................................................
Elasticsearch java options for gc issues
If there are GC issues you want to know quickly and get as much information
as possible. This causes GC issues to stop the application and dump the
heap for analysis. It defines GC issues as full GCs that pause the world
for more then 70% of the time and/or can't push heap usage under 90%.
Change-Id: I85ceba638e0a4f0ed5fad87fb2bc086db5616fac
---
M modules/elasticsearch/templates/elasticsearch.erb
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
BBlack: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/elasticsearch/templates/elasticsearch.erb
b/modules/elasticsearch/templates/elasticsearch.erb
index b49aace..573dbc6 100644
--- a/modules/elasticsearch/templates/elasticsearch.erb
+++ b/modules/elasticsearch/templates/elasticsearch.erb
@@ -35,4 +35,6 @@
#CONF_FILE=/etc/elasticsearch/elasticsearch.yml
# Additional Java OPTS
-#ES_JAVA_OPTS=
+ES_JAVA_OPTS="-XX:HeapDumpPath=/var/lib/elasticsearch "
+ES_JAVA_OPTS="${ES_JAVA_OPTS} -XX:GCTimeLimit=70"
+ES_JAVA_OPTS="${ES_JAVA_OPTS} -XX:GCHeapFreeLimit=10"
--
To view, visit https://gerrit.wikimedia.org/r/168995
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I85ceba638e0a4f0ed5fad87fb2bc086db5616fac
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: BBlack <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits