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?
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.