modify-resources

Changes resource limits for some virtual servers This program allows you to change limits on processes, memory and CPU time for one or more virtual servers. It is the equivalent of the Resource Limits page in the Virtualmin user interface. The virtual servers to modify can be selected with the --domain flag, which must be followed by a top-level server name. Alternately you can use --user to select domains by administration username, or --all-domains to update every one on the system. Because limits are applied on a per-administration user basis, they apply to all sub-servers of those selected.

Changes resource limits for some virtual servers#

This program allows you to change limits on processes, memory and CPU time for one or more virtual servers. It is the equivalent of the Resource Limits page in the Virtualmin user interface.

The virtual servers to modify can be selected with the --domain flag, which must be followed by a top-level server name. Alternately you can use --user to select domains by administration username, or --all-domains to update every one on the system. Because limits are applied on a per-administration user basis, they apply to all sub-servers of those selected.

Limits on the number of processes allowed can be set with the --max-procs flag followed by a process count, or remove with --no-max-procs.

Maximum per-process run time in seconds is set with --max-time, and removed with --no-max-time.

The maximum memory each process can use is set the --max-mem, which must be followed by a number in bytes (of at least 1 MB), or removed with --no-max-mem.

Command line help#

virtualmin modify-resources --domain name | --user name | --all-domains
 [--max-procs num | --no-max-procs]
 [--max-mem bytes | --no-max-mem]
 [--max-time minutes | --no-max-time]

Source: https://www.virtualmin.com/docs/development/api-programs/modify-resources/

  • virtualmin, domain, user, update, command line, modify, resources
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...