Memory¶
You need memory in order to run applications and services in your tenant.
- The DSH uses gigabytes (GB) as unit of memory.
- The memory resource expresses the total amount of memory that you can allocate to your running applications and services.
- If a service or application exceeds the limit for the memory resource, then the DSH rejects the request for deployment. For example:
- Your tenant has a memory limit of 20 GB.
- You currently have 19.8 GB of memory allocated to your services and applications.
- You try to deploy a new service or application with a memory allocation of 1 GB in its service definition.
- The DSH rejects this request, because the allocation of 20.8 GB (19.8 + 1) exceeds the limit of 20 GB.
- You can request a higher memory limit via the DSH Console.
Limits¶
The DSH imposes the following limits on memory:
- Maximum memory: The maximum amount of memory that you can allocate simultaneously across all your applications and services. The DSH checks the limit when it receives a request to deploy a service or application.
Note
The limit doesn’t influence the actual memory usage of your applications or services. In order to manage the memory usage of a running service or application, the DSH uses the amount of memory that you allocated to it in its service definition:
- You set the amount of allocated memory in the service definition, when you configure a service or application.
- When you deploy a service or application, the DSH checks its allocated memory against the limit. The DSH only deploys the service or application if that doesn’t exceed the memory limit.
- Once your application or service is up and running, the DSH doesn’t allow it to exceed the amount of memory in the service definition. If it does exceed this amount, then the DSH restarts the application or service in question.
You can request a new limit:
- Via the overview page for resources:
- Click “Resources” > “Overview” in the menu bar of the DSH Console.
- Click the “Request” button next to “Memory”.
- Fill out the desired value and click “Request”.
- Via the overview page for services:
- Click “Services” > “Overview” in the menu bar of the DSH Console.
- Click the “+” button next to the blue bar for memory, at the top of the page.
- Fill out the desired value and click “Request”.
A platform administrator will process your request, which appears as a ticket in the Support Portal.
Inspecting the memory allocation¶
You can inspect the memory limit and the number of allocated cores in 2 places in the DSH Console:
- On the overview page for resources:
- Click “Resources” > “Overview” in the menu bar of the DSH Console.
- The amount of allocated memory and the limit appear next to “Memory”.
- On the overview page for services:
- Click “Services” > “Overview” in the menu bar of the DSH Console.
- The bar next to “Memory” represents the limit. The blue part of the bar represents the amount of allocated memory. You can find the actual numbers next to the bar.
Tip
The overview page for services also contains a table with all of your tenant’s applications and services. The “Memory” column displays the amount of allocated memory for each individual application and service.