Hi,
I’m noticing a performance hit when I run the following PowerShell command in Octopus:
$stopwatch = [Diagnostics.Stopwatch]::StartNew()
Compress-Archive -Path $source -DestinationPath $destination -Force -CompressionLevel Fastest
$stopwatch.Stop()
Write-Output "Compression completed in $($stopwatch.Elapsed)"
When I run this PowerShell command natively in the deploy target, it runs in 2 minutes.
When running this as a step in Octopus deploy the same command for the same folders takes 8 minutes.
For lack of a better speculation, I’m thinking It could be the priority the tentacle runs under (likely lower priority than my native user session). Have you seen this before, and would you have any ideas as to why this is happening… and any potential ways to make this run faster via Octopus?
Thanks!