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:
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.
000927355

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.