Skip to main content Skip to section navigation
U.S. flag

An official website of the United States government

Set org, space, and app limits

Table of Contents

Org Managers are free to configure your org’s quota capacity among your spaces and applications as you see fit. This enables Org Managers to limit usage and corresponding costs.

Org

See more about how to manage your orgs’ quotas.

Space

Org Managers can create and modify space quota plans to limit the resources used by spaces. See the CF CLI documentation for create-space-quota to create the quota plan, and create a space with that quota plan using create-space (which has the option [-q SPACE_QUOTA]).

App

Space Developers can specify application limits in your application manifest or as cf push command line options.

Application limit options

memory: / -m

  • Default: 1GB
  • Minimum: Based on the app's usage and runtime requirements
  • Maximum: Based on organization's quota and its provisioned apps

The application memory limit. This setting has a dual-purpose, as your application compute limit is derived from its memory limit. This relationship is explained in detail here.

disk_quota / -k

  • Default: 2GB
  • Minimum: Based on the app's source and dependencies disk size
  • Maximum: 7GB

The maximum amount of disk space available to your app.

instances: / -i

  • Default: 1
  • Minimum: 0
  • Maximum: Based on organization's quota and its provisioned apps

Sets the number of application instances to launch. Each additional instance receives the same memory and disk reservation. An application with a manifest specifying memory: 256M and instances: 4 would reserve 1GB (256M x 4) total.

Limited:

The application cannot access more than the specified amount of memory.

Application limit options: sizing

  • The environment default of 512MB memory: is sufficient for most applications. Static sites and utility applications such as schedulers or loaders may require less. Use cf app APPNAME to check your application’s current memory and compute utilization.
		requested state:   started
routes:            test-python-flask-triumphant-springhare-yq.app.cloud.gov
last uploaded:     Mon 09 Dec 15:51:15 EST 2024
stack:             cflinuxfs4
buildpacks:        
	name               version   detect output   buildpack name
	python_buildpack   1.8.30    python          python

type:           web
sidecars:       
instances:      1/1
memory usage:   256M
     state     since                  cpu    memory          disk           details
#0   running   2024-12-09T20:51:30Z   0.0%   30.3M of 256M   217.2M of 2G  
  • Any application which exceeds its memory limit will be automatically restarted. Use cf events APPNAME to look for ‘out of memory’ crashes.
		... description
		... index: 0, reason: CRASHED, exit_description: out of memory, exit_status: 255

cloud.gov

An official website of the U.S. General Services Administration

Looking for U.S. government information and services?
Visit USA.gov