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-28, 15:05:43

Author Topic: How to lower the memory usage on Kloxo-MR Centos 6 x32  (Read 5268 times)

0 Members and 1 Guest are viewing this topic.

Offline want2fly

  • Junior Member
  • *
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Hello friends.

I have installed Kloxo-MR on Cenetos 6 32 bit version. My VPS have 2 gb ram.

At the beginning Kloxo would use 120 mb then 170 then 200 then 300 and three days later It is using 650 mb of RAM.
I only host 2 wordpress blogs that are not having very many visitors.

My server is configured to use php 5.3 as SuPHP worker.
I tried different php modes such as SuPHP, pho-fpm, suphp event.

I also switched to innodb and ran optimise memory. I tried switching to tinydns which didn't do any noticable difference.

Please help me find a solution to how to lower the memory usage.

Thank you.

I rebooted the server manually and here is the result of
Code: [Select]
sh /script/sysinfo

Code: [Select]
A. Kloxo-MR: 6.5.0.f-2014011001

B. OS: CentOS release 6.5 (Final) i686

C. Apps:
   1. MySQL: mysql-5.5.34-1.el6.i686
   2. PHP: php53u-5.3.28-1.ius.el6.i686
   3. Httpd: httpd-2.2.26-1.el6.i686
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.31.mr.el6.i386
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.i686
   7. Dns: bind-9.9.4-1.P2.el6.i686

D. Php-type (for Httpd/proxy): suphp_worker

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2048        244       1803          0          0        132
   -/+ buffers/cache:        111       1936
   Swap:          512          0        512

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to lower the memory usage on Kloxo-MR Centos 6 x32
« Reply #1 on: 2014-01-23, 09:44:46 »
Try:
Code: [Select]
free -m
## clearcache not work in OpenVZ VPS
sh /script/clearcache3
sh /script/restart-all
free -m

and inform here what's you see.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline want2fly

  • Junior Member
  • *
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: How to lower the memory usage on Kloxo-MR Centos 6 x32
« Reply #2 on: 2014-01-23, 22:34:07 »
Here is the result:

Code: [Select]
# sh /script/clearcache3
Execute...
/script/clearcache3: line 7: /proc/sys/vm/drop_caches: Permission denied

Code: [Select]
# sh /script/restart-all
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping qmail-toaster: svscan qmail logging.
Starting qmail-toaster: svscan.
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
Stopping kloxo-phpcgi:                                     [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]

Code: [Select]
# free -m
             total       used       free     shared    buffers     cached
Mem:          2048        621       1426          0          0        366
-/+ buffers/cache:        254       1793
Swap:          512          0        512


Try:
Code: [Select]
free -m
## clearcache not work in OpenVZ VPS
sh /script/clearcache3
sh /script/restart-all
free -m

and inform here what's you see.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to lower the memory usage on Kloxo-MR Centos 6 x32
« Reply #3 on: 2014-01-24, 02:22:14 »
It's mean your VPS is OpenVZ. Sadly, clearcache not work in OpenVZ.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline want2fly

  • Junior Member
  • *
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: How to lower the memory usage on Kloxo-MR Centos 6 x32
« Reply #4 on: 2014-01-24, 03:54:23 »
So Mustafa,

Do I need to look for a KVM server instead to be able to use clearcache?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to lower the memory usage on Kloxo-MR Centos 6 x32
« Reply #5 on: 2014-01-24, 04:44:15 »
So Mustafa,

Do I need to look for a KVM server instead to be able to use clearcache?
Choose KVM or Xen. VPS.

This is example for KVM VPS:
Code: [Select]
[root@next ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          4840       1023       3817          0        182        423
-/+ buffers/cache:        417       4422
Swap:            0          0          0
[root@next ~]# sh /script/clearcache3
Execute...
[root@next ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          4840        317       4522          0          0         47
-/+ buffers/cache:        269       4570
Swap:            0          0          0
[root@next ~]# sh /script/restart-all
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
Stopping Djbdns for:
  - axfrdns    [  OK  ]
  - tinydns    [  OK  ]
Starting Djbdns for:
  - axfrdns    [  OK  ]
  - tinydns    [  OK  ]
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping nginx:.                                           [  OK  ]
Starting nginx:                                            [  OK  ]
Stopping qmail-toaster: svscan qmail logging.
Starting qmail-toaster: svscan.
Stopping kloxo-phpcgi:                                     [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@next ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          4840        296       4544          0          8         71
-/+ buffers/cache:        216       4623
Swap:            0          0          0

Note:
- Before: Mem-used = 417 ; Mem-buffers = 182 ; Mem-cached = 423
- After: Mem-used = 216 ; Mem-buffers = 8 ; Mem-cached = 71
« Last Edit: 2014-01-24, 04:47:36 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sIiiS

  • Valuable Member
  • *
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: How to lower the memory usage on Kloxo-MR Centos 6 x32
« Reply #6 on: 2014-01-24, 08:13:39 »
I have this problem too

Have 1GB ram and still nothing in my VPS, only 1 client without loading the site but my free -m result is in below:

Code: [Select]
[root@panel /]# free -m
             total       used       free     shared    buffers     cached
Mem:           996        906         90          0        184        346
-/+ buffers/cache:        375        620
Swap:         4095          0       4095

I need cache system in my VPS duo to my job!

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.033 seconds with 18 queries.

web stats analysis