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, 01:49:30

Author Topic: More memory usage by php-fpm  (Read 5774 times)

0 Members and 1 Guest are viewing this topic.

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
More memory usage by php-fpm
« on: 2016-04-22, 14:16:14 »
More memory usage by php-fpm... attached screenshot with this... using 50% memory without any traffic. also i m sending sysinfo and memory usage screenshot. So tell me what should i do to reduce memory usage, I am using wordpress sites.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: More memory usage by php-fpm
« Reply #1 on: 2016-04-22, 14:23:57 »
Are you sure without any traffic?. Investigate with 'top' or 'hitop' to know how much php-fpm threads.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: More memory usage by php-fpm
« Reply #2 on: 2016-04-22, 15:32:46 »
Maximum 2 to 3 visitors online. I am attaching reply for top cmd...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: More memory usage by php-fpm
« Reply #3 on: 2016-04-22, 16:31:49 »
Different between Kloxo-MR 6.5 and 7.0 related to php-fpm thread handling. In Kloxo-MR 6.5, handling with 'dynamic' type (need minimum residence php-fpm resident in memory; 2 residents per-user). In Kloxo-MR 7.0, handling with 'ondemand' type (no residence php-fpm if no one access to website).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: More memory usage by php-fpm
« Reply #4 on: 2016-04-22, 16:51:53 »
How i can reduce memory usage ??

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: More memory usage by php-fpm
« Reply #5 on: 2016-04-22, 16:59:01 »
How much clients (resellers and or customers) that you created?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: More memory usage by php-fpm
« Reply #6 on: 2016-04-23, 07:13:14 »
only one client that is admin , no any reseller. attached screenshot
« Last Edit: 2016-04-23, 07:46:40 by zong11 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: More memory usage by php-fpm
« Reply #7 on: 2016-04-25, 02:16:28 »
In Kloxo-MR 6.5, copy /home/php-fpm/tpl/php53-fpm-pool.conf.tpl to custom.php53-fpm-pool.conf.tpl.

And then modified this custom file with change 'pm = dynamic' to 'pm = ondemand'. And then 'sh /script/fixphpfpm; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.042 seconds with 19 queries.

web stats analysis