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. 2024-04-27, 19:45:25

Author Topic: Memory limit  (Read 10002 times)

0 Members and 1 Guest are viewing this topic.

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Memory limit
« on: 2013-08-18, 08:04:19 »
Mustafa where to set the default memory limit for your server, clients, and each domain? Because the main settings for advanced configuration of PHP settings do not work. If there I set memory limit = 32MB it's still every newly created domain is created from memory limit = 64 MB.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Memory limit
« Reply #1 on: 2013-08-18, 09:05:06 »
Check also '/etc/home/php-fpm/tpl/php53-fpm-pool.conf.tpl'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Memory limit
« Reply #2 on: 2013-08-18, 20:31:11 »
Quote from: "MRatWork"
Check also '/etc/home/php-fpm/tpl/php53-fpm-pool.conf.tpl'
But it should take the value of the main settings in Kloxo php-MR.
You can also do a 'custom.php53-fpm-pool.conf.tpl'?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Memory limit
« Reply #3 on: 2013-08-18, 21:00:07 »
Yes, we can use custom file if want something different.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Memory limit
« Reply #4 on: 2013-08-18, 21:23:49 »
Quote from: "MRatWork"
Yes, we can use custom file if want something different.
But why ignore the main settings php Kloxo-MR?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Memory limit
« Reply #5 on: 2013-08-18, 21:29:06 »
This is 'customize rule' in Kloxo-MR. Example, when we copy php53-fpm-pool.conf.tpl to custom.php53-fpm-pool.conf.tpl and then run fixphpfpm/fixweb, Kloxo-MR will be process custom.php53-fpm-pool.conf.tpl rather than php53-fpm-pool.conf.tpl. It's because when we update Kloxo-MR, php53-fpm-pool.conf.tpl will be overwrite by Kloxo-MR update.

That it.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Memory limit
« Reply #6 on: 2013-08-18, 22:04:19 »
Quote from: "MRatWork"
This is 'customize rule' in Kloxo-MR. Example, when we copy php53-fpm-pool.conf.tpl to custom.php53-fpm-pool.conf.tpl and then run fixphpfpm/fixweb, Kloxo-MR will be process custom.php53-fpm-pool.conf.tpl rather than php53-fpm-pool.conf.tpl. It's because when we update Kloxo-MR, php53-fpm-pool.conf.tpl will be overwrite by Kloxo-MR update.

That it.
Mustafa 'custom.php53-fpm-pool.conf.tpl' does not work.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Memory limit
« Reply #7 on: 2013-08-18, 22:08:32 »
What you mean not work?. Are you sure?.

Remember, php53-fpm-pool.conf.tpl only work if you select php-fpm_event/_worker.

If select other (like fcgid_event/_worker) you need modified other file.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Memory limit
« Reply #8 on: 2013-08-18, 22:12:47 »
Quote from: "MRatWork"
What you mean not work?. Are you sure?.

Remember, php53-fpm-pool.conf.tpl only work if you select php-fpm_event/_worker.

If select other (like fcgid_event/_worker) you need modified other file.
Configuration:
viewtopic.php?f=5&t=19232#p25770
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Memory limit
« Reply #9 on: 2013-08-18, 22:19:10 »
You need modified /home/apache/tpl/custom.php5.fcgi.tpl (copy from php5.fcgi.tpl) where:

from:
Code: [Select]
<?php
    $maxchildren 
'5';
    
$maxrequests '1000';
?>

to:
Code: [Select]
<?php
    
if ($user === 'apache') {
        
$maxchildren '5';
        
$maxrequests '1000';
    } else {
        
$maxchildren '15';
        
$maxrequests '1000';
    }
?>

Depend on your ram, try another value of "$maxchildren = '15';" to "$maxchildren = '25';".
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Memory limit
« Reply #10 on: 2013-08-18, 22:40:08 »
Mustafa, however, all settings *. Ini and *. Conf should retrieve data from a panel Kloxo-MR. When he is not yet set them manually.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Memory limit
« Reply #11 on: 2013-08-18, 22:48:22 »
Quote from: "Viking"
Mustafa, however, all settings *. Ini and *. Conf should retrieve data from a panel Kloxo-MR. When he is not yet set them manually.
No, options in panel at this version. Maybe possible in 6.5.1 or 6.5.2.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.03 seconds with 19 queries.

web stats analysis