Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 19:24:44

Author Topic: Add PHP memory limit in plans  (Read 2799 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Add PHP memory limit in plans
« on: 2014-05-14, 12:39:48 »
This one should be easy to add if we use php-fpm ;)

Example: plan 10 GB has 64 MB, plan 50 GB has 128 MB etc.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Add PHP memory limit in plans
« Reply #1 on: 2014-05-14, 12:48:21 »
Set 'fastcgi children' (default: unlimited; as the same as '6' children) in 'resource plan'.

How much ram for '6' children?. As 'normal', this is equal to 6 x 24MB = 144MB. But, because Kloxo-MR using 'ondemand', able to ssumption as 144/2 = 72MB.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Add PHP memory limit in plans
« Reply #2 on: 2014-05-14, 13:13:36 »
So this PHP limit memory_limit=128M doesn't really matter ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Add PHP memory limit in plans
« Reply #3 on: 2014-05-14, 14:42:47 »
Value of 'memory_limit=128M' is max memory usage. Not every page will need 128M.

In my experience, wordpress with 8 plugins (expect certains SEO plugins) everage need 24MB.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Add PHP memory limit in plans
« Reply #4 on: 2014-05-14, 15:23:13 »
Value of 'memory_limit=128M' is max memory usage. Not every page will need 128M.

In my experience, wordpress with 8 plugins (expect certains SEO plugins) everage need 24MB.

Yes. I mean this. Can we add different memory limit for each plan ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Add PHP memory limit in plans
« Reply #5 on: 2014-05-14, 17:08:36 »
No 'memory limit' in plan but in 'php configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Add PHP memory limit in plans
« Reply #6 on: 2014-05-14, 22:04:27 »
In this case user can set ex. 80000M then run some crazy script and freeze whole server. Really bad idea...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Add PHP memory limit in plans
« Reply #7 on: 2014-05-15, 02:53:04 »
Like 'disable functions', customer not able change 'memory limit'. Only admin.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Add PHP memory limit in plans
« Reply #8 on: 2014-05-15, 10:57:54 »
Like 'disable functions', customer not able change 'memory limit'. Only admin.

That's good ;) I didn't know about it.

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.04 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM