Skip to content

Commit

Permalink
Specify heap dump path (#424)
Browse files Browse the repository at this point in the history
<!-- PR title should start with '[fix]', '[improvement]' or '[break]' if this PR would cause a patch, minor or major SemVer bump. Omit the prefix if this PR doesn't warrant a standalone release. -->

Fixes #423
  • Loading branch information
raiju authored and bulldozer-bot[bot] committed Feb 14, 2019
1 parent 7a076cf commit 401a6a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public class LaunchConfigTask extends DefaultTask {
"-XX:+CrashOnOutOfMemoryError",
"-Djava.io.tmpdir=var/data/tmp",
"-XX:ErrorFile=var/log/hs_err_pid%p.log",
"-XX:HeapDumpPath=var/log",
// Set DNS cache TTL to 20s to account for systems such as RDS and other
// AWS-managed systems that modify DNS records on failover.
"-Dsun.net.inetaddr.ttl=20"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ class ServiceDistributionPluginTests extends GradleIntegrationSpec {
'-XX:+CrashOnOutOfMemoryError',
'-Djava.io.tmpdir=var/data/tmp',
'-XX:ErrorFile=var/log/hs_err_pid%p.log',
'-XX:HeapDumpPath=var/log',
'-Dsun.net.inetaddr.ttl=20',
'-XX:+UseParallelOldGC',
'-Xmx4M',
Expand All @@ -424,6 +425,7 @@ class ServiceDistributionPluginTests extends GradleIntegrationSpec {
'-XX:+CrashOnOutOfMemoryError',
'-Djava.io.tmpdir=var/data/tmp',
'-XX:ErrorFile=var/log/hs_err_pid%p.log',
'-XX:HeapDumpPath=var/log',
'-Dsun.net.inetaddr.ttl=20',
'-Xmx4M',
'-Djavax.net.ssl.trustStore=truststore.jks'])
Expand Down Expand Up @@ -460,6 +462,7 @@ class ServiceDistributionPluginTests extends GradleIntegrationSpec {
'-XX:+CrashOnOutOfMemoryError',
'-Djava.io.tmpdir=var/data/tmp',
'-XX:ErrorFile=var/log/hs_err_pid%p.log',
'-XX:HeapDumpPath=var/log',
'-Dsun.net.inetaddr.ttl=20',
"-XX:+PrintGCDateStamps",
"-XX:+PrintGCDetails",
Expand Down

0 comments on commit 401a6a3

Please sign in to comment.