skuid grunt fatal error: heap size limit

  • 1
  • Question
  • Updated 9 months ago
  • Answered
  • (Edited)
Anything I can do about this?

Running "skuid-pull:dev" (skuid-pull) taskFatal error: System.LimitException: JSON string exceeds heap size limit
(System Code)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
This is what skuid-pull looks like:

'skuid-pull':{
      'options': orgOptions,
      'dev':{
        options: {
          'username': '***',
          'password': '****',
          'dest': 'skuidpages/',
          'module': ['Optimize','Optimize2','Cleanup','Rochester','Dublin','Warren','Lakeland','Casper','User','Role','PrayerNet','Tensions','NoTensions','PSPT','Advocate','Treatment','NoTreatment','Presumptive','MDDiagnosis','MotherCare','Reviews','Stock','Stock-Role','Stock-User']
        }
      }  
    }
(Edited)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Apparently I can only pull half of my modules in a single transaction. Further evidence for this: https://community.skuidify.com/skuid/topics/skuid-grunt-pull-from-all-modules
Photo of Ethan Rogers

Ethan Rogers

  • 272 Points 250 badge 2x thumb
Unfortunately there isn't a solution for this at the moment. We plan on coming up with a way to avoid this in the future. One thing you might do is dynamically generate your targets (see the examples file in the skuid-grunt repo). You could loop over each module in the array to register a target for each module. Then you could register a task that would call each one in sequence. 

var modules = ['module'...'module'];
var config = {};
for(index in modules){
  var module = modules[x];
    config[module] = //generate task config as above
}
grunt.initConfig({
  'skuid-pull':config
});


Then, you would register a task to call each of them:
grunt.registerTask('pull-all', modules.map(function(modName){ 
  return 'skuid-pull:' + modName; 
}));
(Edited)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Ethan/Skuid--

Has there been any update to this? I'm getting the JSON string heap size limit error despite pulling pages from only one module at a time.
Help!
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Made an attempt with a module that only has a few pages, and we're still getting the heap size error!
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Sorry, guys. This turned out to be user error. X(

Still, a system that didn't require hi-jinks in order to pull large numbers of pages would be much better.