Loading

Proactive Alert Monitoring: Concurrent Apex Errors

게시 일자: Aug 31, 2023
상세 설명

Salesforce limits the number of long-running synchronous apex transactions in your org. Once this limit is exceeded, you may encounter Concurrent Apex Errors, caused by subsequent transactions’ attempts to process whilst the limit is exceeded. 

The Signature Success plan’s Proactive Monitoring product will monitor for, and alert you to, sustained volumes of these errors. 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 the following error message, your organization may experience performance issues and possible service disruptions.

Full error message text:

'Unable to process request. Concurrent requests limit exceeded.'

 

Causes

Concurrency issues often arise due to:

  • Not following best practices
  • Inefficient SOQL queries
  • Not balancing the use of Synchronous and Asynchronous Apex
솔루션

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


Poorly Coded Apex:


Inefficient SOQL Queries:

  • Use the Query Plan Tool to identify opportunities to validate and optimize performance of your SOQL queries.


Not balancing use of Synchronous & Asynchronous Apex:

  • Async apex limits are typically much higher than synchronous, though have their trade-offs. Consider evaluating your existing synchronous processes to see if any could instead be done asynchronously.
  • Asynchronous Processing Basics trail outlines the Pros and Cons.​​​​


Annual Technical Health Review:

  • Audit the Apex code you may running to ensure it is efficient. If you have not availed of your annual Signature ATHR, this may help in identifying where best practices are not being followed.

 


Additional Resources:


Help and Developer Resources:


Trailhead Modules:

Knowledge 기사 번호

000382575

 
로드 중
Salesforce Help | Article