Skip to content

Commit

Permalink
add dump
Browse files Browse the repository at this point in the history
  • Loading branch information
huanglongchao committed Mar 15, 2024
1 parent 2d881c5 commit 7fa75f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
- name: Unit Testt
run: mvn compile -B
&& mvn clean test -DisSkipIntegrationTest=true "-Dtest.logging.level=ERROR" --fail-at-end --batch-mode
env:
MAVEN_OPTS: "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp"
- name: Upload heap dump
if: always()
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<configuration>
<testNGArtifactName>none:none</testNGArtifactName>
<junitArtifactName>org.junit:com.springsource.org.junit</junitArtifactName>
<argLine>@{argLine} -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=512m -Dfile.encoding=UTF8</argLine>
<argLine>@{argLine} -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Dfile.encoding=UTF8</argLine>
<includes>
<!-- 指定单元测试执行范围 -->
<include>**/*Test.java</include>
Expand Down

0 comments on commit 7fa75f0

Please sign in to comment.