Loading

Proactive Alert Monitoring: Apex Future & Queueable Performance

Data pubblicazione: Jul 23, 2025
Descrizione

Apex Future & Queueable methods are leveraged to execute Asynchronous Apex processes that will run in the background at a later time once resources become available. As asynchronous processes have no SLA, poorly implemented Future or Queueable methods can cause performance issues if they become stuck in the queue or run very long.

The Signature Success plan's Proactive Monitoring product will monitor fand alert you to high consumption against these metrics if you organization has Signature Success Plan . This article outlines some scenarios to help you investigate should you receive an alert. In addition, on the Salesforce Help site Designated contacts and above can see your realtime metrics, alerts & more.

If you receive one of the following error messages, your organization may experience performance issues and possible service disruptions:

  • Unable to process request. System.QueryException
  • Unable to process request. System.LimitException
  • Apex CPU time limit exceeded
  • Too many SOQL queries: 201
  • REQUEST_RUNNING_TOO_LONG


Causes

Jobs that run long or error may often be caused by one or many of the following:

  • Inefficient Apex
  • Inefficient SOQL queries
  • Unhandled Exceptions
Risoluzione

Here are some common practices & resources that may help to resolve this error.
 

Inefficient Apex

  • Always code with Asynchronous Apex processing in mind, and reference our Future Methods and Queuable Apex documentation for best practices.
    • Always be mindful of governor limits, you can find a list Apex Governor Limits here.
 

Inefficient SOQL queries

  • Use the Query Plan Tool to validate and optimize performance to avoid breaching governor limits.
 

Unhandled Exceptions

  • Apex Future and Apex Queueable jobs can fail if exceptions aren’t caught correctly.
  • Please be aware that Governor Limit breaches cannot be caught in Apex, so please ensure your code is optimized and tested thoroughly before deploying to production.
    • You can find a list of Apex Governor Limits here.


Additional Resources


Help and Developer Resources:
Useful Trails
Numero articolo Knowledge

000384151

 
Caricamento
Salesforce Help | Article