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-03-28, 15:38:02

Author Topic: High memory usage !!  (Read 6400 times)

0 Members and 1 Guest are viewing this topic.

Offline zmatrix

  • Junior Member
  • *
  • Posts: 49
  • Karma: +0/-0
    • View Profile
High memory usage !!
« on: 2014-03-24, 19:28:01 »
before I change to centos 6 64x I was using centos 5 86X

before changing the memory usage was about 200-250 mb
now It's 650mb !!

the same settings for kloxomr and the same websites !!

I am using apache with ngnixproxy  , php53u , ruid2

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: High memory usage !!
« Reply #1 on: 2014-03-24, 19:45:26 »
Any trouble with Centos 6 64bit related to memory.

I found an issue if try ulimit and softlimit limiting memory usage for certain applications. It's not related to Kloxo-MR itself but Centos.

Try 'sh /script/mysql-convert --engine=myisam' for minimize memory usage for mysql.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zmatrix

  • Junior Member
  • *
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: High memory usage !!
« Reply #2 on: 2014-03-24, 21:57:48 »
It's 950mb of ram now and the sites are very slow !!

Offline zmatrix

  • Junior Member
  • *
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: High memory usage !!
« Reply #3 on: 2014-03-25, 00:30:45 »
If I reinstalled it again on centos 6  86X will face this high load or what ?

or return to centos 5?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: High memory usage !!
« Reply #4 on: 2014-03-25, 00:35:55 »
Kloxo-MR 6.5.1.b better handle memory especially if using php-fpm.

64bit tend to use more memory compare to 32bit.

If using Xen/KVM, you can memory cached/buffer every certain times (let say every day).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zmatrix

  • Junior Member
  • *
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: High memory usage !!
« Reply #5 on: 2014-03-25, 01:11:33 »
I use (OpenVZ) and I disabled php-fpm

now the memory used is 1.22 GB and I don't use any thing and the websites have no visitors :(

and I want to know what is php-fpm and when I use it

is there any solution for this problem ?
and when you will releas the update 6.5.1 ? so I can see If I have to re-install or I can wait

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: High memory usage !!
« Reply #6 on: 2014-03-25, 02:25:28 »
Nginx/lighttpd/hiawatha standalone using php-fpm to communicato to php. Apache need choose 'php-fpm_worker/php-fpm_event' in 'php-type'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: High memory usage !!
« Reply #7 on: 2014-03-25, 02:27:23 »
Kloxo-MR 6.5.1 still in beta step (so I call as '6.5.1.b'). You can update to 6.5.1 with 'yum update kloxomr --enablerepo=mratwork-testing*'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: High memory usage !!
« Reply #8 on: 2014-03-25, 09:59:42 »
Hi,
I use (OpenVZ) and I disabled php-fpm
now the memory used is 1.22 GB and I don't use any thing and the websites have no visitors :(
and I want to know what is php-fpm and when I use it
is there any solution for this problem ?
and when you will releas the update 6.5.1 ? so I can see If I have to re-install or I can wait

Yes, there is a solution as follows:

1)
Create a file /home/php-fpm/tpl/custom.php53-fpm-pool.conf.tpl as a copy of php53-fpm-pool.conf.tpl from the same directory.


2)
Change in this newly created custom***.tpl the following:

    $startservers = '1';
    $minspareservers = '1';
    $maxspareservers = '4';
    $maxchildren = '6';

3)
Go to Kloxo-MR admin and find Webserver config. Change from php-fpm to comething else and back to php-fpm.

By doing this, you will generate php-fpm configuration file to load startservers and minspareservers equal to one in /etc/php-fpm.d/*conf. These files shall have above custom configuration.

With this, php-fpm will consume less process and memory.

I have so far not found any other technique.

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: High memory usage !!
« Reply #9 on: 2014-04-06, 22:27:48 »
before I change to centos 6 64x I was using centos 5 86X

before changing the memory usage was about 200-250 mb
now It's 650mb !!

the same settings for kloxomr and the same websites !!

I am using apache with ngnixproxy  , php53u , ruid2

I use Centos 6 x32 bits and VPS spend 200-300MB Ram only.

 


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

Page created in 0.047 seconds with 22 queries.

web stats analysis