Out of Memory - JS

Avatar

Avatar
Validate 1
Level 1
ukender
Level 1

Likes

0 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 1
ukender
Level 1

Likes

0 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Applaud 5
Affirm 1
View profile
ukender
Level 1

17-09-2020

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.

 

ukender_0-1600402410350.png

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

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 10
Employee
craigthonis
Employee

Likes

179 likes

Total Posts

273 posts

Correct reply

160 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 50
View profile

Avatar
Give Back 10
Employee
craigthonis
Employee

Likes

179 likes

Total Posts

273 posts

Correct reply

160 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 50
View profile
craigthonis
Employee

21-09-2020

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

Answers (2)

Answers (2)

Avatar

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

117 likes

Total Posts

329 posts

Correct reply

102 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

117 likes

Total Posts

329 posts

Correct reply

102 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile
_Manoj_Kumar
MVP

21-09-2020

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.

 

 

 

 

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

20-09-2020

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