Mobile app version of vmapp.org
Login or Join
Miguel251

: Can I set memory limits on cpanel acounts I have one account on my vps that is hogging more than it's fair share of memory. How can I limit that account's memory usage? Setting memory_limit

@Miguel251

Posted in: #Apache #Cpanel #Memory #Vps #Whm

I have one account on my vps that is hogging more than it's fair share of memory. How can I limit that account's memory usage?


Setting memory_limit in the php.ini? It appears as if this sets the
memory per script – so that would change based on the number of pages
or requests instead of the total for the account?
Setting the RLimitMEM in Apache sets a new memory limit for Apache
processes. (in whm (Home >> Service Configuration >> Apache
Configuration >> Memory Usage Restrictions) That would also change
the total memory based on requests instead of the total for the
account?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Miguel251

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

The only memory limitations currently supported are the ones that you have asked about. There is no way currently in cPanel to apply a memory limit on an account basis, only on a per script or per process basis. The issue you would encounter is how to apply a memory limit on a per account basis as each account does not spawn its own Apache process and if it did would be a waste of resources as the account would not always need that process to be active. If you are seeing performance issues try applying a per-scriipt php.ini memory limitation.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme