File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
dd-smoke-tests/src/main/groovy/datadog/smoketest Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,17 @@ abstract class AbstractSmokeTest extends ProcessManager {
131131
132132
133133 def javaProperties () {
134+ def tmpDir = " /tmp"
135+ def errorFileValue = tmpDir + " /hs_err_pid%p.log"
136+ def errorScript = tmpDir + " /dd_crash_uploader." + getScriptExtension()
137+ def onErrorValue = ' "' + errorScript + ' %p"'
138+
134139 def ret = [
135140 " ${ getMaxMemoryArgumentForFork()} " ,
136141 " ${ getMinMemoryArgumentForFork()} " ,
137142 " -javaagent:${ shadowJarPath} " ,
138- isIBM ? " -Xdump:directory=/tmp" : " -XX:ErrorFile=/tmp/hs_err_pid%p.log" ,
143+ isIBM ? " -Xdump:directory=" + tmpDir : " -XX:ErrorFile=" + errorFileValue,
144+ " -XX:OnError=" + onErrorValue,
139145 " -Ddd.trace.agent.port=${ server.address.port} " ,
140146 " -Ddd.env=${ ENV} " ,
141147 " -Ddd.version=${ VERSION} " ,
@@ -155,6 +161,11 @@ abstract class AbstractSmokeTest extends ProcessManager {
155161 ret as String []
156162 }
157163
164+ static String getScriptExtension () {
165+ return Platform . isWindows() ? " bat" : " sh"
166+ }
167+
168+
158169 def inferServiceName () {
159170 true
160171 }
You can’t perform that action at this time.
0 commit comments