AEM 6.5.3 - System Overview Dashboard - Failed Sling Jobs

Vikashyadav

11-06-2020

Hi,

Our AEM application is running on 6.5.3. On system overview dashboard, under Sling Jobs, we can see large number of sling jobs either failed or cancelled. Please find below attached image. We need to analyze these jobs in details. Where we can find these sling jobs details? Is there any logs which are specific to these sling jobs? 

 

Vikashyadav_0-1591880196261.png

 

 

AEM 6.5.3 Sling Jobs System Overview

Accepted Solutions (1)

Accepted Solutions (1)

vanegi

Employee

14-06-2020

Hello Vikas,

You can get information about the sling jobs from the following MBEAN: "http://localhost:6530/system/console/jmx/org.apache.sling.healthcheck%3Aname%3DslingJobs%2Ctype%3DHe....

 

vanegi_0-1592145490684.png

 

These jobs check the number of jobs queued in the JobManager, compares it to the maxNumQueueJobs threshold, and:
  • returns Critical if more than the maxNumQueueJobs are in the queue
  • returns Critical if there are long-running active jobs that are older than 1 hour
  • returns Critical if there are queued jobs, and the last finished job time is older than 1 hour

Only the maximum number of queued jobs parameter is configurable and it has the default value of 1000. See [0] for more details.

 

[0]: https://github.com/AdobeDocs/experience-manager-65.en/blob/master/help/sites-administering/operation...

 

 

Thanks,

Vaishali

Answers (3)

Answers (3)

surabhikatiyar

Employee

11-06-2020

The job details are saved in the repository at the location "/var/eventing/jobs".

The link to the OSGI console is "http://localhost:4502/system/console/events". PFB for the screenshot.

The link is present as "Events" under "OSGI" tab under the link "http://localhost:4502/system/console"

surabhikatiyar_0-1591882662307.png

There are configuration in the OSGi console where you can even enable history for the "Finished Jobs", by checking the property "Keep History" in the Apache Sling Job Queue Configuration.

 

If you wish to know why the job failed, then you based on the above analysis, add the logger to the specific job consumer. This way, you will be able to drill down why the job is failing.

 

anubhas68994354

Employee

11-06-2020

Hello Vikash,

 

You can refer consoles - /system/console/slingevent and /system/console/events to view details of these failed sling jobs.

 

Regards,

Anubha