cli icon indicating copy to clipboard operation
cli copied to clipboard

StaticResource memory issues when using sfdx

Open nathanfranklinau opened this issue 3 years ago • 3 comments

This one is related to the original post I made regarding memory issues: https://github.com/forcedotcom/cli/issues/1348

I've noticed that in the latest version of sfdx, this is still a problem. While using force:mdapi:convert with static resources, the memory of my docker containers hits it's memory limit and dies.

I've uploaded a screencast which shows the memory usage when running force:mdapi:convert on a package with 2 static resources only: https://drive.google.com/file/d/16B1ShbMiZfqAHFZ7FrYxekhHhQ8pAAO_/view

It shows an increase up 6.9 GB in the screen, but the overall container memory usage hits its threshold of 7.75GB before it died.

The file itself is an old version of SLDS:

Lightning Design System Version: v0.8.0 I've uploaded the static resource here: https://drive.google.com/file/d/1rL6eBun-zAch6KcWcOR4IoMytbgmxrr3/view?usp=sharing

Hoping this helps diagnose the issue further

nathanfranklinau avatar May 24 '22 07:05 nathanfranklinau

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

github-actions[bot] avatar May 24 '22 07:05 github-actions[bot]

This issue has been linked to a new work item: W-11197251

uip-robot-zz avatar May 24 '22 22:05 uip-robot-zz

Uploaded the provided static resource to my scratch org, was able to source:convert and then when I ran mdapi:convert memory went up to ~10gb before finishing.

Screen Shot 2022-05-24 at 19 03 43

We'll get this fixed, thanks for the repro @nathanfranklinau!

cristiand391 avatar May 24 '22 22:05 cristiand391

Hi @nathanfranklinau - we've recently changed what library we used to process zip files, I know this issue is pretty old, but I couldn't reproduce it using the latest cli

 ➜  sf -v                                                                                 
@salesforce/cli/2.1.7 darwin-arm64 node-v18.16.0

I saw a node process spawn, and use ~300 mb when converting your SR

WillieRuemmele avatar Jul 31 '23 19:07 WillieRuemmele