Skip to main content
ukender
Level 3
Sep 18, 2020 4:18 AM UTC
Solved

Out of Memory - JS

Hi All

 

We're facing an issue while executing a webApp, it throws out of memory. I have increased the javascript limit in serverconf from 128 to 2048 MB and reloaded the severconf but it still throws the same error.

 

We are using a sql query which fetches 50K lines of results, 

 

Is there any limits in running the JS? could you please help me out.

 

I've followed the steps provided in https://helpx.adobe.com/campaign/kb/out-of-memory-error-in-js-code-activity-in-workflows.html

 

Thanks in Advance

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Craig_Thonis
Craig_ThonisAccepted solution
Adobe Employee
Sep 21, 2020 12:31 PM UTC

Hi ukender,

 

As Manoj and Jon mentioned you likely have an issue with the script or the data being returned itself.  Generally speaking on the Adobe side we almost never need to increase the memory past 512mb.  If we still hit failures that almost always indicates a problem.

 

Regards,

Craig

3 replies

Jonathon_wodnicki
Community Advisor
Community Advisor
Sep 21, 2020 5:15 AM UTC

Hi,

 

2 gb for a js interpreter may be a tad overkill.

This looks like a recursive function gone awry, building infinite stack and crashing. What's on line 1315?

 

Thanks,

-Jon

 

Translate
Manoj_Kumar
Community Advisor
Community Advisor
Sep 21, 2020 10:16 AM UTC

Hello @ukender ,

 

What exactly you are trying to with those 50K lines?

If you are planning to display some result in the datatable then I would suggestion you limit the records in the query. There is a reason why the queryDef is limited to 10K records by default.

 

 

 

 

Translate
Manoj  | https://themartech.pro
Craig_Thonis
Adobe Employee
Craig_ThonisAdobe EmployeeAccepted solution
Adobe Employee
Sep 21, 2020 12:31 PM UTC

Hi ukender,

 

As Manoj and Jon mentioned you likely have an issue with the script or the data being returned itself.  Generally speaking on the Adobe side we almost never need to increase the memory past 512mb.  If we still hit failures that almost always indicates a problem.

 

Regards,

Craig

Translate