Expand my Community achievements bar.

SOLVED

AEM 6.5.3 - System Overview Dashboard - Failed Sling Jobs

Avatar

Level 2

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

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

4 Replies

Avatar

Employee

Hello Vikash,

 

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

 

Regards,

Anubha

Avatar

Employee Advisor

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.

 

Avatar

Level 3

The failed sling jobs details would be printed in the error.log file with the stacktrace.You can analyze those.

Avatar

Correct answer by
Employee

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