Go to main content

Administering Resource Management in Oracle® Solaris 11.4

Exit Print View

Updated: August 2018

Example: How to Specify a Temporary Resource Cap for a Zone

This example procedure allocates the maximum amount of memory that can be consumed by the specified zone. This value lasts only until the next reboot.

To set a persistent cap, instead use the zonecfg command.

  1. Assume the root role.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Set a maximum memory value of 512 megabytes for the zone.
    $ rcapadm -z my-zone -m 512M