amtrack / force-dev-tool

[DEPRECATED] Command line tool supporting the Force.com development lifecycle
MIT License
108 stars 37 forks source link

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #96

Closed okram999 closed 6 years ago

okram999 commented 7 years ago

@amtrack i got this heap out of memory on my local pc but works on a linux server. My pc have ample system memory. Did you encounter this node.js memory issue? Do you have plan to expose the cli, so that user can specify the size as in https://stackoverflow.com/questions/26094420/fatal-error-call-and-retry-last-allocation-failed-process-out-of-memory ?

Finally, i know we spoke about this but do you have any idea on how much of git diff that the cli tool take for generating the changeset?

thanks

amtrack commented 7 years ago

Hi @okram999, sorry for being unresponsive regarding your issues. I cannot guarantee to find time in the near future for development.

I haven't encountered such memory issues yet and don't have any recommended max diff sizes so far.

In general i tend to reimplement relevant and unique parts of force-dev-tool as plugins to the sfdx cli in the future.

The changeset command clearly is such a part.

At the moment the changeset command lacks support for certain Metadata types and needs to be updated for the PermissionSet behavior new in API version 40.

okram999 commented 7 years ago

@amtrack , thanks for the response.. Can you let me know, what metadata types are not supported by the changeset command. And also what needs to be updated for the PermissionSet with the new API version 40

amtrack commented 7 years ago

PermisssionSets can now be treated as whole files instead of decomposing them into parts: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_permissionset.htm

AFAIK own properties of e.g. CustomObject are not yet handled. For example when you only change the description element of a CustomObject.

There might be more.

okram999 commented 7 years ago

AFAIK own properties of e.g. CustomObject are not yet handled. For example when you only change the description element of a CustomObject.

this is more like #90 ?

amtrack commented 7 years ago

Yes, exactly!

okram999 commented 7 years ago

btw, the java heap error are rarely seen if use nodejs v8.6.0. May be its due to better GC handling with this version. And passing various options here , doesn't do any different.

I am fine too, if you want to close this one out. But this is something, that will come up when the git diff, we are sending in is too big.. So i kind of cut down the git diff to like:

git diff master..dev src | force-dev-tool changeset create deploy

amtrack commented 6 years ago

Closed by #99