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-05-20, 20:50:52

Author Topic: KloxoMR 7 RAM requirements  (Read 3014 times)

0 Members and 1 Guest are viewing this topic.

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
KloxoMR 7 RAM requirements
« on: 2017-03-12, 22:58:38 »
I have not found RAM requirements on Github README page so i want to share what I discovered. In my case (OpenVZ VPS, clean install, idle CentOS 6.x 32bit server), used RAM is 760MB RAM (without php-fpm). Before Kloxo install, 40 MB RAM was used

Is this normal or it is some issue with OpenVZ host server?

On following commands can be seen that httpd and mysql is using roughly 300MB RAM each if i am correct:
Quote
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        470        297          0          0        470
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        470        553
[root@vps /]# service httpd start
Starting httpd:                                            [  OK  ]
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        749         18          1          0        749
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        749        274
[root@vps /]# service mysql stop
Shutting down MySQL. SUCCESS!
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        412        355          1          0        412
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        412        611
[root@vps /]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        133        634          0          0        133
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        133        890
[root@vps /]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017031002
   - Web: hiawatha-10.5.0-f.2.mr.el6.i686
   - PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) i686
   - Hostname: vps.centos6.tld
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-1.ius.centos6.i686
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.i686
     - Lighttpd: lighttpd-1.4.45-1.el6.i686
     - Nginx: nginx-1.11.10-1.el6.ngx.i386
     - Apache: httpd24u-2.4.25-3.ius.centos6.i686
       - PHP Type: php-fpm_event (default)
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.i386
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - spam: bogofilter-1.2.4-1.el6.i686
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:           768        749         18          1          0        749
-/+ buffers/cache:          0        768
Swap:          256          0        256
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      7.9G  1.8G  6.1G  23% /

Legaxy lxcenter Kloxo was running on 256MB RAM VPS, now i need 1024MB RAM? I understand that KloxoMR can probably carry higher load of visitors with less RAM and higher initial RAM usage is the "trade-off"?
« Last Edit: 2017-03-16, 13:22:34 by postcd »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: KloxoMR 7 RAM requirements
« Reply #1 on: 2017-03-13, 02:20:20 »
Kloxo-MR 7 running well in VPS with 256MB. Because RAM limitian under 256MB, need some trick like minimize mysql usage and panel itself.

There are something wrong in your server. Report from 'free -mt' is weird.

This is report from my OpenVZ VPS:
Code: [Select]
> free -mt
             total       used       free     shared    buffers     cached
Mem:          1024       1024          0        161          0        503
-/+ buffers/cache:        520        503
Swap:          128        128          0
Total:        1152       1152          0
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: KloxoMR 7 RAM requirements
« Reply #2 on: 2017-03-16, 13:21:28 »
Quote
here are something wrong in your server.

Thank you, after OVZ VPS (CentOS 6 64bit) reboot, VPS shown 624MB RAM used

OpenVZ host server (CentOS 6.x) has this setting for the VPS:

Code: [Select]
PHYSPAGES="0:unlimited"
SWAPPAGES="0:65536"
PRIVVMPAGES="262144"
LOCKEDPAGES="5000"
VMGUARPAGES="196608:unlimited"
OOMGUARPAGES="196608:unlimited"
SHMPAGES="196608"

when i set that VPS to use VSwap (vzctl set CTID --ram 768M --save), then VPS has this setting:

Code: [Select]
PHYSPAGES="0:196608"
SWAPPAGES="0:65536"
PRIVVMPAGES="262144"
LOCKEDPAGES="5000"
VMGUARPAGES="196608:unlimited"
OOMGUARPAGES="196608:unlimited"
SHMPAGES="196608"

when i run free -mt again on the VPS, RAM figures are way different:

Code: [Select]
# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        286        481          3          0        155
-/+ buffers/cache:        130        637
Swap:          256          0        256
Total:        1024        286        737

in case of interest, beancounters are like this:

Code: [Select]
# vzubc 3500
----------------------------------------------------------------
CT 3500      | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
-------------+---------------+---------------+-----+-----+------
     kmemsize|20.4M   1%   1%|63.7M   3%   3%|   2G|   2G|    -
  lockedpages|   -    -    - |2.12M  10%  10%|19.5M|19.5M|    -
  privvmpages| 778M  76%  76%| 968M  94%  94%|   1G|   1G| 6.59K
     shmpages|1.71M 0.2% 0.2%|8.26M   1%   1%| 768M| 768M|    -
      numproc| 176    3%   3%| 297    5%   5%|4.88K|4.88K|    -
    physpages| 283M   -    - |1.68G   -    - |   - |   - |    -
  vmguarpages|   -    -    - |   -    -    - | 768M|   - |    -
 oomguarpages| 107M  14%   - | 186M  24%   - | 768M|   - |    -
   numtcpsock|  26  0.1% 0.1%|  53  0.1% 0.1%|39.1K|39.1K|    -
     numflock|  25  0.5% 0.5%|  60    1%   1%|4.88K|4.88K|    -
       numpty|   -    -    - |   2  0.1% 0.1%|2.44K|2.44K|    -
   numsiginfo|   1    -    - | 117    2%   2%|4.88K|4.88K|    -
    tcpsndbuf| 442K 0.3% 0.1%| 902K 0.6% 0.3%| 153M| 309M|    -
    tcprcvbuf| 416K 0.3% 0.1%|9.73M   6%   3%| 153M| 309M|    -
 othersockbuf|42.9K   -    - |83.2K 0.1%   - | 153M| 309M|    -
  dgramrcvbuf|   -    -    - |8.52K   -    - | 153M| 309M|    -
 numothersock|  44  0.1% 0.1%|  59  0.1% 0.1%|39.1K|39.1K|    -
   dcachesize|6.03M  13%  13%|43.9M 100% 100%|43.9M|43.9M|    -
      numfile|1.28K   1%   1%|2.05K   2%   2%| 117K| 117K|    -
    numiptent|  27  0.5% 0.5%|  27  0.5% 0.5%|4.88K|4.88K|    -
    swappages|   -    -    - |71.6M   -   28%|   - | 256M|    -
----------------------------------------------------------------

i am not sure why without vswap (without physpages being set) RAM usage seems soo high. But now it seems that indeed KloxoMR 7 can live with 256MB RAM and some SWAP in case RAM is low.

Another OpenVZ obstacle was that when i create OSTemplate out of running VPS and restored it on new VPS with other IP, i found that /proc/user_beancounters shown memory failure, VPS told: "Unable to fork: Cannot allocate memory", Kloxo was not accessible. Solution? I had to comment out PRIVVMPAGES variable in /etc/vz/conf/CTIDHERE.conf (just placing # before PRIVVMPAGES) & then reboot VPS. Kloxo started working, except it shows old IP in Kloxo/Resource/IP addresses (http://IPHERE:7778/display.php?frm_action=list&frm_o_cname=ipaddress)
« Last Edit: 2017-03-16, 15:57:49 by postcd »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: KloxoMR 7 RAM requirements
« Reply #3 on: 2017-03-16, 13:26:39 »
It's OpenVZ issue rather than Kloxo-MR panel itself. Setting VSwap too low may trouble for whole system.
..:: 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.07 seconds with 17 queries.

web stats analysis