FIELD OF TECHNOLOGY

The present disclosure relates generally to database systems and data processing, and more specifically to usage checks for code running within a secure sub-environment of a virtual machine.

BACKGROUND

A cloud platform (i.e., a computing platform for cloud computing) may be employed by many users to store, manage, and process data using a shared network of remote servers. Users may develop applications on the cloud platform to handle the storage, management, and processing of data. In some cases, the cloud platform may utilize a multi-tenant database system. Users may access the cloud platform using various user devices (e.g., desktop computers, laptops, smartphones, tablets, or other computing systems, etc.).

In one example, the cloud platform may support customer relationship management (CRM) solutions. This may include support for sales, service, marketing, community, analytics, applications, and the Internet of Things. A user may utilize the cloud platform to help manage contacts of the user. For example, managing contacts of the user may include analyzing data, storing and preparing communications, and tracking opportunities and sales.

An application server may execute code for multiple tenants of the application server. The application server may support users developing and executing customized code specific to a tenant to improve the robustness of the supported applications. However, allowing users to run custom code at an application server may limit the ability to enforce protections at the application server. For example, a user may run a block of code at the application server that uses an excessive amount of the server resources (e.g., memory space, computation resources, etc.). This may result in an uneven distribution of the server resources between the tenants, leading to poor performance for one or more of the tenants.

