Hosts of America Documentation Reseller Guide

For more information contact us at webmaster@hostsofamerica.com

Controlling Server Resources
(version 2.09 and higher)

 

To prevent overconsumption of your server's resources by users' cgi scripts, you can use Resource Limit Controls. It allows you to control the usage of the CPU, memory and server processes on the box with the web server.

* RLimit Controls use directives of Apache 1.2.X modules and, therefore, are not applicable for Windows hosting.

This document explains how to:


Enable RLimit in Plans

You can apply RLimit to user scripts under a certain plan go the Other section of the Pland Edit Wizard Step 1 lists the following resources:

  • RLimitCPU - restrict the strain of CPU usage.
  • RLimitMEM - restrict the memory used by processes run on the server.
  • RLimitNPROC - restrict the number of the processes run simultaneously.

Configure RLimit Values

In most cases the default values are the best to prevent overconsumption of system resources on the one hand and allow correct performance of cgi scripts on the other.

To set custom values for these resources, select Plans in the INFO menu. Then, click resources next to the plan you would like to edit. On the page that appears, find:
RLimitCPU
The Min parameter sets the soft resource limit for all processes and the Max parameter sets the maximum resource limit. CPU resource limits are expressed in seconds per process.
RLimitMEM
The Min parameter sets the soft resource limit for all processes and the Max parameter sets the maximum resource limit. Memory resource limits are expressed in bytes per process.
RLimitNPROC
The Min parameter sets the soft resource limit for all processes and the Max parameter sets the maximum resource limit. Process limits control the number of processes per user.

Warning: Don't change any parameters other than Min and Max.

NOTE: Enabling RLimitMEM may not allow running certain CGI scripts and may result in FrontPage and Miva products not functioning or functioning incorrectly. Users may get the "premature end of script headers" message. As a rule of thumb, disable RLImitMem resource if you want your users to be able to use FrontPage and Miva, since these processes use up a considerable amount of memory resources.

For more information on this, please refer to apache documentation.

The above changes will apply only to accounts created thereafter. If you need to apply these changes to a specific existing account, enter this account's control panel, go to the web options page, and click Apply Changes.


Limiting Resource Use By Individual Accounts

Tip: To switch RLimitMEM off for one account in a plan where RLimitMEM is on,

  1. switch RLimitMEM off for the whole plan,
  2. enter this accounts' control panel,
  3. go to the web options page,
  4. click Apply Changes,
  5. go back to your admin control panel,
  6. switch RLimitMEM back on for the whole plan.

The reverse procedure can be used to switch RLimitMEM on for one account in a plan where RLimitMEM is off.



Home   Products   Services   Partners   Support   News   Contact   Forum
© Copyright 2003. Meridian Data Systems, Inc.
All rights reserved.