AEM 6.5.3 - System Overview Dashboard - Failed Sling Jobs

Avatar

Avatar
Level 1
Vikashyadav
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
Vikashyadav
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
Vikashyadav
Level 1

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

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

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

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
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)

Avatar

Avatar
Boost 50
Employee
surabhikatiyar
Employee

Likes

68 likes

Total Posts

46 posts

Correct reply

18 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
surabhikatiyar
Employee

Likes

68 likes

Total Posts

46 posts

Correct reply

18 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
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.

 

Avatar

Avatar
Boost 5
Level 3
manising
Level 3

Likes

20 likes

Total Posts

19 posts

Correct reply

7 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
manising
Level 3

Likes

20 likes

Total Posts

19 posts

Correct reply

7 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
manising
Level 3

11-06-2020

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

Avatar

Avatar
Boost 5
Employee
anubhas68994354
Employee

Likes

15 likes

Total Posts

17 posts

Correct reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 3
View profile

Avatar
Boost 5
Employee
anubhas68994354
Employee

Likes

15 likes

Total Posts

17 posts

Correct reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 3
View profile
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