test: write heap dump to log folder

Per default the heap dump is written to target/JX/pidXYZ.hprof
In order to keep them when a new test is is started, they
should be written to log folder which is not cleared in a new
test run.
Heap dump location can be set with -Dtests.heapdump.path=/path/to/heapdump

closes #7452
This commit is contained in:
Britta Weber 2014-08-26 11:56:32 +02:00
parent 09816fdf57
commit 44dbd9b0c9
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@
<tests.bwc.path>${project.basedir}/backwards</tests.bwc.path> <tests.bwc.path>${project.basedir}/backwards</tests.bwc.path>
<es.logger.level>INFO</es.logger.level> <es.logger.level>INFO</es.logger.level>
<tests.heap.size>512m</tests.heap.size> <tests.heap.size>512m</tests.heap.size>
<tests.heapdump.path>${basedir}/logs</tests.heapdump.path>
<tests.topn>5</tests.topn> <tests.topn>5</tests.topn>
<execution.hint.file>.local-${project.version}-execution-hints.log</execution.hint.file> <execution.hint.file>.local-${project.version}-execution-hints.log</execution.hint.file>
</properties> </properties>
@ -476,6 +477,7 @@
<param>-XX:MaxDirectMemorySize=512m</param> <param>-XX:MaxDirectMemorySize=512m</param>
<param>-Des.logger.prefix=</param> <param>-Des.logger.prefix=</param>
<param>-XX:+HeapDumpOnOutOfMemoryError</param> <param>-XX:+HeapDumpOnOutOfMemoryError</param>
<param>-XX:HeapDumpPath=${tests.heapdump.path}</param>
</jvmArgs> </jvmArgs>
<shuffleOnSlave>${tests.shuffle}</shuffleOnSlave> <shuffleOnSlave>${tests.shuffle}</shuffleOnSlave>
<sysouts>${tests.verbose}</sysouts> <sysouts>${tests.verbose}</sysouts>