Learn how Aptible enforces memory limits to ensure predictable performance
aptible logs
) indicating that your Container exceeded its memory allocation, and dumps a list of the processes running in your Container for troubleshooting purposes.SIGTERM
signal to all the processes in your Container, and gives your Container 10 seconds to exit. If your Container does not exit within 10 seconds, Aptible delivers a SIGKILL
signal, effectively terminating all the processes in your Container immediately.RSS
, and that usage is expressed in kilobytes.
SIGTERM
from Aptible?
Your app should try and exit gracefully within 10 seconds.
If your app is processing background work, you should ideally try and push it back to whatever queue it came from.
How do I know the memory usage for a Container?
See Metrics.
How do I know the memory limit for a Container?
You can view the current memory limit for any Container by looking at the Container’s Metrics in your Dashboard: the memory limit is listed right next to your current usage.
Additionally, Aptible sets the APTIBLE_CONTAINER_SIZE
environment variable when starting your Containers. This indicates your Container’s memory limit, in MB.
How do I increase the memory limit for a Container?
See Scaling.