Skip to content

Commit e9e619a

Browse files
authored
Ensure that we don't go out of memory trying to dump the heap dumps (#45690)
1 parent 3e0b67b commit e9e619a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eng/pipelines/scripts/Get-Heap-Dump-Hprofs.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ if ($hrpofs.Count -gt 0) {
2727
if (-not (Test-Path "$StagingDirectory/troubleshooting")) {
2828
New-Item -ItemType Directory -Path "$StagingDirectory/troubleshooting" | Out-Null
2929
}
30-
Compress-Archive -Path $hrpofs -DestinationPath "$StagingDirectory/troubleshooting/$OomArtifactName.zip"
30+
$destTar = "$StagingDirectory/troubleshooting/$OomArtifactName.tar.gz"
31+
32+
& tar -czf $destTar -- $hrpofs.FullName
3133
Write-Host "##vso[task.setvariable variable=HAS_TROUBLESHOOTING]true"
3234
}

0 commit comments

Comments
 (0)