Loading

Mitigating resource exhaustion risks due to org permission changes during Peak Hours

게시 일자: Jul 2, 2024
상세 설명

What is a Resource Exhaustion event?
An apex resource exhaustion event is a service protection mechanism that can result in degradation or denial of service due to too much competition for server resources to compile apex code.

When this Occurs?
Apex recompilation is triggered for requests when compiled bytecode is not available in the cache. Enabling or disabling any feature that changes organizational permissions during peak business hours may result in the invalidation of Apex code cache. As a general rule of thumb: any permission changes made during peak periods can potentially lead to the invalidation of the Apex bytecode cache and subsequently require Apex code to be recompiled for subsequent requests.

 

Emergency and patch releases will also invalidate the Apex bytecode cache. 

솔루션

Orgs with high traffic and a large number of apex classes should avoid the following during peak busy hours:

  • Changing org permissions or preferences, including activating a release update
  • Changing custom objects or fields

After changes are made outside of peak hours the Apex code can be manually compiled to ensure it is available before usage increases.

Note that changes made via metadata deploys, package installs, or package upgrades are covered by the compile on deploy feature to ensure cached bytecode is available to handle requests immediately.

Knowledge 기사 번호

000927355

 
로드 중
Salesforce Help | Article