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-29, 16:49:48

Author Topic: How To Optimize KloxoMr Memory Before I Discontinue  (Read 5829 times)

0 Members and 1 Guest are viewing this topic.

Offline henry

  • Valuable Member
  • *
  • Posts: 127
  • Karma: +1/-0
    • View Profile
    • Low Cost Internet Marketing Products
I really need to know how to less consume memory on KloxoMr.

# sh /script/sysinfo

Quote
A. Kloxo-MR: 6.5.0.f-2014010701

B. OS: CentOS release 5.10 (Final) i686

C. Apps:
   1. MySQL: mysql55-5.5.35-1.ius.el5
   2. PHP: php53u-5.3.28-1.ius.el5
   3. Httpd: httpd-2.2.26-1.el5
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.29.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el5
   7. Dns: bind-9.9.4-1.P1.el5

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:           256        235         20          0          0         77
   -/+ buffers/cache:        157         98
   Swap:          256        152        103
.



Quote
abcdot.com/?doing_wp_cron=1389577226.7197639942169189436899

Hopefully, this thread will help me to make a final decision...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #1 on: 2014-01-13, 06:08:11 »
It's normal, especially if you make another client (reseller/customer). For VPS with memory with 128/256MB better add domain in 'admin' only.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline henry

  • Valuable Member
  • *
  • Posts: 127
  • Karma: +1/-0
    • View Profile
    • Low Cost Internet Marketing Products
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #2 on: 2014-01-13, 09:54:21 »
Hm..I used the same way in old kloxo lighttpd,
128MB ram also can support 10 domains and no problem.

This 256MB on KloxoMr, for 2 domains also not enough  :P
Okay, fine.

Is that a way for transferring  these domains to admin through ssh? Or do I have to re-install again..
If yes, what commands should I run?



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #3 on: 2014-01-13, 09:59:19 »
If using 'php-fpm', memory usage for php threads depend on how much client amount. It's because php threads allocated base on client.

Use 'change owner' in each domain to move domain from one client to another.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline henry

  • Valuable Member
  • *
  • Posts: 127
  • Karma: +1/-0
    • View Profile
    • Low Cost Internet Marketing Products
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #4 on: 2014-01-13, 10:49:24 »
I didn't do anything.
This is my current owner of both domains.



That Owner only admin, cannot be changed.

My situation is transfer both domains under "client" into "admin".

Please advice...


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #5 on: 2014-01-13, 10:59:58 »
So, you are not need to 'change owner'.

If using KVM/Xen, run 'sh /script/clearcache3; sh /script/restart-services' periodically (per-day; use 'cron task' options in 'server' level).
..:: 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: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #6 on: 2014-01-13, 11:06:03 »
Also reduce php-fpm allocate for 'apache' user (need by webmail interface) with:

1. copy /etc/php-fpm/php53-fpm-pool.conf.tpl to custom.php53-fpm-pool.conf.tpl
2. modified custom.php53-fpm-pool.conf.tpl:

from:
Code: [Select]
    $startservers = '4';
    $minspareservers = '2';
    $maxspareservers = '4';
    $maxchildren = '6';

to:
Code: [Select]
    if ($user === 'apache') {
        $startservers = '2';
        $minspareservers = '2';
        $maxspareservers = '2';
        $maxchildren = '2';
    } else {
        $startservers = '4';
        $minspareservers = '2';
        $maxspareservers = '4';
        $maxchildren = '6';
    }

3. run 'sh /script/fixweb; sh /script/restart-web'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline henry

  • Valuable Member
  • *
  • Posts: 127
  • Karma: +1/-0
    • View Profile
    • Low Cost Internet Marketing Products
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #7 on: 2014-01-13, 11:07:01 »
This is the results,

Quote
# sh /script/clearcache3
Execute...
/script/clearcache3: line 7: /proc/sys/vm/drop_caches: Permission denied


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #8 on: 2014-01-13, 11:08:28 »
This is the results,

Quote
# sh /script/clearcache3
Execute...
/script/clearcache3: line 7: /proc/sys/vm/drop_caches: Permission denied



So, look like your VPS is OpenVZ. Clearcache not work in OpenVZ.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline henry

  • Valuable Member
  • *
  • Posts: 127
  • Karma: +1/-0
    • View Profile
    • Low Cost Internet Marketing Products
Re: How To Optimize KloxoMr Memory Before I Discontinue
« Reply #9 on: 2014-01-13, 11:14:54 »
Ok, thanks.
The lesson is go for KVM instead of OpenVZ...

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.027 seconds with 18 queries.

web stats analysis