Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Sling Background Servlet node limit to 99

Avatar

Avatar
Level 1
thiagorabelo-conexio
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
thiagorabelo-conexio
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
thiagorabelo-conexio
Level 1

18-03-2021

My project has a servlet that runs in background (sling:bg = true as a parameter) the problem I'm facing is that the answer is limited as 3.43MB which creates 99 nodes on the the jobs node (/tmp/bg/jobs/b7e81f79-07d8-47d8-8b54-d87edf46d9a4/2021/03/18/19/03/5/stream/), someone know how can I raise the amount that can be saved by the servlet?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

551 likes

Total Posts

663 posts

Correct Reply

191 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

551 likes

Total Posts

663 posts

Correct Reply

191 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile
asutosh_jena
Level 10

18-03-2021

Hi @thiagorabelo-conexio 

I am not sure what the use case here that you are using the background job with Sling servlet. See if the below link helps:
https://www.joshdurbin.net/posts/2015-05-sling-background-servlets/

 

Thanks!

Answers (1)

Answers (1)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,112 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,112 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

19-03-2021

The Sling Background jobs have been deprecated quite some time ago and also removed from AEM (since at least AEM 6.4). I would clearly try to rewrite the code, e.g. to use a Sling Job to execute the job instead.