Patent ID: 8347306

Claim:
A computer implemented method for determining resource usage of a tenant in a multi-tenant architecture, comprising the steps of: recording, using a computer device, within a period of time comprises an interval count of predetermined time intervals, a respective total consumption of each resource in each predetermined time interval; obtaining, using the computer device, total times each operation is called by each tenant in each predetermined time interval, wherein each operation is executed a respective total number of times in each predetermined time interval, and wherein operations are called by at least a subset of tenants within a plurality of tenants within a multiple-tenant architecture; calculating for each operation, using the computer device, a respective consumption of each resource during execution of the each operation, wherein the calculating the respective consumption of a respective resource within the each resource comprises solving a plurality of linear equations, each linear equation within the plurality of linear equations corresponding to a respective predetermined time interval within the interval count of predetermined time intervals, each linear equation comprising an equality between a respective total consumption of the respective resource during the respective predetermined time interval and a sum of a plurality of values, each value within the plurality of values representing a respective consumption of the respective resource during each respective execution of the respective operation; and calculating, using the computer device, usage of said each resource by at least one tenant within the period of time, based on the respective consumption of each resource during execution of each operation and the total times of calling each operation of each tenant in each predetermined time interval, thus determining resource usage for the at least one tenant.