Resource Management

Hi Everyone,
What is the best way to manage resource usage on Virtalmin GPL & Ubuntu Server 18.04?

Thanks

Rockyuk

Hi,

Have a look at Administration Options > Resources Limits.

This page allows you to define limits on CPU and memory use that apply to this virtual server and all sub-servers. Limits apply to both PHP scripts, and commands run via an SSH login. They can be used to prevent any one domain owner from overloading the system with a fork bomb or commands that use an excessive amount of RAM.

The available limit types are:

Maximum number of processes
Attempting to launch more processes running as the server’s Unix user than the limit set here will fail. This applies to concurrent PHP scripts too.

Maximum size per process
Any single process that tries to allocate more memory that this limit will be terminated. However, the sum total of all processes owned by the server can still exceed the limit.

Maximum CPU time per process
Any process whose time spent actually using the CPU (not waiting for IO or sleeping) exceeds this limit will be killed.

You can also manage it using Virtualmin CLI.

2 Likes

For legacy centos 7 sites can the missing routines be manually installed on a GPL version of virtualmin?

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.941 Date: Tue, 25 Feb 2020 18:47:02 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close

Error - Perl execution failed

Undefined subroutine &virtual_server::get_domain_resource_limits called at /usr/libexec/webmin/virtual-server/edit_res.cgi line 10.

Resource Limits is a feature available for Virtualmin Pro only. Feel free to get a license! :wink:

Fine.

Just wanted to verify my install on Centos 7 complete.

The OP asked about GPL virtualmin.

1 Like

@Jamie We haven’t fixed the issue yet, with searchable Pro features in GPL installs, right?

Thank you for your help